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