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
commite3abaaf59777258ba06705135a0cafcb5918ad12 (patch)
tree889ab40dfc1967b38bcb5735e018d6b2c41d7390 /premake5.lua
parentf455eb427804866a5ce61ea3ea01715cb5ac9116 (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 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"