summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2018-12-17 00:19:37 +0000
committerSebastian Dröge <slomo@coaxion.net>2018-12-17 09:12:53 +0000
commit094478d24867f5d577286d6854898270eaaa91a0 (patch)
tree9ee20b53cf3c31fd2546f54a8e8f4103354a8f92 /ext
parent79d8855d879b3ec7b6f1e851b2a4dd05f572eccc (diff)
downloadgstreamer-plugins-bad-094478d24867f5d577286d6854898270eaaa91a0.tar.gz
meson: build openmpt plugin
Diffstat (limited to 'ext')
-rw-r--r--ext/meson.build1
-rw-r--r--ext/openmpt/meson.build12
2 files changed, 13 insertions, 0 deletions
diff --git a/ext/meson.build b/ext/meson.build
index f1e8af743..1736ff3e8 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 000000000..ebc408fba
--- /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