summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2017-06-23 19:35:28 +0100
committerTim-Philipp Müller <tim@centricular.com>2017-06-23 19:36:03 +0100
commit2271fee77e762a0b601716103bf2301b0d0b893a (patch)
tree851ccd8c7f091ba036e9ee3c647220cd2c75b98a /sys
parent1fa24b0be3b3fd8f3259d48b34dcefe2810b04a1 (diff)
meson: build oss4 plugin
https://bugzilla.gnome.org/show_bug.cgi?id=784134
Diffstat (limited to 'sys')
-rw-r--r--sys/meson.build2
-rw-r--r--sys/oss4/meson.build23
2 files changed, 24 insertions, 1 deletions
diff --git a/sys/meson.build b/sys/meson.build
index 3a2f70201..76bd5a303 100644
--- a/sys/meson.build
+++ b/sys/meson.build
@@ -1,10 +1,10 @@
subdir('directsound')
subdir('oss')
+subdir('oss4')
subdir('v4l2')
subdir('ximage')
# FIXME: Implement these
-#subdir('oss4')
#subdir('osxaudio')
#subdir('osxvideo')
#subdir('sunaudio')
diff --git a/sys/oss4/meson.build b/sys/oss4/meson.build
new file mode 100644
index 000000000..491266e89
--- /dev/null
+++ b/sys/oss4/meson.build
@@ -0,0 +1,23 @@
+have_oss4 = true
+message('Checking headers needed for Open Sound System 4 plugin...')
+foreach hdr : ['fcntl.h', 'sys/ioctl.h', 'sys/stat.h', 'sys/types.h']
+ if have_oss4
+ if not cc.has_header(hdr)
+ have_oss4 = false
+ endif
+ endif
+endforeach
+
+if have_oss4
+ message('Required headers found, building Open Sound System 4 plugin.')
+
+ library('gstoss4',
+ 'oss4-audio.c', 'oss4-property-probe.c', 'oss4-sink.c', 'oss4-source.c',
+ c_args : gst_plugins_good_args,
+ include_directories : [configinc, libsinc],
+ dependencies : [gstaudio_dep, gstbase_dep],
+ install : true,
+ install_dir : plugins_install_dir)
+else
+ message('Not building Open Sound System 4 plugin, required headers not found.')
+endif