xmake.lua 1.1 KB

12345678910111213141516171819202122232425
  1. package("vulkan-memory-allocator")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://gpuopen-librariesandsdks.github.io/VulkanMemoryAllocator/html/")
  4. set_description("Easy to integrate Vulkan memory allocation library.")
  5. set_license("MIT")
  6. add_urls("https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git")
  8. add_versions("v3.0.0", 'dbb621a7a13fb70b8c34fef62fbe5128cc5193c7179c9edacead9f110df79a2f')
  9. add_versions("v3.0.1", '2a84762b2d10bf540b9dc1802a198aca8ad1f3d795a4ae144212c595696a360c')
  10. add_deps("vulkan-headers")
  11. on_install("windows", "linux", "mingw", "macosx", "iphoneos", "android", function (package)
  12. os.cp("include/vk_mem_alloc.h", package:installdir("include"))
  13. end)
  14. on_test(function (package)
  15. assert(package:check_csnippets({test = [[
  16. void test() {
  17. int version = VMA_VULKAN_VERSION;
  18. }
  19. ]]}, {includes = "vk_mem_alloc.h"}))
  20. end)