Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Initial merge of Emscripten port!
With this commit, you can compile SDL2 with Emscripten ( http://emscripten.org/ ), and make your SDL-based C/C++ program into a web app. This port was due to the efforts of several people, including: Charlie Birks, Sathyanarayanan Gunasekaran, Jukka Jyl?nki, Alon Zakai, Edward Rudd, Bruce Mitchener, and Martin Gerhardy. (Thanks, everyone!)
- Loading branch information
Showing
with
4,044 additions
and 597 deletions.
- +91 −14 CMakeLists.txt
- +2 −0 build-scripts/config.sub
- +133 −0 configure
- +83 −0 configure.in
- +26 −0 docs/README-emscripten.txt
- +1 −1 include/SDL_atomic.h
- +5 −0 include/SDL_config.h.cmake
- +5 −0 include/SDL_config.h.in
- +14 −0 include/SDL_hints.h
- +4 −0 src/audio/SDL_audio.c
- +271 −0 src/audio/emscripten/SDL_emscriptenaudio.c
- +42 −0 src/audio/emscripten/SDL_emscriptenaudio.h
- +8 −0 src/cpuinfo/SDL_cpuinfo.c
- +1 −1 src/dynapi/SDL_dynapi.h
- +68 −0 src/filesystem/emscripten/SDL_sysfilesystem.c
- +15 −1 src/joystick/SDL_gamecontroller.c
- +2 −0 src/joystick/SDL_gamecontrollerdb.h
- +426 −0 src/joystick/emscripten/SDL_sysjoystick.c
- +76 −0 src/joystick/emscripten/SDL_sysjoystick_c.h
- +4 −0 src/power/SDL_power.c
- +62 −0 src/power/emscripten/SDL_syspower.c
- +4 −0 src/render/opengles2/SDL_gles2funcs.h
- +47 −8 src/render/opengles2/SDL_render_gles2.c
- +3 −0 src/video/SDL_sysvideo.h
- +3 −0 src/video/SDL_video.c
- +638 −0 src/video/emscripten/SDL_emscriptenevents.c
- +36 −0 src/video/emscripten/SDL_emscriptenevents.h
- +136 −0 src/video/emscripten/SDL_emscriptenframebuffer.c
- +32 −0 src/video/emscripten/SDL_emscriptenframebuffer.h
- +218 −0 src/video/emscripten/SDL_emscriptenmouse.c
- +39 −0 src/video/emscripten/SDL_emscriptenmouse.h
- +117 −0 src/video/emscripten/SDL_emscriptenopengles.c
- +49 −0 src/video/emscripten/SDL_emscriptenopengles.h
- +320 −0 src/video/emscripten/SDL_emscriptenvideo.c
- +52 −0 src/video/emscripten/SDL_emscriptenvideo.h
- +13 −0 test/Makefile.in
- +39 −20 test/checkkeys.c
- +5 −0 test/configure
- +6 −0 test/configure.in
- +25 −0 test/emscripten/joystick-pre.js
- +16 −0 test/loopwave.c
- +1 −0 test/testautomation_surface.c
- +39 −19 test/testdraw2.c
- +41 −19 test/testdrawchessboard.c
- +19 −0 test/testfilesystem.c
- +100 −84 test/testgamecontroller.c
- +41 −27 test/testgesture.c
- +72 −45 test/testgles2.c
- +75 −56 test/testintersections.c
- +56 −39 test/testjoystick.c
- +29 −15 test/testmultiaudio.c
- +74 −51 test/testoverlay2.c
- +38 −27 test/testrelative.c
- +31 −13 test/testrendercopyex.c
- +36 −17 test/testrendertarget.c
- +31 −12 test/testscale.c
- +30 −11 test/testsprite2.c
- +28 −11 test/testspriteminimal.c
- +41 −23 test/teststreaming.c
- +62 −35 test/testviewport.c
- +63 −48 test/testwm2.c
Oops, something went wrong.