summaryrefslogtreecommitdiff
path: root/src/bin/pgevent/meson.build
blob: 7a468879fd2b50b61b264c3ffd8609070bac4dbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
if host_system != 'windows'
  subdir_done()
endif

pgevent_sources = files(
  'pgevent.c',
)

# 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