slouken@10486: Emscripten slouken@10486: ================================================================================ slouken@10486: slouken@10486: Build: slouken@10486: slouken@10486: $ mkdir build slouken@10486: $ cd build philipp@10958: $ emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --disable-cpuinfo CFLAGS="-O2" slouken@10486: $ emmake make slouken@10486: slouken@10486: Or with cmake: slouken@10486: slouken@10486: $ mkdir build slouken@10486: $ cd build slouken@10486: $ emcmake cmake .. slouken@10486: $ emmake make slouken@10486: slouken@10486: To build one of the tests: slouken@10486: slouken@10486: $ cd test/ slouken@10486: $ emcc -O2 --js-opts 0 -g4 testdraw2.c -I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o a.html slouken@10486: slouken@10486: Uses GLES2 renderer or software slouken@10486: slouken@10486: Some other SDL2 libraries can be easily built (assuming SDL2 is installed somewhere): slouken@10486: slouken@10486: SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/): slouken@10486: slouken@10486: $ EMCONFIGURE_JS=1 emconfigure ../configure slouken@10486: build as usual... slouken@10486: slouken@10486: SDL_gfx (http://cms.ferzkopp.net/index.php/software/13-sdl-gfx): slouken@10486: slouken@10486: $ EMCONFIGURE_JS=1 emconfigure ../configure --disable-mmx slouken@10486: build as usual...