diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-05-28 04:50:50 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-05-28 04:50:50 -0700 |
commit | a2b42ed8c959aeb15e4225d877f6ccaaedf7df48 (patch) | |
tree | dd751f602d1d7211b2ad8436cb048bd2d2a97cd4 | |
parent | 57c264d129fb851857814fdefc968eee8c526a0c (diff) | |
parent | 659baab3da606c1fce73adfad0f3d11e6efa7732 (diff) |
Merge pull request #447 from LCID-Fire/incoming
Add small test project for SCons integration.
-rw-r--r-- | tests/scons/SConstruct | 5 | ||||
-rw-r--r-- | tests/scons/integration.cpp | 14 |
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); +} |