docs/README-emscripten.txt
changeset 9293 d0667f0e808a
parent 9278 8900afb78a19
equal deleted inserted replaced
9292:e0868ad5810c 9293:d0667f0e808a
     4 
     4 
     5 Or with cmake:
     5 Or with cmake:
     6 $ emconfigure cmake ..
     6 $ emconfigure cmake ..
     7 $ make
     7 $ make
     8 
     8 
     9 To build one of the tests -
     9 To build one of the tests:
    10 $ cd test/
    10 $ cd test/
    11 $ emcc -O2 --js-opts 0 -g4 testdraw2.c -I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o a.html
    11 $ emcc -O2 --js-opts 0 -g4 testdraw2.c -I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o a.html
    12 
    12 
    13 Uses GLES2 renderer or software
    13 Uses GLES2 renderer or software
    14 
    14 
    15 tests: https://dl.dropboxusercontent.com/u/17360362/SDL2-em/index.html
    15 tests: https://dl.dropboxusercontent.com/u/17360362/SDL2-em/index.html
    16 
    16 
    17 Some other SDL2 libraries can be easily built (assuming SDL2 is installed somwhere):
    17 Some other SDL2 libraries can be easily built (assuming SDL2 is installed somewhere):
    18 
    18 
    19 SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/)
    19 SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/)
    20     $ EMCONFIGURE_JS=1 emconfigure ../configure
    20     $ EMCONFIGURE_JS=1 emconfigure ../configure
    21     build as usual...
    21     build as usual...
    22 
    22