diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-09-09 11:02:12 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-09-09 11:02:12 +0200 |
commit | 7ff6ea3bde6eb1d3b55c558303c48e065c38199b (patch) | |
tree | 6da790a967d7fe73f696dd3de25e18690a5e1d55 /examples/cavity_2d/SConscript | |
parent | 3fa7dcb5684504dc99d14d2dc003876151636834 (diff) |
Trying to isolate nix builds a bit
Diffstat (limited to 'examples/cavity_2d/SConscript')
-rw-r--r-- | examples/cavity_2d/SConscript | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/examples/cavity_2d/SConscript b/examples/cavity_2d/SConscript new file mode 100644 index 0000000..077fb99 --- /dev/null +++ b/examples/cavity_2d/SConscript @@ -0,0 +1,41 @@ +#!/bin/false + +import os +import os.path +import glob + + +Import('env') + +dir_path = Dir('.').abspath + +# Environment for base library +cavity2d_env = examples_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.meta_2d, +# examples_env.cavity_2d, +# examples_env.cavity_3d, +# examples_env.particle_ibm_2d + examples_env.poiseulle_2d, + examples_env.poiseulle_channel_2d, + examples_env.poiseulle_particles_channel_2d +]; +env.Alias('examples', env.examples); + +if env["build_examples"]: + env.targets += ['examples']; + env.Install('$prefix/bin/', env.examples); +#endif |