summaryrefslogtreecommitdiff
path: root/2d/rigidbody/rigidbody_1/build.sh
diff options
context:
space:
mode:
authorMatthew Kosarek <mattkae@protonmail.com>2021-05-19 20:47:59 -0400
committerMatthew Kosarek <mattkae@protonmail.com>2021-05-19 20:47:59 -0400
commit64d9675091593b074d3ad1e71829291728914cee (patch)
tree1822a810c6c1ecbc3334204a776623a2eef20269 /2d/rigidbody/rigidbody_1/build.sh
parente431c58c0e5bde1689ef0be0d02588ee22c99c82 (diff)
Removed rigidbody physics demos so that I can redo them properly
Diffstat (limited to '2d/rigidbody/rigidbody_1/build.sh')
-rwxr-xr-x2d/rigidbody/rigidbody_1/build.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/2d/rigidbody/rigidbody_1/build.sh b/2d/rigidbody/rigidbody_1/build.sh
new file mode 100755
index 0000000..892dddd
--- /dev/null
+++ b/2d/rigidbody/rigidbody_1/build.sh
@@ -0,0 +1,16 @@
+filepaths=""
+
+for file in ../../../shared_cpp/*; do
+ if [ -f "$file" ]; then
+ if [[ "$file" == *.cpp ]]; then
+ filepaths+=" $file"
+ fi
+ fi
+done
+
+if [ ! -d ./dist ]; then
+ mkdir ./dist
+fi
+
+echo "$filepaths"
+emcc -o dist/output.js main.cpp $filepaths -s ALLOW_MEMORY_GROWTH=1 -s USE_WEBGL2=1 -s FULL_ES3=1 -s WASM=1 -s NO_EXIT_RUNTIME=1 \ No newline at end of file