1 # Copyright (c) 2022-2025, PostgreSQL Global Development Group
3 if host_system != 'windows'
7 pgevent_sources = files(
11 pgevent_sources += rc_bin_gen.process(win32ver_rc, extra_args: [
13 '--FILEDESC', 'Eventlog message formatter',])
15 pgevent_sources += windows.compile_resources('pgmsgevent.rc')
17 # XXX: We may want to revisit the addition of this flag and improve the
18 # way symbols are exported.
19 pgevent_link_args = []
20 if cc.get_id() == 'msvc'
21 pgevent_link_args += '/ignore:4104'
24 pgevent = shared_module('pgevent',
26 dependencies: [frontend_code],
27 link_args: pgevent_link_args,
28 vs_module_defs: 'pgevent.def',
29 kwargs: default_mod_args,
31 bin_targets += pgevent