summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/SDL2/docs/README-emscripten.md
diff options
context:
space:
mode:
author ImJezze <jezze@gmx.net>2016-03-03 22:37:07 +0100
committer ImJezze <jezze@gmx.net>2016-03-03 22:37:07 +0100
commit6795ffe7933447e5a7e108c487c0746cea2df718 (patch)
treed1c2d73c8fda19970a739d7c88222b497b85bb4c /3rdparty/SDL2/docs/README-emscripten.md
parenta12fa9fb65071d51abfae75cb481256f20f0d008 (diff)
Fixed merge of remote-tracking branch 'refs/remotes/mamedev/master'
- unwanted case-sensitive renaming
Diffstat (limited to '3rdparty/SDL2/docs/README-emscripten.md')
-rw-r--r--3rdparty/SDL2/docs/README-emscripten.md37
1 files changed, 37 insertions, 0 deletions
diff --git a/3rdparty/SDL2/docs/README-emscripten.md b/3rdparty/SDL2/docs/README-emscripten.md
new file mode 100644
index 00000000000..62012db72cc
--- /dev/null
+++ b/3rdparty/SDL2/docs/README-emscripten.md
@@ -0,0 +1,37 @@
+Emscripten
+================================================================================
+
+Build:
+
+ $ mkdir build
+ $ cd build
+ $ emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2"
+ $ emmake make
+
+Or with cmake:
+
+ $ mkdir build
+ $ cd build
+ $ emcmake cmake ..
+ $ emmake 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
+
+Uses GLES2 renderer or software
+
+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...