From dd529d0f5dae2b82d1a043c39f020f766fe7b218 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 16 Dec 2018 20:27:56 +0000 Subject: [PATCH] meson: build sndfile plugin --- ext/meson.build | 2 +- ext/sndfile/meson.build | 13 +++++++++++++ meson_options.txt | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 ext/sndfile/meson.build diff --git a/ext/meson.build b/ext/meson.build index 94c832a..7e46486 100644 --- a/ext/meson.build +++ b/ext/meson.build @@ -46,7 +46,7 @@ subdir('rtmp') subdir('sbc') subdir('sctp') subdir('smoothstreaming') -#subdir('sndfile') +subdir('sndfile') subdir('soundtouch') subdir('spandsp') subdir('srt') diff --git a/ext/sndfile/meson.build b/ext/sndfile/meson.build new file mode 100644 index 0000000..9748626 --- /dev/null +++ b/ext/sndfile/meson.build @@ -0,0 +1,13 @@ +sndfile_dep = dependency('sndfile', version: '>= 1.0.16', required: get_option('sndfile')) + +if sndfile_dep.found() + gstsndfile = library('gstsndfile', + 'gstsf.c', 'gstsfdec.c', # 'gstsfsink.c', 'gstsfsrc.c', + c_args: gst_plugins_bad_args, + include_directories: [configinc], + dependencies: [gstaudio_dep, gst_dep, sndfile_dep], + install: true, + install_dir: plugins_install_dir, + ) + pkgconfig.generate(gstsndfile, install_dir: plugins_pkgconfig_install_dir) +endif diff --git a/meson_options.txt b/meson_options.txt index ced7fe6..a4d0fc3 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -130,6 +130,7 @@ option('sbc', type : 'feature', value : 'auto', description : 'SBC bluetooth aud option('sctp', type : 'feature', value : 'auto', description : 'SCTP plugin') option('shm', type : 'feature', value : 'auto', description : 'Shared memory source/sink plugin') option('smoothstreaming', type : 'feature', value : 'auto', description : 'Microsoft Smooth Streaming demuxer plugin') +option('sndfile', type : 'feature', value : 'auto', description : 'libsndfile plugin') option('soundtouch', type : 'feature', value : 'auto', description : 'Audio pitch controller & BPM detection plugin') option('spandsp', type : 'feature', value : 'auto', description : 'Packet loss concealment audio plugin') option('srt', type : 'feature', value : 'auto', description : 'Secure, Reliable, Transport client/server network source/sink plugin') -- 2.7.4