summaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-19 09:56:36 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-19 09:56:36 +1000
commit0942a484a90695749f05d49273951f2b8d452866 (patch)
tree319aff81e879168b152505875e608aee26fed5ff /xmake.lua
parent01d598220b403f4ac4da3b7aa1f0ce398be3198f (diff)
merge
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake.lua b/xmake.lua
index fad0559..812666b 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -32,6 +32,7 @@ elseif is_plat("macosx") then
add_frameworks("Cocoa", "IOKit", "CoreVideo", "OpenGL")
add_frameworks("Foundation", "Metal", "QuartzCore")
set_runenv("MTL_DEBUG_LAYER", "1")
+ add_requires("vulkansdk", { system = true })
-- add_syslinks("GL")
end
@@ -123,6 +124,7 @@ add_includedirs("src/new_render", { public = true })
-- add_includedirs("src/renderer/backends/", {public = true})
-- add_includedirs("src/renderer/backends/opengl", {public = true})
-- add_includedirs("src/renderer/backends/metal", {public = true})
+add_includedirs("src/ral/backends/vulkan", {public = true})
add_includedirs("src/resources/", { public = true })
add_includedirs("src/std/", { public = true })
add_includedirs("src/std/containers", { public = true })
@@ -141,7 +143,8 @@ if is_plat("windows") then
add_links("vulkan-1")
end
if is_plat("macosx") then
- add_files("src/renderer/backends/metal/*.m")
+ -- add_files("src/renderer/backends/metal/*.m")
+ add_files("src/ral/backends/vulkan/*.c")
end
set_default(false) -- prevents standalone building of this target