aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-21 14:43:04 +0200
committerDavid Robillard <d@drobilla.net>2020-10-21 15:43:29 +0200
commit968289f731d2af02670e0c33bc8c88f5f324caa7 (patch)
treefde166f562b447d975ab27a9a554c248bc10a559
parent4857f9b76f351b2aaad2e61b3635f45570be6823 (diff)
downloadpugl-968289f731d2af02670e0c33bc8c88f5f324caa7.tar.gz
pugl-968289f731d2af02670e0c33bc8c88f5f324caa7.tar.bz2
pugl-968289f731d2af02670e0c33bc8c88f5f324caa7.zip
Add no-cxx configure option
-rw-r--r--wscript10
1 files changed, 6 insertions, 4 deletions
diff --git a/wscript b/wscript
index 2261e7c..5fa55c3 100644
--- a/wscript
+++ b/wscript
@@ -32,6 +32,7 @@ def options(ctx):
opts,
{'all-headers': 'install complete header implementation',
'no-gl': 'do not build OpenGL support',
+ 'no-cxx': 'do not build C++ examples',
'no-cairo': 'do not build Cairo support',
'no-static': 'do not build static library',
'no-shared': 'do not build shared library'})
@@ -42,10 +43,11 @@ def options(ctx):
def configure(conf):
conf.load('compiler_c', cache=True)
- try:
- conf.load('compiler_cxx', cache=True)
- except Exception:
- pass
+ if not Options.options.no_cxx:
+ try:
+ conf.load('compiler_cxx', cache=True)
+ except Exception:
+ pass
conf.load('autowaf', cache=True)
autowaf.set_c_lang(conf, 'c99')