Browse Source

add option to only build specific plugins

faust
Alexandros Theodotou 3 years ago
parent
commit
5b00efc489
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 6
      README.md
  2. 27
      meson_options.txt
  3. 3
      plugins/meson.build

6
README.md

@ -22,11 +22,17 @@ libsndfile @@ -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

27
meson_options.txt

@ -1,28 +1,35 @@ @@ -1,28 +1,35 @@
# Copyright (C) 2020 Alexandros Theodotou <alex at zrythm dot org>
#
# 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 <https://www.gnu.org/licenses/>.
# along with ZPlugins. If not, see <https://www.gnu.org/licenses/>.
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')

3
plugins/meson.build

@ -24,6 +24,8 @@ plugins = [ @@ -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 @@ -186,4 +188,5 @@ foreach pl : plugins
'LV2 validate', lv2_validate,
args: pl_ttl)
endif
endif
endforeach

Loading…
Cancel
Save