docs/README-emscripten.md
changeset 9302 2ddb65f75084
parent 9301 7377a9a3aed6
child 9782 fcf237e5e834
     1.1 --- a/docs/README-emscripten.md	Sun Dec 28 22:00:24 2014 +0100
     1.2 +++ b/docs/README-emscripten.md	Sun Dec 28 22:02:17 2014 +0100
     1.3 @@ -1,14 +1,20 @@
     1.4 +Emscripten
     1.5 +================================================================================
     1.6 +
     1.7  Build:
     1.8 -$ emconfigure ./configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2"
     1.9 -$ emmake make
    1.10 +
    1.11 +    $ emconfigure ./configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2"
    1.12 +    $ emmake make
    1.13  
    1.14  Or with cmake:
    1.15 -$ emconfigure cmake ..
    1.16 -$ make
    1.17 +
    1.18 +    $ emconfigure cmake ..
    1.19 +    $ make
    1.20  
    1.21  To build one of the tests:
    1.22 -$ cd test/
    1.23 -$ emcc -O2 --js-opts 0 -g4 testdraw2.c -I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o a.html
    1.24 +
    1.25 +    $ cd test/
    1.26 +    $ emcc -O2 --js-opts 0 -g4 testdraw2.c -I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o a.html
    1.27  
    1.28  Uses GLES2 renderer or software
    1.29  
    1.30 @@ -17,10 +23,11 @@
    1.31  Some other SDL2 libraries can be easily built (assuming SDL2 is installed somewhere):
    1.32  
    1.33  SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/)
    1.34 +
    1.35      $ EMCONFIGURE_JS=1 emconfigure ../configure
    1.36      build as usual...
    1.37  
    1.38  SDL_gfx (http://cms.ferzkopp.net/index.php/software/13-sdl-gfx):
    1.39 +
    1.40      $ EMCONFIGURE_JS=1 emconfigure ../configure --disable-mmx
    1.41      build as usual...
    1.42 -