diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-07-29 20:57:51 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-07-29 20:57:51 +0200 |
commit | d9a1368e23fae9e696bc061b3688fc226eaf1d7e (patch) | |
tree | d33d748b7be795e819c5ac684705e97d6d26e6c8 /SConstruct | |
parent | e75c644c2c1c5b1b72522a99dcbe91dceaa96dcc (diff) |
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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]); |