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 /examples | |
parent | e75c644c2c1c5b1b72522a99dcbe91dceaa96dcc (diff) |
Diffstat (limited to 'examples')
-rw-r--r-- | examples/SConscript | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/examples/SConscript b/examples/SConscript new file mode 100644 index 0000000..f69fc64 --- /dev/null +++ b/examples/SConscript @@ -0,0 +1,31 @@ +#!/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; + +objects_static = [] +examples_env.echo_server = examples_env.Program('#bin/kel_unit_example_basic', ['basic.cpp']); + +# Set Alias +env.examples = [examples_env.echo_server]; +env.Alias('examples', env.examples); + +if env["build_examples"]: + env.targets += ['examples']; + env.Install('$prefix/bin/', env.examples); +#endif |