diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-01-12 16:05:22 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-01-12 16:05:22 +0100 |
| commit | 6eb839f219d80c018a58865a79f0623e839cef09 (patch) | |
| tree | b9668086665748487cb9be6e8de5eaeda838405c /kel_cmds/c++/SConscript | |
| parent | af4bb05489eae478420a1792419fe43ee4b732d3 (diff) | |
| download | apps-dev_tools-6eb839f219d80c018a58865a79f0623e839cef09.tar.gz | |
Adding commands
Diffstat (limited to 'kel_cmds/c++/SConscript')
| -rw-r--r-- | kel_cmds/c++/SConscript | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/kel_cmds/c++/SConscript b/kel_cmds/c++/SConscript new file mode 100644 index 0000000..6024167 --- /dev/null +++ b/kel_cmds/c++/SConscript @@ -0,0 +1,32 @@ +#!/bin/false + +import os +import os.path +import glob + + +Import('env') + +dir_path = Dir('.').abspath + +# Environment for base library +program_env = env.Clone(); + +program_env.sources = sorted(glob.glob(dir_path + "/*.cpp")) +program_env.headers = sorted(glob.glob(dir_path + "/*.hpp")) + +env.sources += program_env.sources; +env.headers += program_env.headers; + +## Static lib +objects_static = [] +program_env.add_source_files(objects_static, program_env.sources, shared=False); +env.binary = program_env.Program('#build/kel_cmds', [objects_static]); + +# Set Alias +env.Alias('binary', [env.binary]); + +env.targets += ['binary']; + +# Install +env.Install('$prefix/bin/', [env.binary]); |
