WIP Windows support

This commit is contained in:
Joey Yakimowich-Payne 2019-10-19 14:24:30 -06:00
commit e392dff30f
2 changed files with 6 additions and 2 deletions

View file

@ -6,8 +6,6 @@ description = "A wrapper around nanovg"
license = "MIT"
srcDir = "src"
# Dependencies
requires "nim >= 1.0.0",
@ -15,3 +13,6 @@ requires "nim >= 1.0.0",
"regex >= 0.12.0",
"opengl >= 1.2.2",
"https://github.com/jyapayne/nim-glfw#d4f30db"
task buildExample, "Build example":
exec "nim c -d:release -d:danger -r examples/demo.nim"

View file

@ -68,6 +68,9 @@ when defined(macosx):
elif defined(unix):
{.passC: "-DNANOVG_GL3_IMPLEMENTATION -DNANOVG_GLEW".}
{.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