Renamed README-emscripten.txt to README-emscripten.md.
authorPhilipp Wiesemann
Sun, 28 Dec 2014 22:00:24 +0100
changeset 93017377a9a3aed6
parent 9300 0293f45e4814
child 9302 2ddb65f75084
Renamed README-emscripten.txt to README-emscripten.md.
docs/README-emscripten.md
docs/README-emscripten.txt
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/docs/README-emscripten.md	Sun Dec 28 22:00:24 2014 +0100
     1.3 @@ -0,0 +1,26 @@
     1.4 +Build:
     1.5 +$ emconfigure ./configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2"
     1.6 +$ emmake make
     1.7 +
     1.8 +Or with cmake:
     1.9 +$ emconfigure cmake ..
    1.10 +$ make
    1.11 +
    1.12 +To build one of the tests:
    1.13 +$ cd test/
    1.14 +$ emcc -O2 --js-opts 0 -g4 testdraw2.c -I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o a.html
    1.15 +
    1.16 +Uses GLES2 renderer or software
    1.17 +
    1.18 +tests: https://dl.dropboxusercontent.com/u/17360362/SDL2-em/index.html
    1.19 +
    1.20 +Some other SDL2 libraries can be easily built (assuming SDL2 is installed somewhere):
    1.21 +
    1.22 +SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/)
    1.23 +    $ EMCONFIGURE_JS=1 emconfigure ../configure
    1.24 +    build as usual...
    1.25 +
    1.26 +SDL_gfx (http://cms.ferzkopp.net/index.php/software/13-sdl-gfx):
    1.27 +    $ EMCONFIGURE_JS=1 emconfigure ../configure --disable-mmx
    1.28 +    build as usual...
    1.29 +
     2.1 --- a/docs/README-emscripten.txt	Fri Dec 26 23:16:54 2014 -0500
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,26 +0,0 @@
     2.4 -Build:
     2.5 -$ emconfigure ./configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2"
     2.6 -$ emmake make
     2.7 -
     2.8 -Or with cmake:
     2.9 -$ emconfigure cmake ..
    2.10 -$ make
    2.11 -
    2.12 -To build one of the tests:
    2.13 -$ cd test/
    2.14 -$ emcc -O2 --js-opts 0 -g4 testdraw2.c -I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o a.html
    2.15 -
    2.16 -Uses GLES2 renderer or software
    2.17 -
    2.18 -tests: https://dl.dropboxusercontent.com/u/17360362/SDL2-em/index.html
    2.19 -
    2.20 -Some other SDL2 libraries can be easily built (assuming SDL2 is installed somewhere):
    2.21 -
    2.22 -SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/)
    2.23 -    $ EMCONFIGURE_JS=1 emconfigure ../configure
    2.24 -    build as usual...
    2.25 -
    2.26 -SDL_gfx (http://cms.ferzkopp.net/index.php/software/13-sdl-gfx):
    2.27 -    $ EMCONFIGURE_JS=1 emconfigure ../configure --disable-mmx
    2.28 -    build as usual...
    2.29 -