From 094478d24867f5d577286d6854898270eaaa91a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 17 Dec 2018 00:19:37 +0000 Subject: [PATCH] meson: build openmpt plugin --- ext/meson.build | 1 + ext/openmpt/meson.build | 12 ++++++++++++ meson_options.txt | 1 + 3 files changed, 14 insertions(+) create mode 100644 ext/openmpt/meson.build diff --git a/ext/meson.build b/ext/meson.build index f1e8af743b..1736ff3e83 100644 --- a/ext/meson.build +++ b/ext/meson.build @@ -38,6 +38,7 @@ subdir('opencv') subdir('openexr') subdir('openh264') subdir('openjpeg') +subdir('openmpt') #subdir('openni2') subdir('opus') subdir('resindvd') diff --git a/ext/openmpt/meson.build b/ext/openmpt/meson.build new file mode 100644 index 0000000000..ebc408fba1 --- /dev/null +++ b/ext/openmpt/meson.build @@ -0,0 +1,12 @@ +openmpt_dep = dependency('libopenmpt', required: get_option('openmpt')) +if openmpt_dep.found() + gstopenmpt = library('gstopenmpt', + 'gstopenmptdec.c', 'plugin.c', + c_args: gst_plugins_bad_args, + include_directories: [configinc], + dependencies: [gstbadaudio_dep, gstaudio_dep, openmpt_dep], + install: true, + install_dir: plugins_install_dir, + ) + pkgconfig.generate(gstopenmpt, install_dir: plugins_pkgconfig_install_dir) +endif diff --git a/meson_options.txt b/meson_options.txt index 51dd5284c3..aa266e9d6b 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -123,6 +123,7 @@ option('openal', type : 'feature', value : 'auto', description : 'OpenAL plugin' option('openexr', type : 'feature', value : 'auto', description : 'OpenEXR 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('openmpt', type : 'feature', value : 'auto', description : 'OpenMPT module music library plugin') option('opensles', type : 'feature', value : 'auto', description : 'OpenSL ES audio source/sink plugin') option('opus', type : 'feature', value : 'auto', description : 'OPUS audio parser plugin') option('resindvd', type : 'feature', value : 'auto', description : 'Resin DVD playback plugin')