Skip to content

Commit

Permalink
Emscripten: Corrected build instructions in documentation.
Browse files Browse the repository at this point in the history
And fixed a typo.
  • Loading branch information
philippwiesemann committed Jun 26, 2015
1 parent 3a08b46 commit 9b6f159
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/README-emscripten.md
Expand Up @@ -3,13 +3,17 @@ Emscripten

Build:

$ emconfigure ./configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2"
$ mkdir build
$ cd build
$ emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2"
$ emmake make

Or with cmake:

$ emconfigure cmake ..
$ make
$ mkdir build
$ cd build
$ emcmake cmake ..
$ emmake make

To build one of the tests:

Expand All @@ -22,7 +26,7 @@ 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/)
SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/):

$ EMCONFIGURE_JS=1 emconfigure ../configure
build as usual...
Expand Down

0 comments on commit 9b6f159

Please sign in to comment.