summaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-06-09 11:42:17 +1000
committerOmniscient <omniscient.oce@gmail.com>2024-06-09 11:42:17 +1000
commit64830ce51a185091f54c2b42b365110d89d44f1b (patch)
tree644c4a4425c2003a649cf02af33af488cb56a148 /xmake.lua
parent859ea7e23d2bbbc4b32b43727ae50aebe399e720 (diff)
triangle on opengl works again. happy days
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake.lua b/xmake.lua
index 86a673a..6af1402 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -20,7 +20,7 @@ end
-- Platform defines and system packages
if is_plat("linux") then
add_defines("CEL_PLATFORM_LINUX")
- add_syslinks("dl", "X11", "pthread")
+ add_syslinks("dl", "X11", "pthread", "vulkan")
elseif is_plat("windows") then
add_defines("CEL_PLATFORM_WINDOWS")
add_syslinks("user32", "gdi32", "kernel32", "shell32")
@@ -63,7 +63,6 @@ local core_sources = {
"src/renderer/*.c",
"src/renderer/backends/*.c",
"src/renderer/backends/opengl/*.c",
- "src/renderer/backends/metal/*.m",
"src/resources/*.c",
"src/std/*.c",
"src/std/containers/*.c",
@@ -133,6 +132,9 @@ target("core_config")
add_linkdirs("$(env VULKAN_SDK)/Lib", {public = true})
add_links("vulkan-1")
end
+ if is_plat("macosx") then
+ add_files("src/renderer/backends/metal/*.m")
+ end
set_default(false) -- prevents standalone building of this target
target("core_static")