aboutsummaryrefslogtreecommitdiff
path: root/demos/scons-embind
diff options
context:
space:
mode:
Diffstat (limited to 'demos/scons-embind')
-rw-r--r--demos/scons-embind/SConstruct23
-rw-r--r--demos/scons-embind/bar.cpp2
-rw-r--r--demos/scons-embind/foo.cpp11
-rw-r--r--demos/scons-embind/test.js2
4 files changed, 0 insertions, 38 deletions
diff --git a/demos/scons-embind/SConstruct b/demos/scons-embind/SConstruct
deleted file mode 100644
index 8afc3e27..00000000
--- a/demos/scons-embind/SConstruct
+++ /dev/null
@@ -1,23 +0,0 @@
-env = Environment(
- toolpath=['../../scons-tools'],
- tools=['cc', 'c++', 'ar', 'emscripten', 'llvm', 'closure'],
- LLVM_ROOT='/opt/local/bin',
- CLANG='clang-mp-3.2',
- CLANGXX='clang++-mp-3.2',
- LLVM_LINK='llvm-link-mp-3.2',
- LLVM_OPT='opt-mp-3.2',
- LLVM_DIS='llvm-dis-mp-3.2',
- EMSCRIPTEN_VERSION_FILE=File('build/version_file'),
- EMSCRIPTEN_SETTINGS={
- 'ASM_JS': 0,
- })
-env['BUILDERS']['WrapInModule'] = Builder(
- action='cp $SOURCE $TARGET',
-)
-
-env.Append()
-a1 = env.Object('build/foo.bc', 'foo.cpp')
-a2 = env.Object('build/bar.bc', 'bar.cpp')
-total = env.LLVMLink('build/thelibrary.bc', [a1, a2])
-
-env.emscripten('build/thelibrary.js', total)
diff --git a/demos/scons-embind/bar.cpp b/demos/scons-embind/bar.cpp
deleted file mode 100644
index a3908014..00000000
--- a/demos/scons-embind/bar.cpp
+++ /dev/null
@@ -1,2 +0,0 @@
-void foo() {
-}
diff --git a/demos/scons-embind/foo.cpp b/demos/scons-embind/foo.cpp
deleted file mode 100644
index 61be501a..00000000
--- a/demos/scons-embind/foo.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
-#include <stdio.h>
-#include <emscripten/bind.h>
-
-void print_some_stuff(int a, float b, const std::string& s) {
- printf("print_some_stuff: %d, %f, %s\n", a, b, s.c_str());
-}
-
-EMSCRIPTEN_BINDINGS(foo) {
- emscripten::function("print_some_stuff", &print_some_stuff);
-}
-
diff --git a/demos/scons-embind/test.js b/demos/scons-embind/test.js
deleted file mode 100644
index a6252fd8..00000000
--- a/demos/scons-embind/test.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var thelibrary = require('./build/thelibrary.js');
-thelibrary.Module.print_some_stuff(1, 2, 'hello world');