summaryrefslogtreecommitdiff
path: root/json/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'json/SConscript')
-rw-r--r--json/SConscript30
1 files changed, 30 insertions, 0 deletions
diff --git a/json/SConscript b/json/SConscript
new file mode 100644
index 0000000..2c9d8d9
--- /dev/null
+++ b/json/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.twitter_json_benchmark = core_env.Program('#build/twitter_json_benchmark', ['twitter_json_benchmark.cpp']);
+
+# Set Alias
+env.Alias('twitter_json_benchmark', [env.twitter_json_benchmark]);
+
+env.targets += ['twitter_json_benchmark'];
+
+# Install
+env.Install('$prefix/bin/', [env.twitter_json_benchmark]);