summaryrefslogtreecommitdiff
path: root/forstio/async/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'forstio/async/SConscript')
-rw-r--r--forstio/async/SConscript32
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]);