Add win32ver data to meson-built postgres.exe.
authorNoah Misch <[email protected]>
Mon, 12 Jun 2023 14:40:38 +0000 (07:40 -0700)
committerNoah Misch <[email protected]>
Mon, 12 Jun 2023 14:40:38 +0000 (07:40 -0700)
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[email protected]

src/backend/meson.build

index ccfc382fcfd1576579d22bfcd11d6f0c15ccf4c2..88a35e96763f780e9337dd6885ff66aab6782e63 100644 (file)
@@ -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,