Fix for macosx
This commit is contained in:
parent
49421713f2
commit
fec0c144ff
1 changed files with 5 additions and 2 deletions
|
|
@ -61,7 +61,10 @@ const inclDir = srcDir / "include" / "GLFW"
|
||||||
cIncludeDir(inclDir)
|
cIncludeDir(inclDir)
|
||||||
cPluginPath(symbolPluginPath)
|
cPluginPath(symbolPluginPath)
|
||||||
|
|
||||||
{.passL: "-pthread".}
|
when defined(macosx):
|
||||||
|
{.passL: "-m64 -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo -framework Carbon -framework CoreAudio -lm -pthread".}
|
||||||
|
else:
|
||||||
|
{.passL: "-pthread".}
|
||||||
|
|
||||||
when isDefined(glfw3Static):
|
when isDefined(glfw3Static):
|
||||||
cImport(inclDir/"glfw3.h", recurse = true, flags = "-f=ast2 -E__,_ -F__,_ -H", nimFile = generatedPath / "glfw.nim")
|
cImport(inclDir/"glfw3.h", recurse = true, flags = "-f=ast2 -E__,_ -F__,_ -H", nimFile = generatedPath / "glfw.nim")
|
||||||
|
|
@ -86,4 +89,4 @@ when not defined(windows):
|
||||||
OPENGL_DEBUG_CONTEXT* = CONTEXT_DEBUG
|
OPENGL_DEBUG_CONTEXT* = CONTEXT_DEBUG
|
||||||
HRESIZE_CURSOR* = RESIZE_EW_CURSOR
|
HRESIZE_CURSOR* = RESIZE_EW_CURSOR
|
||||||
VRESIZE_CURSOR* = RESIZE_NS_CURSOR
|
VRESIZE_CURSOR* = RESIZE_NS_CURSOR
|
||||||
HAND_CURSOR* = POINTING_HAND_CURSOR
|
HAND_CURSOR* = POINTING_HAND_CURSOR
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue