summaryrefslogtreecommitdiff
path: root/modules/lang/examples/SConscript
diff options
context:
space:
mode:
authorClaudius 'keldu' Holeksa <mail@keldu.de>2024-09-12 17:30:21 +0200
committerClaudius 'keldu' Holeksa <mail@keldu.de>2024-09-12 17:30:21 +0200
commit18bf2f08ee86fd1ed0a663d256e1c7d3142827d7 (patch)
treea8c0aca4dc1439ccfc6b746cafbb087f84a3e9bd /modules/lang/examples/SConscript
parent2e3efd182c00eb12305644d855a2f19594a0627d (diff)
lang module separating from tools
Diffstat (limited to 'modules/lang/examples/SConscript')
-rw-r--r--modules/lang/examples/SConscript31
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/lang/examples/SConscript b/modules/lang/examples/SConscript
new file mode 100644
index 0000000..99561e7
--- /dev/null
+++ b/modules/lang/examples/SConscript
@@ -0,0 +1,31 @@
+#!/bin/false
+
+import os
+import os.path
+import glob
+
+
+Import('env')
+
+dir_path = Dir('.').abspath
+
+# Environment for base library
+examples_env = env.Clone();
+
+examples_env.sources = sorted(glob.glob(dir_path + "/*.cpp"))
+examples_env.headers = sorted(glob.glob(dir_path + "/*.hpp"))
+
+env.sources += examples_env.sources;
+env.headers += examples_env.headers;
+
+objects_static = []
+examples_env.cli_mod = examples_env.Program('#bin/cli_mod_example', ['cli_mod.cpp', env.library_static]);
+
+# Set Alias
+env.examples = [examples_env.cli_mod];
+env.Alias('examples', env.examples);
+
+if env["build_examples"]:
+ env.targets += ['examples'];
+ env.Install('$prefix/bin/', env.examples);
+#endif