Update emscripten instructions for Windows;

This commit is contained in:
bjorn 2017-06-10 18:06:43 -07:00
parent 074e55dc8b
commit 70b4ea3351
1 changed files with 11 additions and 0 deletions

View File

@ -97,6 +97,8 @@ WebVR
First, install the Emscripten SDK. Make sure you're running [this
branch](https://github.com/bjornbytes/emscripten/tree/lovr) of Emscripten.
Unix:
```sh
mkdir build
cd build
@ -104,6 +106,15 @@ emcmake cmake -DCMAKE_BUILD_TYPE=Release ..
emmake make -j2
```
Windows (from a Visual Studio Command Prompt, make sure the Emscripten SDK is on PATH):
```sh
mkdir build
cd build
emcmake cmake -G "NMake Makefiles" ..
emmake nmake
```
The above commands will output `lovr.html`, `lovr.js`, and `lovr.js.mem`. To package a game, run:
```