mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-03 04:28:20 +02:00
The variable holding the compiler flags, `cflags`, has been renamed to `c_flags` to be consistent with the rest of build files. Different objects used in the `test-dispatcher-envp` target have been grouped together. The dependency over the `libnm` library has been removed as it is unnecessary.
78 lines
1.6 KiB
Meson
78 lines
1.6 KiB
Meson
common_inc = include_directories('.')
|
|
|
|
nm_polkit_listener = files('nm-polkit-listener.c')
|
|
|
|
deps = [
|
|
libnm_dep,
|
|
libnm_libnm_core_aux_dep,
|
|
libnm_nm_default_dep,
|
|
]
|
|
|
|
c_flags = clients_c_flags + [
|
|
'-DG_LOG_DOMAIN="libnmc"',
|
|
]
|
|
|
|
libnmc_base = static_library(
|
|
'nmc-base',
|
|
sources: files(
|
|
'nm-client-utils.c',
|
|
'nm-secret-agent-simple.c',
|
|
'nm-vpn-helpers.c',
|
|
),
|
|
dependencies: deps,
|
|
c_args: c_flags,
|
|
)
|
|
|
|
libnmc_base_dep = declare_dependency(
|
|
include_directories: common_inc,
|
|
link_with: libnmc_base,
|
|
)
|
|
|
|
settings_docs = 'settings-docs.h'
|
|
|
|
if enable_introspection
|
|
settings_docs_source = custom_target(
|
|
settings_docs,
|
|
input: nm_property_docs,
|
|
output: settings_docs,
|
|
command: [xsltproc, '--output', '@OUTPUT@', join_paths(meson.current_source_dir(), 'settings-docs.xsl'), '@INPUT@'],
|
|
)
|
|
|
|
test(
|
|
'check-settings-docs',
|
|
find_program(join_paths(source_root, 'tools', 'check-settings-docs.sh')),
|
|
args: [source_root, build_root, 'clients/common/' + settings_docs],
|
|
)
|
|
else
|
|
settings_docs_source = configure_file(
|
|
input: settings_docs + '.in',
|
|
output: '@BASENAME@',
|
|
configuration: configuration_data(),
|
|
)
|
|
endif
|
|
|
|
deps += [
|
|
libnm_libnm_core_aux_dep,
|
|
libnm_utils_base_dep,
|
|
]
|
|
|
|
libnmc = static_library(
|
|
'nmc',
|
|
sources: files(
|
|
'nm-meta-setting-access.c',
|
|
'nm-meta-setting-desc.c',
|
|
) + nm_meta_setting_source + [settings_docs_source],
|
|
dependencies: deps,
|
|
c_args: c_flags,
|
|
link_with: libnmc_base,
|
|
link_depends: settings_docs_source,
|
|
)
|
|
|
|
libnmc_dep = declare_dependency(
|
|
include_directories: common_inc,
|
|
link_with: libnmc,
|
|
)
|
|
|
|
if (enable_introspection or enable_nmtui) and enable_tests
|
|
subdir('tests')
|
|
endif
|