summaryrefslogtreecommitdiff
path: root/modules/lang/c++
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lang/c++')
-rw-r--r--modules/lang/c++/SConscript33
-rw-r--r--modules/lang/c++/c_common.hpp7
-rw-r--r--modules/lang/c++/c_rpc.hpp7
-rw-r--r--modules/lang/c++/c_transfer.hpp8
4 files changed, 55 insertions, 0 deletions
diff --git a/modules/lang/c++/SConscript b/modules/lang/c++/SConscript
new file mode 100644
index 0000000..9ff46d0
--- /dev/null
+++ b/modules/lang/c++/SConscript
@@ -0,0 +1,33 @@
+#!/bin/false
+
+import os
+import os.path
+import glob
+
+
+Import('env')
+
+dir_path = Dir('.').abspath
+
+# Environment for base library
+tools_env = env.Clone();
+
+tools_env.sources = sorted(glob.glob(dir_path + "/*.cpp"))
+tools_env.headers = sorted(glob.glob(dir_path + "/*.hpp"))
+
+env.sources += tools_env.sources;
+env.headers += tools_env.headers;
+
+## Static lib
+objects_static = []
+tools_env.add_source_files(objects_static, tools_env.sources, shared=False);
+env.library_static = tools_env.StaticLibrary('#build/forstio-tools', [objects_static]);
+
+# Set Alias
+env.Alias('library_tools', [env.library_static]);
+
+env.targets += ['library_tools'];
+
+# Install
+env.Install('$prefix/lib/', [env.library_static]);
+env.Install('$prefix/include/forstio/tools/', [tools_env.headers]);
diff --git a/modules/lang/c++/c_common.hpp b/modules/lang/c++/c_common.hpp
new file mode 100644
index 0000000..6999126
--- /dev/null
+++ b/modules/lang/c++/c_common.hpp
@@ -0,0 +1,7 @@
+#pragma once
+
+namespace saw {
+namespace lang {
+struct RemoteC {};
+}
+}
diff --git a/modules/lang/c++/c_rpc.hpp b/modules/lang/c++/c_rpc.hpp
new file mode 100644
index 0000000..75c2f7c
--- /dev/null
+++ b/modules/lang/c++/c_rpc.hpp
@@ -0,0 +1,7 @@
+#pragma once
+
+#include "c_rpc_types.hpp"
+
+namespace saw {
+
+}
diff --git a/modules/lang/c++/c_transfer.hpp b/modules/lang/c++/c_transfer.hpp
new file mode 100644
index 0000000..6c2061b
--- /dev/null
+++ b/modules/lang/c++/c_transfer.hpp
@@ -0,0 +1,8 @@
+#pragma once
+
+#include "c_common.hpp"
+
+namespace saw {
+template<typename Interface, typename T>
+struct language {};
+}