aboutsummaryrefslogtreecommitdiff
path: root/tests/scons
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scons')
-rw-r--r--tests/scons/SConstruct5
-rw-r--r--tests/scons/integration.cpp14
-rw-r--r--tests/scons/other.c0
3 files changed, 19 insertions, 0 deletions
diff --git a/tests/scons/SConstruct b/tests/scons/SConstruct
new file mode 100644
index 00000000..facdff0a
--- /dev/null
+++ b/tests/scons/SConstruct
@@ -0,0 +1,5 @@
+env = Environment()
+env.Tool('emscripten')
+env.Append(CXXFLAGS='-std=c++11')
+env.Program('scons_integration', ['integration.cpp', 'other.c'])
+
diff --git a/tests/scons/integration.cpp b/tests/scons/integration.cpp
new file mode 100644
index 00000000..c3d2031a
--- /dev/null
+++ b/tests/scons/integration.cpp
@@ -0,0 +1,14 @@
+
+#include <string>
+#include <iostream>
+
+int main() {
+ std::string output("If you see this - the world is all right!");
+
+ auto func = [=](std::string text) -> int {
+ std::cout << text << std::endl;
+ return 5;
+ };
+
+ return func(output);
+}
diff --git a/tests/scons/other.c b/tests/scons/other.c
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/tests/scons/other.c