diff options
Diffstat (limited to 'vcpkg/ports/vulkan-memory-allocator-hpp')
3 files changed, 35 insertions, 0 deletions
diff --git a/vcpkg/ports/vulkan-memory-allocator-hpp/portfile.cmake b/vcpkg/ports/vulkan-memory-allocator-hpp/portfile.cmake new file mode 100644 index 0000000..cf01ab4 --- /dev/null +++ b/vcpkg/ports/vulkan-memory-allocator-hpp/portfile.cmake @@ -0,0 +1,15 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO YaaZ/VulkanMemoryAllocator-Hpp
+ REF "v${VERSION}"
+ SHA512 95f5a8930431c18683d7e768ce1363b4edcb2fa7ca527054c77dbc8b34355308f621eed8cd018a574a928ac93e8689d4a8991802e3d601f5c0d1204a9155aee6
+ HEAD_REF master
+)
+
+file(COPY "${SOURCE_PATH}/include/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
+
+file(COPY "${SOURCE_PATH}/src/vk_mem_alloc.cppm" DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
+
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/unofficial-vulkan-memory-allocator-hpp-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-${PORT}")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/vulkan-memory-allocator-hpp/unofficial-vulkan-memory-allocator-hpp-config.cmake b/vcpkg/ports/vulkan-memory-allocator-hpp/unofficial-vulkan-memory-allocator-hpp-config.cmake new file mode 100644 index 0000000..d4c0207 --- /dev/null +++ b/vcpkg/ports/vulkan-memory-allocator-hpp/unofficial-vulkan-memory-allocator-hpp-config.cmake @@ -0,0 +1,7 @@ +add_library(unofficial::VulkanMemoryAllocator-Hpp::VulkanMemoryAllocator-Hpp INTERFACE IMPORTED)
+
+set_target_properties(
+ unofficial::VulkanMemoryAllocator-Hpp::VulkanMemoryAllocator-Hpp
+ PROPERTIES
+ INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_LIST_DIR}/../../include"
+)
diff --git a/vcpkg/ports/vulkan-memory-allocator-hpp/vcpkg.json b/vcpkg/ports/vulkan-memory-allocator-hpp/vcpkg.json new file mode 100644 index 0000000..eb892e6 --- /dev/null +++ b/vcpkg/ports/vulkan-memory-allocator-hpp/vcpkg.json @@ -0,0 +1,13 @@ +{ + "name": "vulkan-memory-allocator-hpp", + "version": "3.1.0", + "port-version": 1, + "description": "C++ bindings for VulkanMemoryAllocator (Development branch)", + "homepage": "https://github.com/YaaZ/VulkanMemoryAllocator-Hpp", + "license": "CC0-1.0", + "supports": "!uwp & !xbox", + "dependencies": [ + "vulkan", + "vulkan-memory-allocator" + ] +} |