summaryrefslogtreecommitdiff
path: root/src/modules/bluetooth/meson.build
blob: 6315e667e69afac0eb88d17bde685be191b1ae40 (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
libbluez5_util_sources = [
  'a2dp-codec-sbc.c',
  'a2dp-codec-util.c',
  'bluez5-util.c',
]

libbluez5_util_headers = [
  'a2dp-codec-api.h',
  'a2dp-codecs.h',
  'a2dp-codec-util.h',
  'bluez5-util.h',
  'rtp.h',
]

if get_option('bluez5-native-headset')
  libbluez5_util_sources += [ 'backend-native.c' ]
endif

if get_option('bluez5-ofono-headset')
  libbluez5_util_sources += [ 'backend-ofono.c' ]
endif

if have_bluez5_gstreamer
  libbluez5_util_headers += [ 'a2dp-codec-gst.h' ]
  libbluez5_util_sources += [ 'a2dp-codec-gst.c' ]
  libbluez5_util_sources += [ 'a2dp-codec-ldac-gst.c' ]
  libbluez5_util_sources += [ 'a2dp-codec-aptx-gst.c' ]
endif

libbluez5_util = shared_library('bluez5-util',
  libbluez5_util_sources,
  libbluez5_util_headers,
  c_args : [pa_c_args, server_c_args],
  link_args : [nodelete_link_args],
  include_directories : [configinc, topinc],
  dependencies : [libpulse_dep, libpulsecommon_dep, libpulsecore_dep, dbus_dep, sbc_dep, libintl_dep, bluez5_gst_dep, bluez5_gstapp_dep],
  install : true,
  install_rpath : privlibdir,
  install_dir : modlibexecdir,
)