meson: Build pgevent as shared_module rather than shared_library

This matches the behavior of the makefiles and the old MSVC build
system.  The main effect is that the build result gets installed into
pkglibdir rather than bindir.  The documentation says to locate the
library in pkglibdir, so this makes the code match the documentation
again.

Reviewed-by: Ryohei Takahashi (Fujitsu) <r.takahashi_2@fujitsu.com>
Discussion: https://www.postgresql.org/message-id/flat/TY3PR01MB118912125614599641CA881B782522%40TY3PR01MB11891.jpnprd01.prod.outlook.com
pull/185/head
Peter Eisentraut 10 months ago
parent e6c32d9fad
commit 4ee130c6e0
  1. 6
      src/bin/pgevent/meson.build

@ -21,13 +21,11 @@ if cc.get_id() == 'msvc'
pgevent_link_args += '/ignore:4104' pgevent_link_args += '/ignore:4104'
endif endif
pgevent = shared_library('pgevent', pgevent = shared_module('pgevent',
pgevent_sources, pgevent_sources,
dependencies: [frontend_code], dependencies: [frontend_code],
link_args: pgevent_link_args, link_args: pgevent_link_args,
vs_module_defs: 'pgevent.def', vs_module_defs: 'pgevent.def',
kwargs: default_lib_args + { kwargs: default_mod_args,
'name_prefix': '',
},
) )
bin_targets += pgevent bin_targets += pgevent

Loading…
Cancel
Save