aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/vulkan-memory-allocator
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/vulkan-memory-allocator
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/vulkan-memory-allocator')
-rw-r--r--vcpkg/ports/vulkan-memory-allocator/portfile.cmake24
-rw-r--r--vcpkg/ports/vulkan-memory-allocator/usage19
-rw-r--r--vcpkg/ports/vulkan-memory-allocator/vcpkg.json18
3 files changed, 61 insertions, 0 deletions
diff --git a/vcpkg/ports/vulkan-memory-allocator/portfile.cmake b/vcpkg/ports/vulkan-memory-allocator/portfile.cmake
new file mode 100644
index 0000000..da84bae
--- /dev/null
+++ b/vcpkg/ports/vulkan-memory-allocator/portfile.cmake
@@ -0,0 +1,24 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
+ REF "v${VERSION}"
+ SHA512 deb5902ef8db0e329fbd5f3f4385eb0e26bdd9f14f3a2334823fb3fe18f36bc5d235d620d6e5f6fe3551ec3ea7038638899db8778c09f6d5c278f5ff95c3344b
+ HEAD_REF master
+)
+
+set(opts "")
+if(VCPKG_TARGET_IS_WINDOWS)
+ set(opts "-DCMAKE_INSTALL_INCLUDEDIR=include/vma") # Vulkan SDK layout!
+endif()
+
+set(VCPKG_BUILD_TYPE release) # header-only port
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS ${opts}
+
+)
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(PACKAGE_NAME VulkanMemoryAllocator CONFIG_PATH "share/cmake/VulkanMemoryAllocator")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
diff --git a/vcpkg/ports/vulkan-memory-allocator/usage b/vcpkg/ports/vulkan-memory-allocator/usage
new file mode 100644
index 0000000..ac6bca6
--- /dev/null
+++ b/vcpkg/ports/vulkan-memory-allocator/usage
@@ -0,0 +1,19 @@
+VulkanMemoryAllocator provides official find_package support. However, it requires the user to provide the include directory containing `vulkan/vulkan.h`. There are multiple ways to achieve this and VulkanMemoryAllocator is compatible with all of them.
+
+ find_package(Vulkan) # https://cmake.org/cmake/help/latest/module/FindVulkan.html, CMake 3.21+
+ find_package(VulkanMemoryAllocator CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE Vulkan::Vulkan GPUOpen::VulkanMemoryAllocator)
+
+or
+
+ find_package(Vulkan) # CMake 3.21+
+ find_package(VulkanMemoryAllocator CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE Vulkan::Headers GPUOpen::VulkanMemoryAllocator)
+
+or
+
+ find_package(VulkanHeaders CONFIG) # From the vulkan-headers port
+ find_package(VulkanMemoryAllocator CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE Vulkan::Headers GPUOpen::VulkanMemoryAllocator)
+
+See the documentation for more information on setting up your project: https://gpuopen-librariesandsdks.github.io/VulkanMemoryAllocator/html/index.html
diff --git a/vcpkg/ports/vulkan-memory-allocator/vcpkg.json b/vcpkg/ports/vulkan-memory-allocator/vcpkg.json
new file mode 100644
index 0000000..79a941e
--- /dev/null
+++ b/vcpkg/ports/vulkan-memory-allocator/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "vulkan-memory-allocator",
+ "version": "3.3.0",
+ "description": "Easy to integrate Vulkan memory allocation library from GPUOpen",
+ "homepage": "https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator",
+ "license": "MIT",
+ "supports": "!uwp & !xbox",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}