zengine/engine/modules/render/vulkan/xmake.lua

20 lines
772 B
Lua
Raw Normal View History

2024-07-31 10:48:28 +08:00
shared_module("vulkan","engine")
2024-12-12 22:20:56 +08:00
add_headerfiles("include/**.h")
2024-08-17 18:01:21 +08:00
add_packages("vulkansdk", {public = true})
2024-08-23 22:13:05 +08:00
add_dependency("engine", {public = true})
2024-12-26 16:45:02 +08:00
if WITH_EDITOR then
add_deps("editor")
add_headerfiles("src/imgui/*.h")
add_files("src/**.cpp", "include/volk/volk.c")
else
add_files("src/**.cpp|imgui/*|vulkan_imgui_editor.cpp", "include/volk/volk.c")
end
2024-08-23 22:13:05 +08:00
on_load(function (target)
if is_plat("windows") then
target:add("defines", "VK_USE_PLATFORM_WIN32_KHR=1")
elseif is_plat("linux") then
target:add("defines", "VK_USE_PLATFORM_XLIB_KHR=1")
elseif is_plat("macosx") then
target:add("defines", "VK_USE_PLATFORM_MACOS_MVK=1")
end
end)