Update emscripten building instructions
authorCharlie Birks <admin@daftgames.net>
Mon, 10 Jun 2019 16:45:40 -0700
changeset 653d5baeefe5687
parent 652 679fc3083485
child 654 2af29733c9e0
Update emscripten building instructions
- Reccomend Emscripten ports
- Update repo
- More details about prefix
README-emscripten.txt
     1.1 --- a/README-emscripten.txt	Mon Jun 10 16:42:52 2019 -0700
     1.2 +++ b/README-emscripten.txt	Mon Jun 10 16:45:40 2019 -0700
     1.3 @@ -1,14 +1,20 @@
     1.4  Building SDL2_image
     1.5  -------------------
     1.6  
     1.7 +The easiest way to use SDL2_image with Emscripten is to use Emscripten ports (https://kripken.github.io/emscripten-site/docs/compiling/Building-Projects.html#emscripten-ports) (-s USE_SDL_IMAGE=2).
     1.8 +
     1.9 +If you want to build it yourself instead you can use these instructions:
    1.10 +
    1.11  Step 0 - get emscripten
    1.12  
    1.13  Step 1 - get sdl2-emscripten
    1.14 -* clone https://github.com/gsathya/SDL-emscripten.git
    1.15 -* follow the build instructions in SDL-emscripten/README-emscripten.txt
    1.16 + * clone https://github.com/emscripten-ports/SDL2.git
    1.17 + * follow the build instructions in SDL2/docs/README-emscripten.md (make sure to pass a --prefix to configure)
    1.18 + * make install
    1.19  
    1.20  Step 2 - get sdl_image
    1.21   * emconfigure ./configure  --disable-sdltest --with-sdl-prefix=/path/to/sdl --prefix=/path/to/install
    1.22 + * (where /path/to/sdl is the path you passed as --prefix to SDL2 configure)
    1.23   * emmake make
    1.24   * make install
    1.25