From d92d5231ae094ae79d95463d54275a3527cf1c2d Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Tue, 5 Mar 2024 21:41:08 +1100 Subject: get us running on Mac again with our vendored GLFW --- xmake.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xmake.lua') diff --git a/xmake.lua b/xmake.lua index 450b97d..10d6a80 100644 --- a/xmake.lua +++ b/xmake.lua @@ -24,6 +24,9 @@ elseif is_plat("windows") then add_defines("CEL_PLATFORM_WINDOWS") elseif is_plat("macosx") then add_defines("CEL_PLATFORM_MAC") + add_frameworks("Cocoa", "IOKit", "CoreVideo", "OpenGL") + set_runenv("MTL_DEBUG_LAYER", "1") + -- add_syslinks("GL") end -- Compile GLFW from source @@ -79,6 +82,8 @@ target("core_config") target("core_static") set_kind("static") add_deps("core_config") -- inherit common configurations + set_policy("build.merge_archive", true) + add_files("src/empty.c") target("core_shared") set_kind("shared") -- cgit v1.2.3-70-g09d2