diff options
| author | mattkae <mattkae@protonmail.com> | 2022-01-22 13:03:12 -0500 |
|---|---|---|
| committer | mattkae <mattkae@protonmail.com> | 2022-01-22 13:03:12 -0500 |
| commit | 19defa9be56588803bbae0f38e2f271a91b9d690 (patch) | |
| tree | 92bd58290432c747b670883dbde7cbe5aed83fed /2d/softbody/softbody_2/build.sh | |
| parent | dce6e971023d6c4bc849641c10db5d65ce5fad55 (diff) | |
Rendering the square for the spring rectangle
Diffstat (limited to '2d/softbody/softbody_2/build.sh')
| -rwxr-xr-x | 2d/softbody/softbody_2/build.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/2d/softbody/softbody_2/build.sh b/2d/softbody/softbody_2/build.sh new file mode 100755 index 0000000..a6af441 --- /dev/null +++ b/2d/softbody/softbody_2/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 -s EXPORTED_RUNTIME_METHODS=cwrap |
