summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-07-29 20:57:51 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-07-29 20:57:51 +0200
commitd9a1368e23fae9e696bc061b3688fc226eaf1d7e (patch)
treed33d748b7be795e819c5ac684705e97d6d26e6c8 /SConstruct
parente75c644c2c1c5b1b72522a99dcbe91dceaa96dcc (diff)
Fixed lib for basic exampleHEADmaster
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct11
1 files changed, 10 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index def568e..a22a508 100644
--- a/SConstruct
+++ b/SConstruct
@@ -43,10 +43,18 @@ env_vars.Add('prefix',
validator=isAbsolutePath
)
+env_vars.Add(
+ BoolVariable('build_examples',
+ help='Build examples',
+ default=True
+ )
+);
+
env=Environment(ENV=os.environ, variables=env_vars, CPPPATH=[],
CPPDEFINES=['SAW_UNIX'],
CXXFLAGS=['-std=c++20','-g','-Wall','-Wextra'],
- LIBS=['forstio-core'])
+ LIBS=['forstio-core']
+);
env.__class__.add_source_files = add_kel_source_files
env.Tool('compilation_db');
env.cdb = env.CompilationDatabase('compile_commands.json');
@@ -58,6 +66,7 @@ env.targets = [];
Export('env')
SConscript('c++/SConscript')
+SConscript('examples/SConscript')
env.Alias('cdb', env.cdb);
env.Alias('all', [env.targets]);