diff --git a/premake5.lua b/premake5.lua index cb72ce4a16..016ec00958 100644 --- a/premake5.lua +++ b/premake5.lua @@ -1,4 +1,5 @@ project "GLFW" + flags { 'NoPCH' } kind "StaticLib" language "C" @@ -41,7 +42,50 @@ project "GLFW" { "_GLFW_X11" } + + links + { + "dl", + "m", + "GL", + "GLU", + "X11", + "Xinerama", + "Xi", + "Xcursor", + "Xxf86vm", + "pthread" + } + + + filter "system:macosx" + pic "On" + systemversion "latest" + staticruntime "On" + + files + { + "src/cocoa_init.m", + "src/cocoa_joystick.h", + "src/cocoa_joystick.m", + "src/cocoa_monitor.m", + "src/cocoa_platform.h", + "src/cocoa_time.c", + "src/cocoa_window.m" + } + + defines + { + "_GLFW_COCOA" + } + links + { + "CoreFoundation.framework", + "Cocoa.framework", + "IOKit.framework", + "CoreVideo.framework" + } filter "system:windows" buildoptions { "-std=c11", "-lgdi32" }