mirror of
https://github.com/postgres/postgres.git
synced 2025-08-24 09:27:52 +03:00
Remove libpq.rc, use win32ver.rc for libpq
For historical reasons, libpq used a separate libpq.rc file for the Windows builds while all other components use a common file win32ver.rc. With a bit of tweaking, the libpq build can also use the win32ver.rc file. This removes a bit of duplicative code. Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://www.postgresql.org/message-id/flat/ad505e61-a923-e114-9f38-9867d161073f@2ndquadrant.com
This commit is contained in:
1
src/interfaces/libpq/.gitignore
vendored
1
src/interfaces/libpq/.gitignore
vendored
@@ -1,5 +1,4 @@
|
||||
/exports.list
|
||||
/libpq.rc
|
||||
# .c files that are symlinked in from elsewhere
|
||||
/encnames.c
|
||||
/wchar.c
|
||||
|
@@ -14,6 +14,8 @@ top_builddir = ../../..
|
||||
include $(top_builddir)/src/Makefile.global
|
||||
|
||||
|
||||
PGFILEDESC = "PostgreSQL Access Library"
|
||||
|
||||
# shared library parameters
|
||||
NAME= pq
|
||||
SO_MAJOR_VERSION= 5
|
||||
@@ -28,6 +30,7 @@ endif
|
||||
# the conditional additions of files to OBJS, update Mkvcbuild.pm to match.
|
||||
|
||||
OBJS = \
|
||||
$(WIN32RES) \
|
||||
fe-auth-scram.o \
|
||||
fe-connect.o \
|
||||
fe-exec.o \
|
||||
@@ -65,12 +68,8 @@ endif
|
||||
|
||||
ifeq ($(PORTNAME), win32)
|
||||
OBJS += \
|
||||
libpqrc.o \
|
||||
win32.o
|
||||
|
||||
libpqrc.o: libpq.rc
|
||||
$(WINDRES) -i $< -o $@
|
||||
|
||||
ifeq ($(enable_thread_safety), yes)
|
||||
OBJS += pthread-win32.o
|
||||
endif
|
||||
@@ -113,12 +112,6 @@ encnames.c wchar.c: % : $(backend_src)/utils/mb/%
|
||||
rm -f $@ && $(LN_S) $< .
|
||||
|
||||
|
||||
libpq.rc: libpq.rc.in
|
||||
sed -e 's/\(VERSION.*\),0 *$$/\1,'`date '+%y%j' | sed 's/^0*//'`'/' $< >$@
|
||||
|
||||
# Depend on Makefile.global to force rebuild on re-run of configure.
|
||||
libpq.rc: $(top_builddir)/src/Makefile.global
|
||||
|
||||
# Make dependencies on pg_config_paths.h visible, too.
|
||||
fe-connect.o: fe-connect.c $(top_builddir)/src/port/pg_config_paths.h
|
||||
fe-misc.o: fe-misc.c $(top_builddir)/src/port/pg_config_paths.h
|
||||
@@ -148,7 +141,7 @@ uninstall: uninstall-lib
|
||||
|
||||
clean distclean: clean-lib
|
||||
$(MAKE) -C test $@
|
||||
rm -f $(OBJS) pthread.h libpq.rc
|
||||
rm -f $(OBJS) pthread.h
|
||||
# Might be left over from a Win32 client-only build
|
||||
rm -f pg_config_paths.h
|
||||
# Remove files we (may have) symlinked in from other places
|
||||
|
@@ -1,31 +0,0 @@
|
||||
#include <winver.h>
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 13,0,0,0
|
||||
PRODUCTVERSION 13,0,0,0
|
||||
FILEFLAGSMASK 0x3fL
|
||||
FILEFLAGS 0
|
||||
FILEOS VOS__WINDOWS32
|
||||
FILETYPE VFT_DLL
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904B0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "\0"
|
||||
VALUE "FileDescription", "PostgreSQL Access Library\0"
|
||||
VALUE "FileVersion", "13.0\0"
|
||||
VALUE "InternalName", "libpq\0"
|
||||
VALUE "LegalCopyright", "Copyright (C) 2020\0"
|
||||
VALUE "LegalTrademarks", "\0"
|
||||
VALUE "OriginalFilename", "libpq.dll\0"
|
||||
VALUE "ProductName", "PostgreSQL\0"
|
||||
VALUE "ProductVersion", "13.0\0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
Reference in New Issue
Block a user