| 1 |
# Copyright (c) 2022-2025, PostgreSQL Global Development Group |
| 2 |
|
| 3 |
if host_system != 'windows' |
| 4 |
subdir_done() |
| 5 |
endif |
| 6 |
|
| 7 |
pgevent_sources = files( |
| 8 |
'pgevent.c', |
| 9 |
) |
| 10 |
|
| 11 |
pgevent_sources += rc_bin_gen.process(win32ver_rc, extra_args: [ |
| 12 |
'--NAME', 'pgevent', |
| 13 |
'--FILEDESC', 'Eventlog message formatter',]) |
| 14 |
|
| 15 |
pgevent_sources += windows.compile_resources('pgmsgevent.rc') |
| 16 |
|
| 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' |
| 22 |
endif |
| 23 |
|
| 24 |
pgevent = shared_module('pgevent', |
| 25 |
pgevent_sources, |
| 26 |
dependencies: [frontend_code], |
| 27 |
link_args: pgevent_link_args, |
| 28 |
vs_module_defs: 'pgevent.def', |
| 29 |
kwargs: default_mod_args, |
| 30 |
) |
| 31 |
bin_targets += pgevent |