diff options
author | Claudius Holeksa <mail@keldu.de> | 2023-04-23 23:48:11 +0200 |
---|---|---|
committer | Claudius Holeksa <mail@keldu.de> | 2023-04-23 23:48:11 +0200 |
commit | 158e9706b2ecf9d421d9a57064fd093eb57007f4 (patch) | |
tree | 7b3436e1b5b9afe0a7e566d8f4807bc0f14abe81 /forstio/async/SConscript | |
parent | cb7f1acf33a8b766f325984d04dd70ed43335c27 (diff) |
c++: Added async tree
Diffstat (limited to 'forstio/async/SConscript')
-rw-r--r-- | forstio/async/SConscript | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/forstio/async/SConscript b/forstio/async/SConscript new file mode 100644 index 0000000..0b1e7dd --- /dev/null +++ b/forstio/async/SConscript @@ -0,0 +1,32 @@ +#!/bin/false + +import os +import os.path +import glob + + +Import('env') + +dir_path = Dir('.').abspath + +env.sources += sorted(glob.glob(dir_path + "/*.cpp")) +env.headers += sorted(glob.glob(dir_path + "/*.h")) + +# Environment for base library +base_lib_env = env.Clone(); + +## Shared lib +objects_shared = [] +base_lib_env.add_source_files(objects_shared, env.sources, shared=True); +env.library_shared = base_lib_env.SharedLibrary('#build/forstio-async', [objects_shared]); + +## Static lib +objects_static = [] +base_lib_env.add_source_files(objects_static, env.sources, shared=False); +env.library_static = base_lib_env.StaticLibrary('#build/forstio-async', [objects_static]); + +# Export to other libs +Export('base_lib_env') + +# Set Alias +env.Alias('library', [env.library_shared, env.library_static]); |