From e3abaaf59777258ba06705135a0cafcb5918ad12 Mon Sep 17 00:00:00 2001 From: hachem Date: Wed, 19 Aug 2026 20:33:30 +0200 Subject: [feat]: vulkan is going to be the end of me bro --- premake5.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'premake5.lua') diff --git a/premake5.lua b/premake5.lua index 88eb729..4b5b270 100644 --- a/premake5.lua +++ b/premake5.lua @@ -363,10 +363,12 @@ project "Donut" } filter "system:macosx" - -- Objective-C++ (Metal) sources compile only on macOS. + -- Objective-C++ (Metal) sources + the ImGui Vulkan backend compile only + -- on macOS (Vulkan headers come from Homebrew there). files { - "src/**.mm" + "src/**.mm", + "Vendor/imgui/backends/imgui_impl_vulkan.cpp" } -- Compile the Slang shaders to Assets/Shaders/generated/ before building. @@ -376,6 +378,10 @@ project "Donut" 'bash "%{wks.location}/Tools/compile-shaders.sh"' } + -- Vulkan (via MoltenVK) from Homebrew; see Tools/vulkan-env.sh for runtime. + includedirs { "/opt/homebrew/include" } + libdirs { "/opt/homebrew/lib" } + links { "Cocoa.framework", @@ -383,7 +389,8 @@ project "Donut" "CoreFoundation.framework", "QuartzCore.framework", "Metal.framework", - "Foundation.framework" + "Foundation.framework", + "vulkan" } filter "configurations:Debug" -- cgit v1.3