2 ================================================================================
8 $ emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false 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
23 Uses GLES2 renderer or software
25 tests: https://dl.dropboxusercontent.com/u/17360362/SDL2-em/index.html
27 Some other SDL2 libraries can be easily built (assuming SDL2 is installed somewhere):
29 SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/):
31 $ EMCONFIGURE_JS=1 emconfigure ../configure
34 SDL_gfx (http://cms.ferzkopp.net/index.php/software/13-sdl-gfx):
36 $ EMCONFIGURE_JS=1 emconfigure ../configure --disable-mmx