diff options
author | Philipp Wiesemann <philipp.wiesemann@arcor.de> | 2014-12-28 22:02:17 +0100 |
---|---|---|
committer | Philipp Wiesemann <philipp.wiesemann@arcor.de> | 2014-12-28 22:02:17 +0100 |
commit | ad3db2a2be15ee381d8e705789d97f8959e1fe34 (patch) | |
tree | a2911c16655edce682dff0b889429378d74c1e03 /docs | |
parent | ced2d4907fd9ad4d7fc80736ea5b6ca18beb4368 (diff) |
Linked README-emscripten.md in README.md and added markdown formatting.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/README-emscripten.md | 21 | ||||
-rw-r--r-- | docs/README.md | 1 |
2 files changed, 15 insertions, 7 deletions
diff --git a/docs/README-emscripten.md b/docs/README-emscripten.md index 8ca197ca9f..ca9b35b10f 100644 --- a/docs/README-emscripten.md +++ b/docs/README-emscripten.md @@ -1,14 +1,20 @@ +Emscripten +================================================================================ + Build: -$ emconfigure ./configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2" -$ emmake make + + $ emconfigure ./configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2" + $ emmake make Or with cmake: -$ emconfigure cmake .. -$ make + + $ emconfigure cmake .. + $ make To build one of the tests: -$ cd test/ -$ emcc -O2 --js-opts 0 -g4 testdraw2.c -I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o a.html + + $ cd test/ + $ emcc -O2 --js-opts 0 -g4 testdraw2.c -I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o a.html Uses GLES2 renderer or software @@ -17,10 +23,11 @@ tests: https://dl.dropboxusercontent.com/u/17360362/SDL2-em/index.html Some other SDL2 libraries can be easily built (assuming SDL2 is installed somewhere): SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/) + $ EMCONFIGURE_JS=1 emconfigure ../configure build as usual... SDL_gfx (http://cms.ferzkopp.net/index.php/software/13-sdl-gfx): + $ EMCONFIGURE_JS=1 emconfigure ../configure --disable-mmx build as usual... - diff --git a/docs/README.md b/docs/README.md index de173bd288..4e3106920e 100644 --- a/docs/README.md +++ b/docs/README.md @@ -33,6 +33,7 @@ More documentation and FAQs are available online at [the wiki](http://wiki.libsd - [CMake](README-cmake.md) - [DirectFB](README-directfb.md) - [DynAPI](README-dynapi.md) +- [Emscripten](README-emscripten.md) - [Gesture](README-gesture.md) - [Mercurial](README-hg.md) - [iOS](README-ios.md) |