diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-04-17 18:06:54 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-04-17 18:06:54 +0200 |
commit | d25750adaeec754fbad0e79a5570ed3b5dc02513 (patch) | |
tree | 23e96e5aa7de38c1df7fe6c5c02b6eb5cb7121c6 /examples/SConscript | |
parent | c6c35555cf18a871f9ba04982570cc77fdb60415 (diff) |
Moved examples and added some fun rendering
Diffstat (limited to 'examples/SConscript')
-rw-r--r-- | examples/SConscript | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/examples/SConscript b/examples/SConscript new file mode 100644 index 0000000..c9d85cb --- /dev/null +++ b/examples/SConscript @@ -0,0 +1,33 @@ +#!/bin/false + +import os +import os.path +import glob + + +Import('env') + +dir_path = Dir('.').abspath + +# Environment for base library +examples_env = env.Clone(); + +examples_env.sources = sorted(glob.glob(dir_path + "/*.cpp")) +examples_env.headers = sorted(glob.glob(dir_path + "/*.hpp")) + +env.sources += examples_env.sources; +env.headers += examples_env.headers; + +# Cavity2D +examples_objects = []; +examples_env.add_source_files(examples_objects, ['cavity_2d.cpp'], shared=False); +examples_env.cavity_2d = examples_env.Program('#bin/cavity_2d', [env.library_static, examples_objects]); + +# Set Alias +env.examples = [examples_env.cavity_2d]; +env.Alias('examples', env.examples); + +if env["build_examples"]: + env.targets += ['examples']; + env.Install('$prefix/bin/', env.examples); +#endif |