NetworkManager/dispatcher/meson.build
Thomas Haller 309dccf5f9
build/meson: cleanup libnm-glib-aux dependencies
Avoid dependencies but explicitly link the static library where it is
used.

This also fixes that we linked libnm-log-core into
libnm-settings-plugin-ifcfg-rh.so, which duplicated the symbols
while it should used them from NetworkManager.
2021-02-28 10:42:04 +01:00

57 lines
1.1 KiB
Meson

# SPDX-License-Identifier: LGPL-2.1-or-later
dispatcher_inc = include_directories('.')
configure_file(
input: 'org.freedesktop.nm_dispatcher.service.in',
output: '@BASENAME@',
install_dir: dbus_system_bus_services_dir,
configuration: data_conf,
)
install_data(
'nm-dispatcher.conf',
install_dir: dbus_conf_dir,
)
libnm_dispatcher_core = static_library(
'nm-dispatcher-core',
sources: 'nm-dispatcher-utils.c',
dependencies: [
libnm_dep,
libnm_nm_default_dep,
libnm_client_aux_extern_dep,
],
)
nmdbus_dispatcher_sources = gnome.gdbus_codegen(
'nmdbus-dispatcher',
'nm-dispatcher.xml',
interface_prefix: 'org.freedesktop',
namespace: 'NMDBus',
)
executable(
'nm-dispatcher',
'nm-dispatcher.c',
dependencies: [
libnm_dep,
libnm_nm_default_dep,
libnm_core_aux_extern_dep_link,
glib_dep,
],
link_with: [
libnm_dispatcher_core,
libnm_glib_aux,
libnm_std_aux,
libc_siphash,
],
link_args: ldflags_linker_script_binary,
link_depends: linker_script_binary,
install: true,
install_dir: nm_libexecdir,
)
if enable_tests
subdir('tests')
endif