aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-12-17 22:32:34 -0500
committerDavid Robillard <d@drobilla.net>2017-02-26 14:59:00 +0100
commitc8b942918517fdeefd9886bfbae1d00ec62d47b0 (patch)
tree613a0f78b1dc00c0f40ad03805c568cadf634077 /wscript
parent56f064dce822a53ad668c38d1bb7b2b3025fe270 (diff)
downloadlv2-c8b942918517fdeefd9886bfbae1d00ec62d47b0.tar.xz
Add C++ bindings
Diffstat (limited to 'wscript')
-rw-r--r--wscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/wscript b/wscript
index 4e1a7b5..ef3b586 100644
--- a/wscript
+++ b/wscript
@@ -23,6 +23,7 @@ out = 'build'
def options(opt):
opt.load('compiler_c')
+ opt.load('compiler_cxx')
opt.load('lv2')
autowaf.set_options(opt, False, True)
opt.add_option('--test', action='store_true', dest='build_tests',
@@ -40,6 +41,7 @@ def options(opt):
def configure(conf):
try:
conf.load('compiler_c')
+ conf.load('compiler_cxx')
except:
Options.options.build_tests = False
Options.options.no_plugins = True
@@ -47,6 +49,8 @@ def configure(conf):
conf.load('lv2')
autowaf.configure(conf)
autowaf.set_c99_mode(conf)
+ conf.check_cxx(cxxflags=["-std=c++0x"])
+ conf.env.append_unique('CXXFLAGS', ['-std=c++0x'])
if Options.options.online_docs:
Options.options.docs = True