From 158e9706b2ecf9d421d9a57064fd093eb57007f4 Mon Sep 17 00:00:00 2001 From: Claudius Holeksa Date: Sun, 23 Apr 2023 23:48:11 +0200 Subject: c++: Added async tree --- forstio/async/SConscript | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 forstio/async/SConscript (limited to 'forstio/async/SConscript') 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]); -- cgit v1.2.3