소스 검색

add package vulkan-memory-allocator (#194)

HeBo 4 년 전
부모
커밋
ca210d5c71
1개의 변경된 파일22개의 추가작업 그리고 0개의 파일을 삭제
  1. 22 0
      packages/v/vulkan-memory-allocator/xmake.lua

+ 22 - 0
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)