docs/README-emscripten.md
changeset 10486 5bf595c48fd4
parent 9782 fcf237e5e834
child 10896 bc382771cd10
     1.1 --- a/docs/README-emscripten.md	Fri Oct 07 17:30:21 2016 -0700
     1.2 +++ b/docs/README-emscripten.md	Fri Oct 07 17:46:58 2016 -0700
     1.3 @@ -1,37 +1,37 @@
     1.4 -Emscripten
     1.5 -================================================================================
     1.6 -
     1.7 -Build:
     1.8 -
     1.9 -    $ mkdir build
    1.10 -    $ cd build
    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 -
    1.16 -    $ mkdir build
    1.17 -    $ cd build
    1.18 -    $ emcmake cmake ..
    1.19 -    $ emmake make
    1.20 -
    1.21 -To build one of the tests:
    1.22 -
    1.23 -    $ cd test/
    1.24 -    $ emcc -O2 --js-opts 0 -g4 testdraw2.c -I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o a.html
    1.25 -
    1.26 -Uses GLES2 renderer or software
    1.27 -
    1.28 -tests: https://dl.dropboxusercontent.com/u/17360362/SDL2-em/index.html
    1.29 -
    1.30 -Some other SDL2 libraries can be easily built (assuming SDL2 is installed somewhere):
    1.31 -
    1.32 -SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/):
    1.33 -
    1.34 -    $ EMCONFIGURE_JS=1 emconfigure ../configure
    1.35 -    build as usual...
    1.36 -
    1.37 -SDL_gfx (http://cms.ferzkopp.net/index.php/software/13-sdl-gfx):
    1.38 -
    1.39 -    $ EMCONFIGURE_JS=1 emconfigure ../configure --disable-mmx
    1.40 -    build as usual...
    1.41 +Emscripten
    1.42 +================================================================================
    1.43 +
    1.44 +Build:
    1.45 +
    1.46 +    $ mkdir build
    1.47 +    $ cd build
    1.48 +    $ emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2"
    1.49 +    $ emmake make
    1.50 +
    1.51 +Or with cmake:
    1.52 +
    1.53 +    $ mkdir build
    1.54 +    $ cd build
    1.55 +    $ emcmake cmake ..
    1.56 +    $ emmake make
    1.57 +
    1.58 +To build one of the tests:
    1.59 +
    1.60 +    $ cd test/
    1.61 +    $ emcc -O2 --js-opts 0 -g4 testdraw2.c -I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o a.html
    1.62 +
    1.63 +Uses GLES2 renderer or software
    1.64 +
    1.65 +tests: https://dl.dropboxusercontent.com/u/17360362/SDL2-em/index.html
    1.66 +
    1.67 +Some other SDL2 libraries can be easily built (assuming SDL2 is installed somewhere):
    1.68 +
    1.69 +SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/):
    1.70 +
    1.71 +    $ EMCONFIGURE_JS=1 emconfigure ../configure
    1.72 +    build as usual...
    1.73 +
    1.74 +SDL_gfx (http://cms.ferzkopp.net/index.php/software/13-sdl-gfx):
    1.75 +
    1.76 +    $ EMCONFIGURE_JS=1 emconfigure ../configure --disable-mmx
    1.77 +    build as usual...