From de850676e79da39aec6f1ce0400cfa94cecbd744 Mon Sep 17 00:00:00 2001 From: mattkae Date: Sun, 19 Sep 2021 16:32:15 -0400 Subject: First commit --- themes/build.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 themes/build.sh (limited to 'themes/build.sh') diff --git a/themes/build.sh b/themes/build.sh new file mode 100755 index 0000000..5c3104d --- /dev/null +++ b/themes/build.sh @@ -0,0 +1,16 @@ +filepaths="" + +for file in ./*; 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 $filepaths -s ALLOW_MEMORY_GROWTH=1 -s USE_WEBGL2=1 -s FULL_ES3=1 -s WASM=1 -s NO_EXIT_RUNTIME=1 -- cgit v1.2.1