diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-11-13 21:43:05 +0100 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-11-13 21:43:05 +0100 |
commit | 9155deb31b4ff2150333a13d4f15ae7bdef1af5c (patch) | |
tree | 9eaf2af2c12265df8a72f071704b0450232a9c1a /c++/tools/SConscript | |
parent | 0302bb7d3b1ab2ac936911a4466a2530650c7b83 (diff) |
tools: Reintroducing tools dir
Diffstat (limited to 'c++/tools/SConscript')
-rw-r--r-- | c++/tools/SConscript | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/c++/tools/SConscript b/c++/tools/SConscript new file mode 100644 index 0000000..7c9efd7 --- /dev/null +++ b/c++/tools/SConscript @@ -0,0 +1,32 @@ +#!/bin/false + +import os +import os.path +import glob + + +Import('env') + +dir_path = Dir('.').abspath + +# Environment for base library +tools_env = env.Clone(); + +tools_env.sources = sorted(glob.glob(dir_path + "/*.cpp")) +tools_env.headers = sorted(glob.glob(dir_path + "/*.h")) + +env.sources += tools_env.sources; +env.headers += tools_env.headers; + +## Static lib +objects_static = [] +tools_env.add_source_files(objects_static, tools_env.sources, shared=False); +tools_env.c_array_example = tools_env.Program('#build/forstio-c-array-example', [objects_static]); + +# Set Alias +env.Alias('tools_c_array_example', [tools_env.c_array_example]); + +env.targets += ['tools_c_array_example']; + +# Install +env.Install('$prefix/bin/', [tools_env.c_array_example]); |