about summary refs log tree commit diff
path: root/src/devices/bluetooth/meson.build
blob: eb200679f522713fad018ac1a5b7f3e71d4d9f00 (plain)
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
sources = files(
  'nm-bluez-device.c',
  'nm-bluez-manager.c',
  'nm-bluez4-adapter.c',
  'nm-bluez4-manager.c',
  'nm-bluez5-manager.c',
  'nm-bt-error.c',
  'nm-device-bt.c'
)

deps = [
  libnm_wwan_dep,
  nm_dep
]

if enable_bluez5_dun
  sources += files('nm-bluez5-dun.c')

  deps += bluez5_dep
endif

libnm_device_plugin_bluetooth = shared_module(
  'nm-device-plugin-bluetooth',
  sources: sources,
  dependencies: deps,
  link_args: ldflags_linker_script_devices,
  link_depends: linker_script_devices,
  install: true,
  install_dir: nm_pkglibdir
)

core_plugins += libnm_device_plugin_bluetooth

run_target(
  'check-local-devices-bluetooth',
  command: [check_exports, libnm_device_plugin_bluetooth.full_path(), linker_script_devices],
  depends: libnm_device_plugin_bluetooth
)

# FIXME: check_so_symbols replacement
'''
check-local-devices-bluetooth: src/devices/bluetooth/libnm-device-plugin-bluetooth.la
  $(srcdir)/tools/check-exports.sh $(builddir)/src/devices/bluetooth/.libs/libnm-device-plugin-bluetooth.so "$(srcdir)/linker-script-devices.ver"
  $(call check_so_symbols,$(builddir)/src/devices/bluetooth/.libs/libnm-device-plugin-bluetooth.so)
'''