summaryrefslogtreecommitdiff
path: root/modules/tools/SConstruct
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-04-02 13:40:42 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-04-02 13:41:11 +0200
commitd9ccf8d1ee154e6576cafa2aafb2d66d4f7421f7 (patch)
treecdf4907db12b738be5c7ac1a57bebc8a430b5033 /modules/tools/SConstruct
parent0050a4d59297604f4e692e4657bd34b1ec3a2474 (diff)
tools,nix: Setting up build example env for cli modification
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]);