diff options
author | Natanael Mojica <neithanmo@gmail.com> | 2020-01-10 04:52:31 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2020-03-22 14:44:40 +0300 |
commit | cf59318ab41777cf3ddd873deda36b99ca36396a (patch) | |
tree | fb56be3d71e636f317fb46e745af7913581293eb /meson.build | |
parent | 116cf9bd3c3ea2c809e20fd70049c425e0a1a238 (diff) |
Add csound-based filter plugin
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meson.build b/meson.build index d0f2bd430..cfe34e315 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,6 @@ project('gst-plugins-rs', 'rust', + 'c', version: '0.13.0', meson_version : '>= 0.52') @@ -59,6 +60,28 @@ else exclude += ['gst-plugin-sodium'] endif +cc = meson.get_compiler('c') +csound_option = get_option('csound') +csound_dep = dependency('', required: false) # not-found dependency +if not csound_option.disabled() + csound_dep = cc.find_library('csound64', required: false) + if not csound_dep.found() + python3 = import('python').find_installation('python3') + res = run_command(python3, '-c', 'import os; print(os.environ["CSOUND_LIB_DIR"])') + if res.returncode() == 0 + csound_dep = cc.find_library('csound64', dirs: res.stdout(), required: csound_option) + elif csound_option.enabled() + error('csound option is enabled, but csound64 library could not be found and CSOUND_LIB_DIR was not set') + endif + endif +endif + +if csound_dep.found() + plugins_rep += {'gst-plugin-csound' : 'libgstcsound'} +else + exclude += ['gst-plugin-csound'] +endif + output = [] foreach p, lib : plugins_rep |