hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/premake5.lua
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-19 20:33:30 +0200
committerhachem <im@hachem.wtf>2026-08-19 20:33:30 +0200
commitdce67620b95a9555c7db950196b22f1bb88a307b (patch)
treef4aa836c3c512928a843620b28fe9d47ec52a7f2 /premake5.lua
parent62ae550170402a0fa0dbbbb2b739176d5c4bcf1e (diff)
feat: vulkan is going to be the end of me bro
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua13
1 files changed, 10 insertions, 3 deletions
diff --git a/premake5.lua b/premake5.lua
index d0e17d3..2559098 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",
+ "ext/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"