mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-21 10:14:41 +00:00
46dd4d0fbf
Add SPDX license headers for meson files. As far as I can tell, according to RELICENSE.md file, almost everybody who contributed to the meson files agreed to the LGPL-2.1+ licensing. This entails the vast majority of code in question. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/397
59 lines
1.1 KiB
Meson
59 lines
1.1 KiB
Meson
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
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,
|
|
libnm_libnm_aux_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
|