diff options
-rw-r--r-- | src/vulkan_helper.cpp | 2 | ||||
-rw-r--r-- | xmake.lua | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/vulkan_helper.cpp b/src/vulkan_helper.cpp index c281b2c..53e3454 100644 --- a/src/vulkan_helper.cpp +++ b/src/vulkan_helper.cpp @@ -182,7 +182,7 @@ Device::Device(std::vector<std::string> layers, std::vector<std::string> instanc } }; - constexpr char *device_extensions[] = { + constexpr const char *device_extensions[] = { VK_KHR_SWAPCHAIN_EXTENSION_NAME, VK_EXT_SHADER_ATOMIC_FLOAT_EXTENSION_NAME, VK_KHR_RAY_TRACING_PIPELINE_EXTENSION_NAME, @@ -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 |