meson: build openal plugin
authorTim-Philipp Müller <tim@centricular.com>
Mon, 17 Dec 2018 00:00:11 +0000 (00:00 +0000)
committerSebastian Dröge <slomo@coaxion.net>
Mon, 17 Dec 2018 09:12:53 +0000 (09:12 +0000)
ext/meson.build
ext/openal/meson.build [new file with mode: 0644]
meson_options.txt

index 7e46486..57386a6 100644 (file)
@@ -33,7 +33,7 @@ subdir('mplex')
 subdir('musepack')
 subdir('neon')
 subdir('ofa')
-#subdir('openal')
+subdir('openal')
 subdir('opencv')
 #subdir('openexr')
 subdir('openh264')
diff --git a/ext/openal/meson.build b/ext/openal/meson.build
new file mode 100644 (file)
index 0000000..f0840b2
--- /dev/null
@@ -0,0 +1,13 @@
+openal_dep = dependency('openal', version: '>= 1.14', required: get_option('openal'))
+
+if openal_dep.found()
+  gstopenal = library('gstopenal',
+    'gstopenal.c', 'gstopenalsink.c', 'gstopenalsrc.c',
+    c_args: gst_plugins_bad_args,
+    include_directories: [configinc],
+    dependencies: [gstaudio_dep, openal_dep],
+    install: true,
+    install_dir: plugins_install_dir,
+  )
+  pkgconfig.generate(gstopenal, install_dir: plugins_pkgconfig_install_dir)
+endif
index a4d0fc3..f880fce 100644 (file)
@@ -119,6 +119,7 @@ option('neon', type : 'feature', value : 'auto', description : 'NEON HTTP source
 option('nvdec', type : 'feature', value : 'auto', description : 'NVIDIA GPU decoder plugin')
 option('nvenc', type : 'feature', value : 'auto', description : 'NVIDIA GPU encoder plugin')
 option('ofa', type : 'feature', value : 'auto', description : 'Open Fingerprint Architecture library plugin')
+option('openal', type : 'feature', value : 'auto', description : 'OpenAL plugin')
 option('openh264', type : 'feature', value : 'auto', description : 'H.264 video codec plugin')
 option('openjpeg', type : 'feature', value : 'auto', description : 'JPEG2000 image codec plugin')
 option('opensles', type : 'feature', value : 'auto', description : 'OpenSL ES audio source/sink plugin')