diff options
author | Peter Eisentraut | 2020-01-15 09:15:06 +0000 |
---|---|---|
committer | Peter Eisentraut | 2020-01-15 14:06:12 +0000 |
commit | 16a4a3d59cd5574fdc697ea16ef5692ce34c54d5 (patch) | |
tree | e0d2ee9337cb9c2b05e0fcc3389c128be16cf283 /src/tools/msvc/Project.pm | |
parent | ac5bdf62617507b1942f6124a2696c04a16fca04 (diff) |
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
Diffstat (limited to 'src/tools/msvc/Project.pm')
-rw-r--r-- | src/tools/msvc/Project.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/msvc/Project.pm b/src/tools/msvc/Project.pm index 16a7340b22d..7d25704e2c6 100644 --- a/src/tools/msvc/Project.pm +++ b/src/tools/msvc/Project.pm @@ -338,6 +338,14 @@ sub AddResourceFile if ($self->{type} eq "dll") { s/VFT_APP/VFT_DLL/gm; + my $name = $self->{name}; + s/_INTERNAL_NAME_/"$name"/; + s/_ORIGINAL_NAME_/"$name.dll"/; + } + else + { + /_INTERNAL_NAME_/ && next; + /_ORIGINAL_NAME_/ && next; } print $o $_; } |