mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 03:38:09 +02:00
build/meson: fix link failure of bluetooth's nm-bt-test
$ meson . build -D bluez5_dun=true -D selinux=false -D qt=false
(cherry picked from commit 390086a3cc)
This commit is contained in:
parent
34cfc5861a
commit
bc3f5ca6a9
1 changed files with 14 additions and 3 deletions
|
|
@ -15,11 +15,22 @@ if enable_bluez5_dun
|
||||||
deps += bluez5_dep
|
deps += bluez5_dep
|
||||||
endif
|
endif
|
||||||
|
|
||||||
libnm_device_plugin_bluetooth = shared_module(
|
libnm_device_plugin_bluetooth_static = static_library(
|
||||||
'nm-device-plugin-bluetooth',
|
'nm-device-plugin-bluetooth-static',
|
||||||
sources: sources,
|
sources: sources,
|
||||||
dependencies: deps,
|
dependencies: deps,
|
||||||
c_args: daemon_c_flags,
|
c_args: daemon_c_flags,
|
||||||
|
)
|
||||||
|
|
||||||
|
libnm_device_plugin_bluetooth_static_dep = declare_dependency(
|
||||||
|
link_whole: libnm_device_plugin_bluetooth_static,
|
||||||
|
)
|
||||||
|
|
||||||
|
deps += libnm_device_plugin_bluetooth_static_dep
|
||||||
|
|
||||||
|
libnm_device_plugin_bluetooth = shared_module(
|
||||||
|
'nm-device-plugin-bluetooth',
|
||||||
|
dependencies: deps,
|
||||||
link_args: ldflags_linker_script_devices,
|
link_args: ldflags_linker_script_devices,
|
||||||
link_depends: linker_script_devices,
|
link_depends: linker_script_devices,
|
||||||
install: true,
|
install: true,
|
||||||
|
|
@ -41,7 +52,7 @@ if enable_tests
|
||||||
executable(
|
executable(
|
||||||
test_unit,
|
test_unit,
|
||||||
'tests/' + test_unit + '.c',
|
'tests/' + test_unit + '.c',
|
||||||
dependencies: libnetwork_manager_test_dep,
|
dependencies: [ libnetwork_manager_test_dep, deps ],
|
||||||
c_args: test_c_flags,
|
c_args: test_c_flags,
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue