Emscripten: Corrected build instructions in documentation.

And fixed a typo.
This commit is contained in:
Philipp Wiesemann 2015-06-26 20:11:41 +02:00
parent 3a08b46336
commit 9b6f159c3d
1 changed files with 8 additions and 4 deletions

View File

@ -3,13 +3,17 @@ Emscripten
Build: 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 $ emmake make
Or with cmake: Or with cmake:
$ emconfigure cmake .. $ mkdir build
$ make $ cd build
$ emcmake cmake ..
$ emmake make
To build one of the tests: To build one of the tests:
@ -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): 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 $ EMCONFIGURE_JS=1 emconfigure ../configure
build as usual... build as usual...