diff options
author | Matthew Kosarek <mattkae@protonmail.com> | 2021-05-26 21:27:04 -0400 |
---|---|---|
committer | Matthew Kosarek <mattkae@protonmail.com> | 2021-05-26 21:27:04 -0400 |
commit | e3d150f9d045c2ef4fcf952daf88d9e4999c398f (patch) | |
tree | 9cffe465480fb7be95f0b8c587c320044a699b26 /2d/rigidbody/rigidbody_3/build.sh | |
parent | 7a4cb77ddccbce28cded0c97cf3bb975aafbec16 (diff) |
Groundwork for 2d collision work
Diffstat (limited to '2d/rigidbody/rigidbody_3/build.sh')
-rwxr-xr-x | 2d/rigidbody/rigidbody_3/build.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/2d/rigidbody/rigidbody_3/build.sh b/2d/rigidbody/rigidbody_3/build.sh new file mode 100755 index 0000000..892dddd --- /dev/null +++ b/2d/rigidbody/rigidbody_3/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 |