1bluez_sources = [
2  'bluez-plugin.c',
3  'gsta2dpsink.c',
4  'gstavdtpsink.c',
5  'gstavdtpsrc.c',
6  'gstavdtputil.c',
7  'gstavrcputil.c',
8]
9
10if host_system == 'windows'
11  subdir_done()
12endif
13
14bluez_dep = dependency('bluez', version : '>= 5.0', required : get_option('bluez'))
15gio_unix_dep = dependency('gio-unix-2.0', version : glib_req,
16                          fallback: ['glib', 'libgiounix_dep'],
17                          required : get_option('bluez'))
18
19if bluez_dep.found() and gio_unix_dep.found()
20  bluez_ch = gnome.gdbus_codegen('bluez',
21      sources : 'org.bluez.xml',
22      interface_prefix : 'org.bluez',
23      namespace : 'Bluez')
24
25  gstbluez = library('gstbluez',
26    bluez_sources, bluez_ch,
27    c_args : gst_plugins_bad_args,
28    include_directories : [configinc],
29    dependencies : [gstaudio_dep, gstrtp_dep, gstbase_dep, gio_unix_dep, bluez_dep],
30    install : true,
31    install_dir : plugins_install_dir,
32  )
33  pkgconfig.generate(gstbluez, install_dir : plugins_pkgconfig_install_dir)
34endif
35