2 ================================================================================
8 $ emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-
threads --disable-cpuinfo CFLAGS=
"-O2"
18 To build
one of the tests:
21 $ emcc -O2 --js-opts 0 -g4 testdraw2.c -
I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o
a.html
25 Some other SDL2 libraries can be easily built (assuming SDL2 is installed somewhere):
29 $ EMCONFIGURE_JS=1 emconfigure ../configure
34 $ EMCONFIGURE_JS=1 emconfigure ../configure --disable-mmx
static SDL_Renderer * renderer
static SDL_Thread * threads[6]
GLboolean GLboolean GLboolean GLboolean a