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

index 255e1c8..6d585ae 100644 (file)
@@ -32,7 +32,7 @@ subdir('mpeg2enc')
 subdir('mplex')
 subdir('musepack')
 subdir('neon')
-#subdir('ofa')
+subdir('ofa')
 #subdir('openal')
 subdir('opencv')
 #subdir('openexr')
diff --git a/ext/ofa/meson.build b/ext/ofa/meson.build
new file mode 100644 (file)
index 0000000..9063208
--- /dev/null
@@ -0,0 +1,12 @@
+ofa_dep = dependency('libofa', version: '>= 0.9.3', required: get_option('ofa'))
+
+if ofa_dep.found()
+  gstofa = library('gstofa', 'gstofa.c',
+    c_args: gst_plugins_bad_args,
+    include_directories: [configinc],
+    dependencies: [gstaudio_dep, ofa_dep],
+    install: true,
+    install_dir: plugins_install_dir,
+  )
+  pkgconfig.generate(gstofa, install_dir: plugins_pkgconfig_install_dir)
+endif
index 1ba732c..8c721a2 100644 (file)
@@ -116,6 +116,7 @@ option('musepack', type : 'feature', value : 'auto', description : 'libmpcdec Mu
 option('neon', type : 'feature', value : 'auto', description : 'NEON HTTP source plugin')
 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('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')