mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-28 04:58:16 +02:00
License is missing in meson build files. This has been added using SPDX identifiers and licensed under LGPL-2.1+.
67 lines
1.4 KiB
Meson
67 lines
1.4 KiB
Meson
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
iwd_sources = files()
|
|
if enable_iwd
|
|
iwd_sources += files(
|
|
'nm-device-iwd.c',
|
|
'nm-iwd-manager.c',
|
|
)
|
|
endif
|
|
|
|
libnm_wifi_base = static_library(
|
|
'nm-wifi-base',
|
|
sources: files(
|
|
'nm-device-olpc-mesh.c',
|
|
'nm-device-wifi-p2p.c',
|
|
'nm-device-wifi.c',
|
|
'nm-wifi-ap.c',
|
|
'nm-wifi-common.c',
|
|
'nm-wifi-p2p-peer.c',
|
|
'nm-wifi-utils.c',
|
|
) + iwd_sources,
|
|
dependencies: daemon_nm_default_dep,
|
|
c_args: daemon_c_flags,
|
|
)
|
|
|
|
libnm_wifi_base_dep = declare_dependency(
|
|
link_with: libnm_wifi_base,
|
|
)
|
|
|
|
libnm_device_plugin_wifi = shared_module(
|
|
'nm-device-plugin-wifi',
|
|
sources: files(
|
|
'nm-wifi-factory.c',
|
|
),
|
|
dependencies: [ daemon_nm_default_dep, libnm_wifi_base_dep ],
|
|
c_args: daemon_c_flags,
|
|
link_args: ldflags_linker_script_devices,
|
|
link_depends: linker_script_devices,
|
|
install: true,
|
|
install_dir: nm_plugindir,
|
|
)
|
|
|
|
core_plugins += libnm_device_plugin_wifi
|
|
|
|
test(
|
|
'check-local-devices-wifi',
|
|
check_exports,
|
|
args: [libnm_device_plugin_wifi.full_path(), linker_script_devices],
|
|
)
|
|
|
|
if enable_tests
|
|
test_unit = 'test-devices-wifi'
|
|
|
|
exe = executable(
|
|
test_unit,
|
|
'tests/' + test_unit + '.c',
|
|
dependencies: [ libnetwork_manager_test_dep, libnm_wifi_base_dep ],
|
|
c_args: test_c_flags,
|
|
)
|
|
|
|
test(
|
|
test_unit,
|
|
test_script,
|
|
args: test_args + [exe.full_path()],
|
|
timeout: default_test_timeout,
|
|
)
|
|
endif
|