diff --git a/ext/meson.build b/ext/meson.build index 255e1c8f30..6d585aea4a 100644 --- a/ext/meson.build +++ b/ext/meson.build @@ -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 index 0000000000..9063208f58 --- /dev/null +++ b/ext/ofa/meson.build @@ -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 diff --git a/meson_options.txt b/meson_options.txt index 1ba732c262..8c721a25e6 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -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')