summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-12 21:56:42 +0000
committerDavid Robillard <d@drobilla.net>2011-02-12 21:56:42 +0000
commitc1f1663479e5aeca2b1ce90c02558f3cf06252d7 (patch)
treeca23939a5d96ceab2a987fa28f1bee4ed3c516c8
parent9d3afd567e5924d877e519f08ab30981bdae6f8e (diff)
downloadlilv-c1f1663479e5aeca2b1ce90c02558f3cf06252d7.tar.gz
lilv-c1f1663479e5aeca2b1ce90c02558f3cf06252d7.tar.bz2
lilv-c1f1663479e5aeca2b1ce90c02558f3cf06252d7.zip
Add --no-swig configuration option.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2947 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--wscript19
1 files changed, 9 insertions, 10 deletions
diff --git a/wscript b/wscript
index 1e5b707..9a542c0 100644
--- a/wscript
+++ b/wscript
@@ -46,6 +46,8 @@ def options(opt):
help="Do not build command line utilities")
opt.add_option('--no-jack', action='store_true', default=False, dest='no_jack',
help="Do not build JACK clients")
+ opt.add_option('--no-swig', action='store_true', default=False, dest='no_swig',
+ help="Do not build python bindings")
opt.add_option('--dyn-manifest', action='store_true', default=False, dest='dyn_manifest',
help="Build support for dynamic manifest extension [false]")
opt.add_option('--test', action='store_true', default=False, dest='build_tests',
@@ -62,12 +64,13 @@ def configure(conf):
autowaf.display_header('SLV2 Configuration')
conf.check_tool('compiler_cc')
- try:
- conf.load('swig python')
- conf.check_python_headers()
- autowaf.define(conf, 'SLV2_SWIG', 1);
- except:
- pass
+ if not Options.options.no_swig:
+ try:
+ conf.load('swig python')
+ conf.check_python_headers()
+ autowaf.define(conf, 'SLV2_SWIG', 1);
+ except:
+ pass
autowaf.check_pkg(conf, 'lv2core', uselib_store='LV2CORE', mandatory=True)
autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB',
@@ -259,7 +262,3 @@ def test(ctx):
autowaf.pre_test(ctx, APPNAME)
autowaf.run_tests(ctx, APPNAME, tests.split(), dirs=['./src','./test'])
autowaf.post_test(ctx, APPNAME)
-
-def wrap(ctx):
- os.chdir(out)
- os.system('swig -DPYTHON -Wall -python -I/usr/include -I/usr/local/include -I.. -o slv2_python.c -oh slv2_python.h ../swig/slv2.i')