deep-c-rsc/build-emscripten.sh

14 lines
611 B
Bash
Raw Normal View History

2021-07-18 22:50:13 -04:00
java -jar ./JCGO/jcgo.jar mudclient -src ./mudclient204-threadless \
@JCGO/stdpaths.in
2021-07-19 15:02:07 -04:00
patch -p0 -i emscripten-sdl.diff
2021-07-18 22:50:13 -04:00
emcc -O2 -I ./JCGO/include -I ./JCGO/native -I \
-fno-strict-aliasing \
2021-07-19 15:02:07 -04:00
-DJCGO_NOGC -DJCGO_FPFAST -DJCGO_FASTMATH \
2021-07-18 22:50:13 -04:00
-DJCGO_INTFIT -DJCGO_UNIX -D_FPU_CONTROL_H -D_IEEEFP_H -DJCGO_UNIFSYS \
-o mudclient.html jcgo_Out/Main.c -lm -lSDL2 \
-s ALLOW_MEMORY_GROWTH=1 -s USE_SDL=2 -s ASYNCIFY \
2021-07-19 15:02:07 -04:00
-s 'ASYNCIFY_IMPORTS=["js_clientStream_new","js_clientStream_readStream","js_clientStream_availableStream","js_clientStream_readStreamBytes"]' \
2021-07-18 22:50:13 -04:00
--preload-file ./data204