mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 05:58:01 +02:00
bluetooth: build test program only when tests are enabled
The manual test should only be built when tests are enabled since it
links to the test library.
Fixes: 05c7a77022 ('meson: Add missing "nm-bt-test" helper program')
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/287
This commit is contained in:
parent
c68c199eda
commit
eeb1ce8566
1 changed files with 9 additions and 7 deletions
|
|
@ -35,11 +35,13 @@ test(
|
||||||
args: [libnm_device_plugin_bluetooth.full_path(), linker_script_devices],
|
args: [libnm_device_plugin_bluetooth.full_path(), linker_script_devices],
|
||||||
)
|
)
|
||||||
|
|
||||||
test_unit = 'nm-bt-test'
|
if enable_tests
|
||||||
|
test_unit = 'nm-bt-test'
|
||||||
|
|
||||||
executable(
|
executable(
|
||||||
test_unit,
|
test_unit,
|
||||||
'tests/' + test_unit + '.c',
|
'tests/' + test_unit + '.c',
|
||||||
dependencies: libnetwork_manager_test_dep,
|
dependencies: libnetwork_manager_test_dep,
|
||||||
c_args: test_c_flags,
|
c_args: test_c_flags,
|
||||||
)
|
)
|
||||||
|
endif
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue