
We don't need such data duplicated. The build setup should have only one configuration_data() for patching such values. Now we only have one global, immutable data_conf dictionary with configuration values. Note that none of the users of data_conf uses all entries, but as the entries are basically only dependent on the meson/configure option and valid for the entire project, this simplifies to handling.
56 lines
1.0 KiB
Meson
56 lines
1.0 KiB
Meson
dispatcher_inc = include_directories('.')
|
|
|
|
name = 'nm-dispatcher'
|
|
|
|
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,
|
|
)
|
|
|
|
deps = [
|
|
libnm_dep,
|
|
libnm_nm_default_dep,
|
|
]
|
|
|
|
c_flags = [
|
|
'-DG_LOG_DOMAIN="@0@"'.format(name),
|
|
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_CLIENT',
|
|
]
|
|
|
|
libnm_dispatcher_core = static_library(
|
|
name + '-core',
|
|
sources: 'nm-dispatcher-utils.c',
|
|
dependencies: deps,
|
|
c_args: c_flags,
|
|
)
|
|
|
|
nmdbus_dispatcher_sources = gnome.gdbus_codegen(
|
|
'nmdbus-dispatcher',
|
|
name + '.xml',
|
|
interface_prefix: 'org.freedesktop',
|
|
namespace: 'NMDBus',
|
|
)
|
|
|
|
executable(
|
|
name,
|
|
name + '.c',
|
|
dependencies: deps,
|
|
c_args: c_flags,
|
|
link_with: libnm_dispatcher_core,
|
|
link_args: ldflags_linker_script_binary,
|
|
link_depends: linker_script_binary,
|
|
install: true,
|
|
install_dir: nm_libexecdir,
|
|
)
|
|
|
|
if enable_tests
|
|
subdir('tests')
|
|
endif
|