From 9836a9d43d0d0151715697865ac520d789893d05 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 16 Dec 2017 14:13:31 +0100 Subject: Compile check C++ API --- wscript | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index d4f8de8..966b497 100644 --- a/wscript +++ b/wscript @@ -62,6 +62,10 @@ def options(ctx): def configure(conf): conf.load('compiler_c') + try: + conf.load('compiler_cxx') + except: + pass if Options.options.bindings: try: @@ -357,6 +361,19 @@ def build(bld): linkflags = test_linkflags) autowaf.use_lib(bld, obj, 'SERD SORD SRATOM LV2') + # C++ API test + if 'COMPILER_CXX' in bld.env: + obj = bld(features = 'cxx cxxprogram', + source = 'test/lilv_cxx_test.cpp', + includes = ['.', './src'], + use = 'liblilv_profiled', + lib = test_libs, + target = 'test/lilv_cxx_test', + install_path = None, + cxxflags = test_cflags, + linkflags = test_linkflags) + autowaf.use_lib(bld, obj, 'SERD SORD SRATOM LV2') + if bld.is_defined('LILV_PYTHON'): # Copy Python unittest files for i in [ 'test_api.py' ]: -- cgit v1.2.1