mirror of
https://github.com/glfw/glfw.git
synced 2025-06-15 12:12:16 +00:00
Added Mac support for glfw
This commit is contained in:
parent
5a096a9115
commit
3f2586ee33
31
premake5.lua
31
premake5.lua
@ -69,6 +69,37 @@ project "GLFW"
|
|||||||
"_GLFW_X11"
|
"_GLFW_X11"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
filter "system:macosx"
|
||||||
|
-- https://github.com/premake/premake-core/wiki/pic
|
||||||
|
pic "On"
|
||||||
|
|
||||||
|
systemversion "latest"
|
||||||
|
staticruntime "On"
|
||||||
|
|
||||||
|
includedirs
|
||||||
|
{
|
||||||
|
"/opt/X11/include"
|
||||||
|
}
|
||||||
|
|
||||||
|
files
|
||||||
|
{
|
||||||
|
"src/x11_init.c",
|
||||||
|
"src/x11_monitor.c",
|
||||||
|
"src/x11_window.c",
|
||||||
|
"src/xkb_unicode.c",
|
||||||
|
"src/posix_time.c",
|
||||||
|
"src/posix_thread.c",
|
||||||
|
"src/glx_context.c",
|
||||||
|
"src/egl_context.c",
|
||||||
|
"src/osmesa_context.c",
|
||||||
|
"src/null_joystick.c"
|
||||||
|
}
|
||||||
|
|
||||||
|
defines
|
||||||
|
{
|
||||||
|
"_GLFW_X11"
|
||||||
|
}
|
||||||
|
|
||||||
filter "configurations:Debug"
|
filter "configurations:Debug"
|
||||||
runtime "Debug"
|
runtime "Debug"
|
||||||
symbols "on"
|
symbols "on"
|
||||||
|
Loading…
Reference in New Issue
Block a user