package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1005 B

package("vulkan-memory-allocator")
set_kind("library", {headeronly = true})
set_homepage("https://gpuopen-librariesandsdks.github.io/VulkanMemoryAllocator/html/")
set_description("Easy to integrate Vulkan memory allocation library.")
set_license("MIT")
add_urls("https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/archive/refs/tags/$(version).tar.gz",
"https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git")
add_versions("v3.0.0", 'dbb621a7a13fb70b8c34fef62fbe5128cc5193c7179c9edacead9f110df79a2f')
add_deps("vulkan-headers")
on_install("windows", "linux", "mingw", "macosx", "iphoneos", "android", function (package)
3 years ago
os.cp("include/vk_mem_alloc.h", package:installdir("include"))
end)
on_test(function (package)
assert(package:check_csnippets({test = [[
void test() {
int version = VMA_VULKAN_VERSION;
}
]]}, {includes = "vk_mem_alloc.h"}))
end)