summaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorLeon Kang <2090093273@qq.com>2024-10-03 22:05:05 -0700
committerLeon Kang <2090093273@qq.com>2024-10-03 22:05:05 -0700
commitf7d8c400a629076d1de501739ea9faa2189bdca2 (patch)
treef82c0bb76d37cc228fc323b3489209abc0735b80 /xmake.lua
parent1f47c662a07ec83d4033b1a5f4b48dd8dfa58b7b (diff)
downloadiris-f7d8c400a629076d1de501739ea9faa2189bdca2.tar.gz
iris-f7d8c400a629076d1de501739ea9faa2189bdca2.zip
fix windows compilation errorswindows-build
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake.lua b/xmake.lua
index 1b9730f..1171462 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -1,4 +1,5 @@
add_rules("mode.debug", "mode.release")
+add_requires("vulkansdk", "glfw", "fmt", "vulkan-memory-allocator", "spdlog", "glm")
-- Project settings
set_project("iris_renderer")
@@ -27,6 +28,10 @@ target("imgui")
path.join(imgui_dir, "backends/imgui_impl_vulkan.cpp")
)
+ if is_host("windows") then
+ add_packages("vulkansdk", "glfw")
+ end
+
-- Add include directories
add_includedirs(
imgui_dir,
@@ -62,10 +67,10 @@ target("iris_renderer")
-- Add libraries
add_packages("vulkansdk", "glfw", "fmt", "vulkan-memory-allocator", "spdlog", "glm")
- add_syslinks("vulkan", "glfw", "fmt")
-- OS-specific libraries (dl, pthread, X11, etc.)
if is_plat("linux") then
+ add_syslinks("vulkan", "glfw", "fmt")
add_syslinks("dl", "pthread", "X11", "Xxf86vm", "Xrandr", "Xi")
end