summaryrefslogtreecommitdiff
path: root/frontend/2d/_collisions/polygon_polygon/build.sh
diff options
context:
space:
mode:
authorMatthew Kosarek <mattkae@protonmail.com>2021-05-13 22:05:45 -0400
committerMatthew Kosarek <mattkae@protonmail.com>2021-05-13 22:05:45 -0400
commit61128756e24e88d84bd77cd4993b5f14284791f0 (patch)
treeb85091efd297447ceb2516937ffe25198198c225 /frontend/2d/_collisions/polygon_polygon/build.sh
parent262f29447700db129ff3fa25315382d80581a41c (diff)
Beginnings of the general polygon page, it looks so cool
Diffstat (limited to 'frontend/2d/_collisions/polygon_polygon/build.sh')
-rwxr-xr-xfrontend/2d/_collisions/polygon_polygon/build.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/frontend/2d/_collisions/polygon_polygon/build.sh b/frontend/2d/_collisions/polygon_polygon/build.sh
new file mode 100755
index 0000000..892dddd
--- /dev/null
+++ b/frontend/2d/_collisions/polygon_polygon/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