Scaling fix
This commit is contained in:
parent
5cb356125d
commit
b9d7d9ba7e
2 changed files with 10 additions and 13 deletions
|
|
@ -10,8 +10,10 @@ INDEX_TEMPLATE_PATH="src/web/index_template.html"
|
|||
if [[ -v 1 ]]; then
|
||||
if [ "$1" = "DEBUG" ]; then
|
||||
ODIN_FLAGS="-debug"
|
||||
EMCC_FLAGS="-O0"
|
||||
elif [ "$1" = "RELEASE" ]; then
|
||||
ODIN_FLAGS="-o:size"
|
||||
EMCC_FLAGS="-O2"
|
||||
else
|
||||
echo "Usage: <script> <DEBUG/RELEASE>"
|
||||
exit 1
|
||||
|
|
@ -46,7 +48,7 @@ files="$OUT_DIR/$WASM_OBJ_NAME $RAYLIB_PATH/wasm/libraylib.a $RAYLIB_PATH/wasm/l
|
|||
# source/main_web/main_web.odin
|
||||
# TODO (synthas): Investigate why emcc's emscripten flag causes a linker error on itch.io
|
||||
EMCC_SETTINGS="-sEXPORTED_RUNTIME_METHODS=['HEAPF32'] -sUSE_GLFW=3 -sWASM_BIGINT -sWARN_ON_UNDEFINED_SYMBOLS=0"
|
||||
flags="-O2 $EMCC_SETTINGS --shell-file $INDEX_TEMPLATE_PATH --preload-file src/assets"
|
||||
flags="$EMCC_FLAGS $EMCC_SETTINGS --shell-file $INDEX_TEMPLATE_PATH --preload-file src/assets"
|
||||
|
||||
# For debugging: Add `-g` to `emcc` (gives better error callstack in chrome)
|
||||
emcc -o $OUT_DIR/index.html $files $flags
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue