mirror of
https://github.com/keharriso/love-nuklear.git
synced 2025-09-10 16:17:47 -04:00
Add MSVC build instructions.
This commit is contained in:
parent
640a50532b
commit
0347818eca
2 changed files with 17 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
build/
|
16
README.md
16
README.md
|
@ -132,6 +132,22 @@ $ mingw32-make
|
||||||
```
|
```
|
||||||
18. Locate `nuklear.dll` inside the build folder.
|
18. Locate `nuklear.dll` inside the build folder.
|
||||||
|
|
||||||
|
### Compiling with CMake and MSVC on Windows
|
||||||
|
|
||||||
|
1. Install [CMake](https://cmake.org/download/) and [Visual Studio](https://visualstudio.microsoft.com/).
|
||||||
|
Community or Express edition is sufficient.
|
||||||
|
2. Download the source code for [LuaJIT](http://luajit.org/download.html).
|
||||||
|
3. Open a Visual Studio Command Prompt (x86 or x64 depending on what architecture you need)
|
||||||
|
and set the current directory to the LuaJIT folder (the one that contains "README"). Also
|
||||||
|
remember this path.
|
||||||
|
4. At the VS Command Prompt, set your current directory to `src` then
|
||||||
|
execute `msvcbuild.bat`. This will create lua51.dll, lua51.lib, and luajit.exe
|
||||||
|
5. Now open new command prompt window inside the `love-nuklear` folder.
|
||||||
|
6. Type `set "LUA_DIR=<path to directory at step 3>"`
|
||||||
|
7. Then type `cmake -Bbuild -H. -A Win32 -DLUA_INCLUDE_DIR=%LUA_DIR%\src -DLUA_LIBRARY=%LUA_DIR%\src\lua51.lib -DCMAKE_INSTALL_PREFIX=%CD%\install`.
|
||||||
|
If you previously compile LuaJIT using x64 VS command prompt, replace `Win32` with `x64` at above command.
|
||||||
|
8. Then type `cmake --build build --config Release --target install` and you'll found `nuklear.dll` inside "install" folder.
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
A complete description of all functions and style properties, alongside additional examples, is available at the [LÖVE-Nuklear wiki](https://github.com/keharriso/love-nuklear/wiki).
|
A complete description of all functions and style properties, alongside additional examples, is available at the [LÖVE-Nuklear wiki](https://github.com/keharriso/love-nuklear/wiki).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue