From c8b942918517fdeefd9886bfbae1d00ec62d47b0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 17 Dec 2016 22:32:34 -0500 Subject: Add C++ bindings --- wscript | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wscript') 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 -- cgit v1.2.1