summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-12-13 20:54:18 -0500
committerDavid Robillard <d@drobilla.net>2016-12-14 14:47:13 -0500
commit74f83ee8aa39d9fded35e07c9418c38ababcd9a7 (patch)
tree7461cd602c6e6238cd3127d5373ae8577f90a20e
parente7b2f7ee286350bc3bb56b44ed98e4d8bf49af82 (diff)
downloadingen-74f83ee8aa39d9fded35e07c9418c38ababcd9a7.tar.gz
ingen-74f83ee8aa39d9fded35e07c9418c38ababcd9a7.tar.bz2
ingen-74f83ee8aa39d9fded35e07c9418c38ababcd9a7.zip
Add option to not build LV2 plugin
-rw-r--r--src/server/wscript21
-rw-r--r--wscript18
2 files changed, 23 insertions, 16 deletions
diff --git a/src/server/wscript b/src/server/wscript
index 1d4b8ac2..43ba162a 100644
--- a/src/server/wscript
+++ b/src/server/wscript
@@ -92,13 +92,14 @@ def build(bld):
autowaf.use_lib(bld, obj, core_libs + ' JACK')
# Ingen LV2 wrapper
- obj = bld(features = 'cxx cxxshlib',
- source = ' ingen_lv2.cpp ',
- includes = ['.', '../..'],
- name = 'libingen_lv2',
- target = 'ingen_lv2',
- install_path = '${LV2DIR}/ingen.lv2/',
- use = 'libingen libingen_server',
- cxxflags = bld.env.PTHREAD_CFLAGS,
- linkflags = bld.env.PTHREAD_LINKFLAGS)
- autowaf.use_lib(bld, obj, core_libs)
+ if bld.env.INGEN_BUILD_LV2:
+ obj = bld(features = 'cxx cxxshlib',
+ source = ' ingen_lv2.cpp ',
+ includes = ['.', '../..'],
+ name = 'libingen_lv2',
+ target = 'ingen_lv2',
+ install_path = '${LV2DIR}/ingen.lv2/',
+ use = 'libingen libingen_server',
+ cxxflags = bld.env.PTHREAD_CFLAGS,
+ linkflags = bld.env.PTHREAD_LINKFLAGS)
+ autowaf.use_lib(bld, obj, core_libs)
diff --git a/wscript b/wscript
index d1f27795..76a5ba69 100644
--- a/wscript
+++ b/wscript
@@ -31,6 +31,8 @@ def options(opt):
help='Do not build client library (or GUI)')
opt.add_option('--no-jack', action='store_true', dest='no_jack',
help='Do not build jack backend (for ingen.lv2 only)')
+ opt.add_option('--no-plugin', action='store_true', dest='no_plugin',
+ help='Do not build ingen.lv2 plugin')
opt.add_option('--no-python', action='store_true', dest='no_python',
help='Do not install Python bindings')
opt.add_option('--no-webkit', action='store_true', dest='no_webkit',
@@ -120,6 +122,9 @@ def configure(conf):
if not Options.options.no_python:
conf.check_python_version((2,4,0), mandatory=False)
+ if not Options.options.no_plugin:
+ autowaf.define(conf, 'INGEN_BUILD_LV2', 1)
+
if not Options.options.no_jack:
autowaf.check_pkg(conf, 'jack', uselib_store='JACK',
atleast_version='0.120.0', mandatory=False)
@@ -179,17 +184,18 @@ def configure(conf):
conf.write_config_header('ingen_config.h', remove=False)
- autowaf.display_msg(conf, "Jack", bool(conf.env.HAVE_JACK))
+ autowaf.display_msg(conf, "GUI", bool(conf.env.INGEN_BUILD_GUI))
+ autowaf.display_msg(conf, "HTML plugin documentation support",
+ bool(conf.env.HAVE_WEBKIT))
+ autowaf.display_msg(conf, "Jack driver", bool(conf.env.HAVE_JACK))
autowaf.display_msg(conf, "Jack session support",
bool(conf.env.INGEN_JACK_SESSION))
autowaf.display_msg(conf, "Jack metadata support",
conf.is_defined('HAVE_JACK_METADATA'))
- autowaf.display_msg(conf, "Socket interface", conf.is_defined('HAVE_SOCKET'))
- autowaf.display_msg(conf, "LV2", bool(conf.env.HAVE_LILV))
- autowaf.display_msg(conf, "GUI", bool(conf.env.INGEN_BUILD_GUI))
+ autowaf.display_msg(conf, "LV2 plugin driver", bool(conf.env.INGNE_BUILD_LV2))
autowaf.display_msg(conf, "LV2 bundle", conf.env.INGEN_BUNDLE_DIR)
- autowaf.display_msg(conf, "HTML plugin documentation support",
- bool(conf.env.HAVE_WEBKIT))
+ autowaf.display_msg(conf, "LV2 plugin support", bool(conf.env.HAVE_LILV))
+ autowaf.display_msg(conf, "Socket interface", conf.is_defined('HAVE_SOCKET'))
print('')
def build(bld):