From 68fa5b50c4d9711abc1a797b8c0f0cb3d22155fe Mon Sep 17 00:00:00 2001 From: Gordon McCann Date: Fri, 24 Dec 2021 15:04:05 -0500 Subject: [PATCH] Updated premake for MacOS --- premake5.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/premake5.lua b/premake5.lua index 37e8e77c..a6e6684b 100644 --- a/premake5.lua +++ b/premake5.lua @@ -41,6 +41,31 @@ project "GLFW" { "_GLFW_X11" } + filter "system:macosx" + pic "On" + systemversion "latest" + + sysincludedirs {"include"} + files + { + "src/cocoa_init.m", + "src/cocoa_joystick.h", + "src/cocoa_monitor.m", + "src/cocoa_window.m", + "src/cocoa_time.c", + "src/posix_thread.c", + "src/nsgl_context.m", + "src/egl_context.c", + "src/osmesa_context.c" + } + + defines + { + defines "_GLFW_COCOA" + } + + filter "files:**.m" + compileas "Objective-C" filter "system:windows" systemversion "latest"