From 5b00efc489f982d19d9069879c228564a9cec6d6 Mon Sep 17 00:00:00 2001 From: Alexandros Theodotou Date: Sun, 22 Mar 2020 16:02:59 +0000 Subject: [PATCH] add option to only build specific plugins --- README.md | 6 ++++++ meson_options.txt | 27 +++++++++++++++++---------- plugins/meson.build | 3 +++ 3 files changed, 26 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index cf6db67..6f48991 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,17 @@ libsndfile Building -------- +Build and install all plugins + cd ext/Soundpipe && CC=gcc make && cd ../.. meson build ninja -C build ninja -C build install +To build specific plugins only, pass their names as below + + meson build -Dplugins=Saw,Verb + License ------- ZPlugins is free software: you can redistribute it and/or modify diff --git a/meson_options.txt b/meson_options.txt index 49224ac..0172426 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,28 +1,35 @@ # Copyright (C) 2020 Alexandros Theodotou # -# This file is part of ZLFO +# This file is part of ZPlugins # -# ZLFO is free software: you can redistribute it and/or modify +# ZPlugins is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # -# ZLFO is distributed in the hope that it will be useful, +# ZPlugins is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License -# along with ZLFO. If not, see . +# along with ZPlugins. If not, see . option ( - 'strict_flags', - type: 'boolean', - value: false, + 'strict_flags', type: 'boolean', value: false, description: 'Enable strict compilation flags') option ( - 'lv2dir', - type: 'string', - value: 'lib/lv2', + 'lv2dir', type: 'string', value: 'lib/lv2', description: 'LV2 installation dir under the prefix') + +option ( + 'plugins', type : 'array', + choices : [ + 'Chordz', 'Compressor', 'Verb', 'Saw' + ], + description: 'Plugins to build') + +option ( + 'trial_ver', type: 'boolean', value: false, + description: 'Build trial version with limited functionality') diff --git a/plugins/meson.build b/plugins/meson.build index efd7558..e3239f1 100644 --- a/plugins/meson.build +++ b/plugins/meson.build @@ -24,6 +24,8 @@ plugins = [ ] foreach pl : plugins +if get_option ('plugins').contains (pl[0]) + pl_str = 'Z' + pl[0] pl_caps = pl[0].to_upper () pl_lowercase = pl[0].to_lower () @@ -186,4 +188,5 @@ foreach pl : plugins 'LV2 validate', lv2_validate, args: pl_ttl) endif +endif endforeach