diff options
author | David Robillard <d@drobilla.net> | 2017-12-16 14:13:31 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-16 14:17:30 +0100 |
commit | 9836a9d43d0d0151715697865ac520d789893d05 (patch) | |
tree | 8423974b7845c79e16b998dfc87a07bb174ddb7c /wscript | |
parent | 370a92172b8dbf0fd514810a280b238ade733485 (diff) | |
download | lilv-9836a9d43d0d0151715697865ac520d789893d05.tar.gz lilv-9836a9d43d0d0151715697865ac520d789893d05.tar.bz2 lilv-9836a9d43d0d0151715697865ac520d789893d05.zip |
Compile check C++ API
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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' ]: |