From c23a1dc2b663b81c0233d0396af9b343c95ba2c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 17 Dec 2018 00:00:11 +0000 Subject: [PATCH] meson: build openal plugin --- ext/meson.build | 2 +- ext/openal/meson.build | 13 +++++++++++++ meson_options.txt | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 ext/openal/meson.build diff --git a/ext/meson.build b/ext/meson.build index 7e46486302..57386a64c2 100644 --- a/ext/meson.build +++ b/ext/meson.build @@ -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 index 0000000000..f0840b2a9e --- /dev/null +++ b/ext/openal/meson.build @@ -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 diff --git a/meson_options.txt b/meson_options.txt index a4d0fc3636..f880fcee95 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -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')