1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# SPDX-License-Identifier: LGPL-2.1+
sources = files(
'nm-bluez-manager.c',
'nm-bt-error.c',
'nm-device-bt.c',
)
deps = [
daemon_nm_default_dep,
libnm_wwan_dep,
]
if enable_bluez5_dun
sources += files('nm-bluez5-dun.c')
deps += bluez5_dep
endif
libnm_device_plugin_bluetooth_static = static_library(
'nm-device-plugin-bluetooth-static',
sources: sources,
dependencies: deps,
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_depends: linker_script_devices,
install: true,
install_dir: nm_plugindir,
install_rpath: nm_plugindir,
)
core_plugins += libnm_device_plugin_bluetooth
test(
'check-local-devices-bluetooth',
check_exports,
args: [libnm_device_plugin_bluetooth.full_path(), linker_script_devices],
)
if enable_tests
test_unit = 'nm-bt-test'
executable(
test_unit,
'tests/' + test_unit + '.c',
dependencies: [ libnetwork_manager_test_dep, deps ],
c_args: test_c_flags,
)
endif
|