Skip to content

Commit 8c7ad6f

Browse files
committed
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
1 parent 04411cb commit 8c7ad6f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/backend/meson.build

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ backend_sources = []
55
backend_link_with = [pgport_srv, common_srv]
66

77
generated_backend_sources = []
8+
post_export_backend_sources = []
89

910
subdir('access')
1011
subdir('archive')
@@ -133,8 +134,15 @@ if dtrace.found() and host_system != 'darwin'
133134
)
134135
endif
135136

137+
if host_system == 'windows'
138+
post_export_backend_sources += rc_bin_gen.process(win32ver_rc, extra_args: [
139+
'--NAME', 'postgres',
140+
'--FILEDESC', 'PostgreSQL Server',])
141+
endif
142+
136143
postgres = executable('postgres',
137144
backend_input,
145+
sources: post_export_backend_sources,
138146
objects: backend_objs,
139147
link_args: backend_link_args,
140148
link_with: backend_link_with,

0 commit comments

Comments
 (0)