xmake.lua 1005 B

123456789101112131415161718192021222324
  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_deps("vulkan-headers")
  10. on_install("windows", "linux", "mingw", "macosx", "iphoneos", "android", function (package)
  11. os.cp("include/vk_mem_alloc.h", package:installdir("include"))
  12. end)
  13. on_test(function (package)
  14. assert(package:check_csnippets({test = [[
  15. void test() {
  16. int version = VMA_VULKAN_VERSION;
  17. }
  18. ]]}, {includes = "vk_mem_alloc.h"}))
  19. end)