diff options
| author | Matthew Kosarek <mattkae@protonmail.com> | 2021-10-31 13:54:11 -0400 |
|---|---|---|
| committer | Matthew Kosarek <mattkae@protonmail.com> | 2021-10-31 13:54:11 -0400 |
| commit | 5c613a10364f30bd6add25f7950433f0c482c3ca (patch) | |
| tree | af8f6e481b6400329eca12bd8cdb35e0237d63af /2d/softbody/softbody_1/build.sh | |
| parent | a214b4f8977a4b115710b5c9d152b392ac8e24f7 (diff) | |
(mkosarek) Working undamped spring motion
Diffstat (limited to '2d/softbody/softbody_1/build.sh')
| -rwxr-xr-x | 2d/softbody/softbody_1/build.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/2d/softbody/softbody_1/build.sh b/2d/softbody/softbody_1/build.sh new file mode 100755 index 0000000..892dddd --- /dev/null +++ b/2d/softbody/softbody_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 |
