diff options
author | Noah Misch <noah@leadboat.com> | 2023-06-12 07:40:38 -0700 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2023-06-12 07:40:38 -0700 |
commit | 8c7ad6f1562ba7e8a65b21c40782091a4dd3301d (patch) | |
tree | 7ec54f5d8f263c320a61b3569785566387cbbdd5 /src | |
parent | 04411cbfdb76194c483c77bdbc636e83099ae5c3 (diff) | |
download | postgresql-8c7ad6f1562ba7e8a65b21c40782091a4dd3301d.tar.gz postgresql-8c7ad6f1562ba7e8a65b21c40782091a4dd3301d.zip |
Add win32ver data to meson-built postgres.exe.
As in the older build systems, the resources object is not an input to
postgres.def.
Reviewed by Andres Freund.
Discussion: https://postgr.es/m/20230607231407.GC1334487@rfd.leadboat.com
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/meson.build | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/backend/meson.build b/src/backend/meson.build index ccfc382fcfd..88a35e96763 100644 --- a/src/backend/meson.build +++ b/src/backend/meson.build @@ -5,6 +5,7 @@ backend_sources = [] backend_link_with = [pgport_srv, common_srv] generated_backend_sources = [] +post_export_backend_sources = [] subdir('access') subdir('archive') @@ -133,8 +134,15 @@ if dtrace.found() and host_system != 'darwin' ) endif +if host_system == 'windows' + post_export_backend_sources += rc_bin_gen.process(win32ver_rc, extra_args: [ + '--NAME', 'postgres', + '--FILEDESC', 'PostgreSQL Server',]) +endif + postgres = executable('postgres', backend_input, + sources: post_export_backend_sources, objects: backend_objs, link_args: backend_link_args, link_with: backend_link_with, |