1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-16 15:02:33 +03:00

Add file version information to most installed Windows binaries.

Prominent binaries already had this metadata.  A handful of minor
binaries, such as pg_regress.exe, still lack it; efforts to eliminate
such exceptions are welcome.

Michael Paquier, reviewed by MauMau.
This commit is contained in:
Noah Misch
2014-07-14 14:07:52 -04:00
parent c0e8fb6148
commit 0ffc201a51
93 changed files with 147 additions and 55 deletions

View File

@@ -14,9 +14,10 @@ include $(top_builddir)/src/Makefile.global
override CPPFLAGS := -I$(srcdir) -I$(libpq_srcdir) $(CPPFLAGS)
OBJS = libpqwalreceiver.o
OBJS = libpqwalreceiver.o $(WIN32RES)
SHLIB_LINK = $(libpq)
SHLIB_PREREQS = submake-libpq
PGFILEDESC = "libpqwalreceiver - receive WAL during streaming replication"
NAME = libpqwalreceiver
all: all-shared-lib

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = ascii_and_mic
PGFILEDESC = "ascii <-> mic text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = cyrillic_and_mic
PGFILEDESC = "cyrillic <-> mic text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = euc2004_sjis2004
PGFILEDESC = "euc2004 <-> sjis2004 text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = euc_cn_and_mic
PGFILEDESC = "euc_cn <-> mic text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = euc_jp_and_sjis
PGFILEDESC = "euc_jp <-> sjis text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = euc_kr_and_mic
PGFILEDESC = "euc_kr <-> mic text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,6 +8,7 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = euc_tw_and_big5
PGFILEDESC = "euc_tw <-> big5 text conversions"
SRCS += big5.c
OBJS += big5.o

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = latin2_and_win1250
PGFILEDESC = "latin2 <-> win1250 text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = latin_and_mic
PGFILEDESC = "latin <-> mic text conversions"
include $(srcdir)/../proc.mk

View File

@@ -1,5 +1,5 @@
SRCS += $(NAME).c
OBJS += $(NAME).o
OBJS += $(NAME).o $(WIN32RES)
rpath =

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = utf8_and_ascii
PGFILEDESC = "utf8 <-> ascii text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = utf8_and_big5
PGFILEDESC = "utf8 <-> big5 text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = utf8_and_cyrillic
PGFILEDESC = "utf8 <-> cyrillic text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = utf8_and_euc2004
PGFILEDESC = "utf8 <-> euc2004 text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = utf8_and_euc_cn
PGFILEDESC = "utf8 <-> euc_cn text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = utf8_and_euc_jp
PGFILEDESC = "utf8 <-> euc_jp text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = utf8_and_euc_kr
PGFILEDESC = "utf8 <-> euc_kr text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = utf8_and_euc_tw
PGFILEDESC = "utf8 <-> euc_tw text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = utf8_and_gb18030
PGFILEDESC = "utf8 <-> gb18030 text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = utf8_and_gbk
PGFILEDESC = "utf8 <-> gbk text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = utf8_and_iso8859
PGFILEDESC = "utf8 <-> iso8859 text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = utf8_and_iso8859_1
PGFILEDESC = "utf8 <-> iso8859_1 text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = utf8_and_johab
PGFILEDESC = "utf8 <-> johab text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = utf8_and_sjis
PGFILEDESC = "utf8 <-> sjis text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = utf8_and_sjis2004
PGFILEDESC = "utf8 <-> sjis2004 text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = utf8_and_uhc
PGFILEDESC = "utf8 <-> uhc text conversions"
include $(srcdir)/../proc.mk

View File

@@ -8,5 +8,6 @@ top_builddir = ../../../../../..
include $(top_builddir)/src/Makefile.global
NAME = utf8_and_win
PGFILEDESC = "utf8 <-> win text conversions"
include $(srcdir)/../proc.mk

View File

@@ -9,7 +9,7 @@
#
#-------------------------------------------------------------------------
PGFILEDESC = "pg_basebackup - takes a streaming base backup of a PostgreSQL instance"
PGFILEDESC = "pg_basebackup/pg_receivexlog/pg_recvlogical - streaming WAL and backup receivers"
PGAPPICON=win32
subdir = src/bin/pg_basebackup

View File

@@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/compatlib
top_builddir = ../../../..
include $(top_builddir)/src/Makefile.global
PGFILEDESC = "ECPG compat - compatibility library for ECPG"
NAME= ecpg_compat
SO_MAJOR_VERSION= 3
SO_MINOR_VERSION= 7
@@ -30,7 +31,7 @@ SHLIB_EXPORTS = exports.txt
# Need to recompile any libpgport object files
LIBS := $(filter-out -lpgport, $(LIBS))
OBJS= informix.o $(filter snprintf.o, $(LIBOBJS))
OBJS= informix.o $(filter snprintf.o, $(LIBOBJS)) $(WIN32RES)
PKG_CONFIG_REQUIRES_PRIVATE = libecpg libpgtypes

View File

@@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/ecpglib
top_builddir = ../../../..
include $(top_builddir)/src/Makefile.global
PGFILEDESC = "ECPG - embedded SQL in C"
NAME= ecpg
SO_MAJOR_VERSION= 6
SO_MINOR_VERSION= 7
@@ -26,7 +27,7 @@ LIBS := $(filter-out -lpgport, $(LIBS))
OBJS= execute.o typename.o descriptor.o sqlda.o data.o error.o prepare.o memory.o \
connect.o misc.o path.o pgstrcasecmp.o \
$(filter snprintf.o strlcpy.o win32setlocale.o isinf.o, $(LIBOBJS))
$(filter snprintf.o strlcpy.o win32setlocale.o isinf.o, $(LIBOBJS)) $(WIN32RES)
# thread.c is needed only for non-WIN32 implementation of path.c
ifneq ($(PORTNAME), win32)

View File

@@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/pgtypeslib
top_builddir = ../../../..
include $(top_builddir)/src/Makefile.global
PGFILEDESC = "pgtypes - library for data type mapping"
NAME= pgtypes
SO_MAJOR_VERSION= 3
SO_MINOR_VERSION= 6
@@ -30,7 +31,7 @@ SHLIB_EXPORTS = exports.txt
OBJS= numeric.o datetime.o common.o dt_common.o timestamp.o interval.o \
pgstrcasecmp.o \
$(filter rint.o snprintf.o, $(LIBOBJS))
$(filter rint.o snprintf.o, $(LIBOBJS)) $(WIN32RES)
all: all-lib

View File

@@ -13,6 +13,8 @@ override CPPFLAGS := \
'-DDLSUFFIX="$(DLSUFFIX)"' \
$(CPPFLAGS)
PGFILEDESC = "ECPG Test - regression tests for ECPG"
# where to find psql for testing an existing installation
PSQLDIR = $(bindir)
@@ -41,13 +43,13 @@ clean distclean maintainer-clean:
$(MAKE) -C compat_informix $@
$(MAKE) -C thread $@
rm -rf tmp_check results log
rm -f pg_regress regression.diffs regression.out pg_regress_ecpg.o
rm -f pg_regress regression.diffs regression.out pg_regress_ecpg.o $(WIN32RES)
# Build regression test driver
all: pg_regress$(X)
pg_regress$(X): pg_regress_ecpg.o $(top_builddir)/src/test/regress/pg_regress.o
pg_regress$(X): pg_regress_ecpg.o $(WIN32RES) $(top_builddir)/src/test/regress/pg_regress.o
$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_EX) $^ $(LIBS) -o $@
$(top_builddir)/src/test/regress/pg_regress.o:

View File

@@ -75,5 +75,5 @@ win32ver.o: win32ver.rc
$(WINDRES) -i $< -o $@ --include-dir=$(top_builddir)/src/include --include-dir=$(srcdir)
# Rule for building a shared library from a single .o file
%.dll: %.o
$(CC) $(CFLAGS) -shared -o $@ $< -Wl,--export-all-symbols $(LDFLAGS) $(LDFLAGS_SL) $(BE_DLLLIBS)
%.dll: %.o $(WIN32RES)
$(CC) $(CFLAGS) -shared -o $@ $^ -Wl,--export-all-symbols $(LDFLAGS) $(LDFLAGS_SL) $(BE_DLLLIBS)

View File

@@ -224,7 +224,7 @@ endif # MODULE_big
clean:
ifdef MODULES
rm -f $(addsuffix $(DLSUFFIX), $(MODULES)) $(addsuffix .o, $(MODULES))
rm -f $(addsuffix $(DLSUFFIX), $(MODULES)) $(addsuffix .o, $(MODULES)) $(WIN32RES)
endif
ifdef DATA_built
rm -f $(DATA_built)

View File

@@ -26,10 +26,11 @@ override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS) -I$(perl_archlibexp)/CORE
rpathdir = $(perl_archlibexp)/CORE
PGFILEDESC = "PL/Perl - procedural language"
NAME = plperl
OBJS = plperl.o SPI.o Util.o
OBJS = plperl.o SPI.o Util.o $(WIN32RES)
DATA = plperl.control plperl--1.0.sql plperl--unpackaged--1.0.sql \
plperlu.control plperlu--1.0.sql plperlu--unpackaged--1.0.sql

View File

@@ -10,6 +10,8 @@ subdir = src/pl/plpgsql/src
top_builddir = ../../../..
include $(top_builddir)/src/Makefile.global
PGFILEDESC = "PL/pgSQL - procedural language"
# Shared library parameters
NAME= plpgsql
@@ -17,7 +19,8 @@ override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS)
SHLIB_LINK = $(filter -lintl, $(LIBS))
rpath =
OBJS = pl_gram.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o pl_scanner.o
OBJS = pl_gram.o pl_handler.o pl_comp.o pl_exec.o \
pl_funcs.o pl_scanner.o $(WIN32RES)
DATA = plpgsql.control plpgsql--1.0.sql plpgsql--unpackaged--1.0.sql

View File

@@ -38,6 +38,8 @@ override CPPFLAGS := -I. -I$(srcdir) $(python_includespec) $(CPPFLAGS)
rpathdir = $(python_libdir)
PGFILEDESC = "PL/Python - procedural language"
NAME = plpython$(python_majorversion)
OBJS = \
@@ -52,7 +54,8 @@ OBJS = \
plpy_spi.o \
plpy_subxactobject.o \
plpy_typeio.o \
plpy_util.o
plpy_util.o \
$(WIN32RES)
DATA = $(NAME)u.control $(NAME)u--1.0.sql $(NAME)u--unpackaged--1.0.sql
ifeq ($(python_majorversion),2)

View File

@@ -34,10 +34,11 @@ ifneq ($(PORTNAME), win32)
SHLIB_LINK = $(TCL_LIB_SPEC) $(TCL_LIBS) -lc
endif
PGFILEDESC = "PL/Tcl - procedural language"
NAME = pltcl
OBJS = pltcl.o
OBJS = pltcl.o $(WIN32RES)
DATA = pltcl.control pltcl--1.0.sql pltcl--unpackaged--1.0.sql \
pltclu.control pltclu--1.0.sql pltclu--unpackaged--1.0.sql

View File

@@ -19,6 +19,12 @@ if exist pgsql.suo del /q /a:H pgsql.suo
del /s /q src\bin\win32ver.rc 2> NUL
del /s /q src\interfaces\win32ver.rc 2> NUL
if exist src\backend\win32ver.rc del /q src\backend\win32ver.rc
if exist src\backend\replication\libpqwalreceiver\win32ver.rc del /q src\backend\replication\libpqwalreceiver\win32ver.rc
if exist src\pl\plperl\win32ver.rc del /q src\pl\plperl\win32ver.rc
if exist src\pl\plpgsql\src\win32ver.rc del /q src\pl\plpgsql\src\win32ver.rc
if exist src\pl\plpython\win32ver.rc del /q src\pl\plpython\win32ver.rc
if exist src\pl\tcl\win32ver.rc del /q src\pl\tcl\win32ver.rc
for /d %%f in (src\interfaces\ecpg\*) do if exist %%f\win32ver.rc del /q %%f\win32ver.rc
for /d %%f in (contrib\*) do if exist %%f\win32ver.rc del /q %%f\win32ver.rc
for /d %%f in (src\backend\utils\mb\conversion_procs\*) do if exist %%f\win32ver.rc del /q %%f\win32ver.rc