diff options
author | David Robillard <d@drobilla.net> | 2015-02-18 16:45:27 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-02-18 16:45:27 -0500 |
commit | 9b4b2b68f50db95da7d63a62a8ebee90be58da58 (patch) | |
tree | 553a61146a9f66f39c68e74950565e531bd3862d /wscript | |
parent | 3520e1fba6c5ab47b5f01c6f0755abe45d622a6d (diff) | |
download | lv2-9b4b2b68f50db95da7d63a62a8ebee90be58da58.tar.xz |
Add preliminary C++ work.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -23,6 +23,7 @@ out = 'build' def options(opt): opt.load('compiler_c') + opt.load('compiler_cxx') opt.load('lv2') autowaf.set_options(opt) opt.add_option('--test', action='store_true', dest='build_tests', @@ -31,6 +32,8 @@ def options(opt): help='Build documentation for web hosting') opt.add_option('--no-plugins', action='store_true', dest='no_plugins', help='Do not build example plugins') + opt.add_option('--no-cxx', action='store_true', dest='no_cxx', + help='Do not build C++ plugins') opt.add_option('--copy-headers', action='store_true', dest='copy_headers', help='Copy headers instead of linking to bundle') opt.recurse('lv2/lv2plug.in/ns/lv2core') @@ -43,11 +46,17 @@ def configure(conf): Options.options.build_tests = False Options.options.no_plugins = True + if not Options.options.no_plugins and not Options.options.no_cxx: + conf.load('compiler_cxx') + conf.env.BUILD_CXX = True + if Options.options.online_docs: Options.options.docs = True autowaf.configure(conf) autowaf.set_c99_mode(conf) + if conf.env.BUILD_CXX: + conf.env.append_value('CXXFLAGS', ['-std=c++0x']) if Options.options.ultra_strict: conf.env.append_value('CFLAGS', ['-Wconversion']) |