Added Mac support for glfw

This commit is contained in:
ravimohan1991 2020-12-01 17:25:49 +05:30
parent 5a096a9115
commit 3f2586ee33

View File

@ -69,6 +69,37 @@ project "GLFW"
"_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"
runtime "Debug"
symbols "on"