mirror of https://github.com/bjornbytes/lovr.git
Update emscripten instructions for Windows;
This commit is contained in:
parent
074e55dc8b
commit
70b4ea3351
11
COMPILING.md
11
COMPILING.md
|
@ -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:
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue