diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-03-08 19:57:18 +0100 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-03-08 19:57:18 +0100 |
commit | 21f52f91ddbaf409c45663a71d84033fbde22198 (patch) | |
tree | ebe7d664b89e506240ec255f878feb7b6bfaf5d5 /modules/io/examples/SConscript | |
parent | 7a097bd3bdb288342cc7314f6942347274811030 (diff) |
io: Preparing example env
Diffstat (limited to 'modules/io/examples/SConscript')
-rw-r--r-- | modules/io/examples/SConscript | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/io/examples/SConscript b/modules/io/examples/SConscript new file mode 100644 index 0000000..850edcd --- /dev/null +++ b/modules/io/examples/SConscript @@ -0,0 +1,28 @@ +#!/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_client = examples_env.Program('#bin/echo_client', ['echo_client.cpp', env.sources]); +examples_env.echo_server = examples_env.Program('#bin/echo_server', ['echo_server.cpp', env.sources]); + +# Set Alias +env.Alias('examples', [examples_env.echo_client, examples_env.echo_server]); + +env.targets += ['examples']; |