-
Notifications
You must be signed in to change notification settings - Fork 1
/
emscripten_debug_build.bat
11 lines (7 loc) · 1.03 KB
/
emscripten_debug_build.bat
1
2
3
4
5
6
7
8
9
10
11
cd /d C:\Emscripten\emsdk-3.1.23
call emsdk_env.bat
cd /d D:\JO_Programowanie\Projekty\TriflePsychotic
if not exist build\wasm\debug mkdir build\wasm\debug
call emcc -std=c99 -Wno-switch -Wno-typedef-redefinition code/sdl_platform.c code/animation.c code/backdrops.c code/collision.c code/debug.c code/entities.c code/game_data.c code/special_entities.c code/input.c code/jormath.c code/jorstring.c code/level_initialization.c code/level_parsing.c code/main.c code/map.c code/player.c code/progress.c code/rendering.c code/text_rendering.c code/tmx_parsing.c code/ui.c -o build/wasm/debug/index.html --preload-file data --preload-file gfx --preload-file audio -sUSE_SDL=2 -sUSE_SDL_IMAGE=2 -sSDL2_IMAGE_FORMATS=[png] -sUSE_SDL_MIXER=2 -sSDL2_MIXER_FORMATS=[ogg] -sUSE_OGG=1 -sALLOW_MEMORY_GROWTH=1 -sINITIAL_MEMORY=128MB -sTOTAL_STACK=32MB -g3 -gsource-map --source-map-base http://localhost:6931/ --emrun --memoryprofiler
pause
call emrun --browser "C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe" build/wasm/debug/index.html