summaryrefslogtreecommitdiff
path: root/modules/tools/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tools/SConstruct')
-rw-r--r--modules/tools/SConstruct8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/tools/SConstruct b/modules/tools/SConstruct
index 20af11b..ddfd768 100644
--- a/modules/tools/SConstruct
+++ b/modules/tools/SConstruct
@@ -43,6 +43,13 @@ env_vars.Add('prefix',
validator=isAbsolutePath
)
+env_vars.Add(
+ BoolVariable('build_examples',
+ help='Build examples',
+ default=False
+ )
+);
+
env=Environment(ENV=os.environ, variables=env_vars, CPPPATH=[],
CPPDEFINES=['SAW_UNIX'],
CXXFLAGS=['-std=c++20','-g','-Wall','-Wextra'],
@@ -65,6 +72,7 @@ env.targets = [];
Export('env')
SConscript('c++/SConscript')
SConscript('tests/SConscript')
+SConscript('examples/SConscript')
env.Alias('cdb', env.cdb);
env.Alias('all', [env.targets]);