add package vulkan-memory-allocator (#194)

pull/197/head
HeBo 4 years ago committed by GitHub
parent 5888b5597d
commit ca210d5c71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 22
      packages/v/vulkan-memory-allocator/xmake.lua

@ -0,0 +1,22 @@
package("vulkan-memory-allocator")
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/$(version).tar.gz")
add_versions("v2.3.0", "fc41221f72f16ec1f8a9550fc36a0d73921f7f347ee804af7c948f3184f60242")
add_deps("vulkan-headers")
on_install("windows", "linux", "macosx", function (package)
os.cp("src/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)
Loading…
Cancel
Save