summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-12 04:25:39 +0000
committerDavid Robillard <d@drobilla.net>2011-02-12 04:25:39 +0000
commitc32c1593bc6b7c887e7c106531de2567b0da5aa1 (patch)
treefedac05f9957c298de652900646811a0b35b4815 /wscript
parent4d75c4711b12747e37286f5c3cc5bf741d7b351e (diff)
downloadlilv-c32c1593bc6b7c887e7c106531de2567b0da5aa1.tar.gz
lilv-c32c1593bc6b7c887e7c106531de2567b0da5aa1.tar.bz2
lilv-c32c1593bc6b7c887e7c106531de2567b0da5aa1.zip
Make UI support a compile-time option, and separate UI functions into slv2/ui.h.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2930 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript10
1 files changed, 8 insertions, 2 deletions
diff --git a/wscript b/wscript
index d1f579c..810da3c 100644
--- a/wscript
+++ b/wscript
@@ -72,6 +72,9 @@ def configure(conf):
autowaf.check_header(conf, 'lv2/lv2plug.in/ns/lv2core/lv2.h')
autowaf.check_header(conf, 'lv2/lv2plug.in/ns/extensions/ui/ui.h')
+ if conf.env['HAVE_LV2_LV2PLUG_IN_NS_EXTENSIONS_UI_UI_H']:
+ autowaf.define(conf, 'SLV2_WITH_UI', 1)
+
conf.env.append_value('CFLAGS', '-std=c99')
autowaf.define(conf, 'SLV2_VERSION', SLV2_VERSION)
if Options.options.dyn_manifest:
@@ -124,6 +127,8 @@ def configure(conf):
autowaf.display_msg(conf, "Unit tests", str(conf.env['BUILD_TESTS']))
autowaf.display_msg(conf, "Dynamic Manifest Support", str(conf.env['SLV2_DYN_MANIFEST'] == 1))
autowaf.display_msg(conf, "Default LV2_PATH", str(conf.env['SLV2_DEFAULT_LV2_PATH']))
+ autowaf.display_msg(conf, "UI support", str(conf.env['SLV2_WITH_UI'] == 1))
+
print
tests = '''
@@ -143,8 +148,6 @@ def build(bld):
src/pluginclass.c
src/plugininstance.c
src/plugins.c
- src/pluginui.c
- src/pluginuiinstance.c
src/port.c
src/query.c
src/scalepoint.c
@@ -153,6 +156,9 @@ def build(bld):
src/world.c
'''
+ if bld.env['SLV2_WITH_UI']:
+ lib_source += ' src/pluginui.c src/pluginuiinstance.c '
+
# Library
obj = bld(features = 'c cshlib')
obj.export_includes = ['.']