2017-11-25 11:39:06 +01:00
|
|
|
dispatcher_inc = include_directories('.')
|
|
|
|
|
|
|
|
|
|
name = 'nm-dispatcher'
|
|
|
|
|
|
|
|
|
|
configure_file(
|
2019-08-28 10:40:46 +02:00
|
|
|
input: 'org.freedesktop.nm_dispatcher.service.in',
|
|
|
|
|
output: '@BASENAME@',
|
2019-08-29 08:09:09 +02:00
|
|
|
install_dir: dbus_system_bus_services_dir,
|
2019-11-21 15:27:21 +01:00
|
|
|
configuration: data_conf,
|
2017-11-25 11:39:06 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
install_data(
|
|
|
|
|
'nm-dispatcher.conf',
|
2018-10-18 12:50:20 +02:00
|
|
|
install_dir: dbus_conf_dir,
|
2017-11-25 11:39:06 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
deps = [
|
2018-01-07 15:39:42 +01:00
|
|
|
libnm_dep,
|
2019-09-07 23:00:41 +02:00
|
|
|
libnm_nm_default_dep,
|
2017-11-25 11:39:06 +01:00
|
|
|
]
|
|
|
|
|
|
2019-09-11 09:16:58 +02:00
|
|
|
c_flags = [
|
2018-01-02 13:37:06 +01:00
|
|
|
'-DG_LOG_DOMAIN="@0@"'.format(name),
|
|
|
|
|
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_CLIENT',
|
2017-11-25 11:39:06 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
libnm_dispatcher_core = static_library(
|
|
|
|
|
name + '-core',
|
2019-09-11 09:16:58 +02:00
|
|
|
sources: 'nm-dispatcher-utils.c',
|
2017-11-25 11:39:06 +01:00
|
|
|
dependencies: deps,
|
2019-09-11 09:16:58 +02:00
|
|
|
c_args: c_flags,
|
2017-11-25 11:39:06 +01:00
|
|
|
)
|
|
|
|
|
|
2019-05-23 12:38:19 +02:00
|
|
|
nmdbus_dispatcher_sources = gnome.gdbus_codegen(
|
2017-11-25 11:39:06 +01:00
|
|
|
'nmdbus-dispatcher',
|
|
|
|
|
name + '.xml',
|
|
|
|
|
interface_prefix: 'org.freedesktop',
|
2018-10-18 12:50:20 +02:00
|
|
|
namespace: 'NMDBus',
|
2017-11-25 11:39:06 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
executable(
|
|
|
|
|
name,
|
2019-09-11 09:16:58 +02:00
|
|
|
name + '.c',
|
2017-11-25 11:39:06 +01:00
|
|
|
dependencies: deps,
|
2019-09-11 09:16:58 +02:00
|
|
|
c_args: c_flags,
|
2017-11-25 11:39:06 +01:00
|
|
|
link_with: libnm_dispatcher_core,
|
2018-01-11 12:34:40 +01:00
|
|
|
link_args: ldflags_linker_script_binary,
|
2017-11-25 11:39:06 +01:00
|
|
|
link_depends: linker_script_binary,
|
|
|
|
|
install: true,
|
2018-10-18 12:50:20 +02:00
|
|
|
install_dir: nm_libexecdir,
|
2017-11-25 11:39:06 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if enable_tests
|
|
|
|
|
subdir('tests')
|
|
|
|
|
endif
|