summaryrefslogtreecommitdiff
path: root/tools/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'tools/SConscript')
-rw-r--r--tools/SConscript30
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/SConscript b/tools/SConscript
new file mode 100644
index 0000000..6b9473c
--- /dev/null
+++ b/tools/SConscript
@@ -0,0 +1,30 @@
+#!/bin/false
+
+import os
+import os.path
+import glob
+
+
+Import('env')
+
+dir_path = Dir('.').abspath
+
+# Environment for base library
+core_env = env.Clone();
+
+core_env.sources = sorted(glob.glob(dir_path + "/*.cpp"))
+core_env.headers = sorted(glob.glob(dir_path + "/*.hpp"))
+
+env.sources += core_env.sources;
+env.headers += core_env.headers;
+
+objects_static = []
+env.tools = core_env.Program('#build/forstio_examples_c_lang_bindings', ['c_lang_bind.cpp']);
+
+# Set Alias
+env.Alias('tools', [env.tools]);
+
+env.targets += ['tools'];
+
+# Install
+env.Install('$prefix/bin/', [env.tools]);