diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 13:44:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 13:44:03 +0000 |
commit | 293913568e6a7a86fd1479e1cff8e2ecb58d6568 (patch) | |
tree | fc3b469a3ec5ab71b36ea97cc7aaddb838423a0c /src/bin/pgevent/meson.build | |
parent | Initial commit. (diff) | |
download | postgresql-16-293913568e6a7a86fd1479e1cff8e2ecb58d6568.tar.xz postgresql-16-293913568e6a7a86fd1479e1cff8e2ecb58d6568.zip |
Adding upstream version 16.2.upstream/16.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/bin/pgevent/meson.build')
-rw-r--r-- | src/bin/pgevent/meson.build | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/bin/pgevent/meson.build b/src/bin/pgevent/meson.build new file mode 100644 index 0000000..eca930a --- /dev/null +++ b/src/bin/pgevent/meson.build @@ -0,0 +1,32 @@ +# Copyright (c) 2022-2023, PostgreSQL Global Development Group + +if host_system != 'windows' + subdir_done() +endif + +pgevent_sources = files( + 'pgevent.c', +) + +pgevent_sources += rc_bin_gen.process(win32ver_rc, extra_args: [ + '--NAME', 'pgevent', + '--FILEDESC', 'Eventlog message formatter',]) + +pgevent_sources += windows.compile_resources('pgmsgevent.rc') + +# FIXME: copied from Mkvcbuild.pm, but I don't think that's the right approach +pgevent_link_args = [] +if cc.get_id() == 'msvc' + pgevent_link_args += '/ignore:4104' +endif + +pgevent = shared_library('pgevent', + pgevent_sources, + dependencies: [frontend_code], + link_args: pgevent_link_args, + vs_module_defs: 'pgevent.def', + kwargs: default_lib_args + { + 'name_prefix': '', + }, +) +bin_targets += pgevent |