1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

meson: Add windows resource files

The generated resource files aren't exactly the same ones as the old
buildsystems generate. Previously "InternalName" and "OriginalFileName" were
mostly wrong / not set (despite being required), but that was hard to fix in
at least the make build. Additionally, the meson build falls back to a
"auto-generated" description when not set, and doesn't set it in a few cases -
unlikely that anybody looks at these descriptions in detail.

Author: Andres Freund <andres@anarazel.de>
Author: Nazir Bilal Yavuz <byavuz81@gmail.com>
Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
This commit is contained in:
Andres Freund
2022-10-05 09:56:05 -07:00
parent a1261cd16f
commit 902ab2fcef
118 changed files with 1292 additions and 131 deletions

View File

@ -36,6 +36,13 @@ foreach n : ['SPI', 'Util']
endforeach
plperl_inc = include_directories('.')
if host_system == 'windows'
plperl_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
'--NAME', 'plperl',
'--FILEDESC', 'PL/Perl - procedural language',])
endif
plperl = shared_module('plperl',
plperl_sources,
include_directories: [plperl_inc, postgres_inc],

View File

@ -40,6 +40,12 @@ pl_unreserved = custom_target('pl_unreserved_kwlist',
generated_sources += pl_unreserved
plpgsql_sources += pl_unreserved
if host_system == 'windows'
plpgsql_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
'--NAME', 'plpgsql',
'--FILEDESC', 'PL/pgSQL - procedural language',])
endif
plpgsql = shared_module('plpgsql',
plpgsql_sources,
include_directories: include_directories('.'),

View File

@ -28,6 +28,12 @@ plpython_sources += custom_target('spiexceptions.h',
# FIXME: need to duplicate import library ugliness?
plpython_inc = include_directories('.')
if host_system == 'windows'
plpython_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
'--NAME', 'plpython3',
'--FILEDESC', 'PL/Python - procedural language',])
endif
plpython = shared_module('plpython3',
plpython_sources,
include_directories: [plpython_inc, postgres_inc],

View File

@ -14,6 +14,12 @@ pltcl_sources += custom_target('pltclerrcodes.h',
command: [perl, gen_pltclerrcodes, '@INPUT@']
)
if host_system == 'windows'
pltcl_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
'--NAME', 'pltcl',
'--FILEDESC', 'PL/Tcl - procedural language',])
endif
pltcl = shared_module('pltcl',
pltcl_sources,
include_directories: [include_directories('.'), postgres_inc],