WIP Windows support
This commit is contained in:
parent
dd0cce5ecc
commit
e392dff30f
2 changed files with 6 additions and 2 deletions
|
|
@ -6,8 +6,6 @@ description = "A wrapper around nanovg"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
srcDir = "src"
|
srcDir = "src"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
requires "nim >= 1.0.0",
|
requires "nim >= 1.0.0",
|
||||||
|
|
@ -15,3 +13,6 @@ requires "nim >= 1.0.0",
|
||||||
"regex >= 0.12.0",
|
"regex >= 0.12.0",
|
||||||
"opengl >= 1.2.2",
|
"opengl >= 1.2.2",
|
||||||
"https://github.com/jyapayne/nim-glfw#d4f30db"
|
"https://github.com/jyapayne/nim-glfw#d4f30db"
|
||||||
|
|
||||||
|
task buildExample, "Build example":
|
||||||
|
exec "nim c -d:release -d:danger -r examples/demo.nim"
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,9 @@ when defined(macosx):
|
||||||
elif defined(unix):
|
elif defined(unix):
|
||||||
{.passC: "-DNANOVG_GL3_IMPLEMENTATION -DNANOVG_GLEW".}
|
{.passC: "-DNANOVG_GL3_IMPLEMENTATION -DNANOVG_GLEW".}
|
||||||
{.passL: "-lGL -lGLU -lGLEW -lm -lglfw".}
|
{.passL: "-lGL -lGLU -lGLEW -lm -lglfw".}
|
||||||
|
elif defined(windows):
|
||||||
|
{.passC: "-DNANOVG_GL3_IMPLEMENTATION -DNANOVG_GLEW -D_CRT_SECURE_NO_WARNINGS".}
|
||||||
|
{.passL: "-lglew32 -lm -lglfw3 -lgdi32 -lwinmm -luser32 -lglu32 -lopengl32 -lkernel32".}
|
||||||
|
|
||||||
|
|
||||||
# Compile in any common source code
|
# Compile in any common source code
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue