aboutsummaryrefslogtreecommitdiff
path: root/tests/scons
diff options
context:
space:
mode:
authorLCID Fire <lcid-fire@gmx.net>2012-05-28 13:46:24 +0200
committerLCID Fire <lcid-fire@gmx.net>2012-05-28 13:46:24 +0200
commit659baab3da606c1fce73adfad0f3d11e6efa7732 (patch)
tree1f10aacc6c60087c8940bad797ae820ac09232cd /tests/scons
parent93192892a18efd70567809bc08e4d2a15635cc0e (diff)
Add small test project for SCons integration.
Diffstat (limited to 'tests/scons')
-rw-r--r--tests/scons/SConstruct5
-rw-r--r--tests/scons/integration.cpp14
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/scons/SConstruct b/tests/scons/SConstruct
new file mode 100644
index 00000000..c9472c55
--- /dev/null
+++ b/tests/scons/SConstruct
@@ -0,0 +1,5 @@
+env = Environment()
+env.Tool('emscripten')
+env.Append(CPPFLAGS='-std=c++11')
+env.Program('scons_integration', 'integration.cpp')
+
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);
+}