mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[vulkan-memory-allocator] Initial port for release 2.1.0 (#4482)
* [vulkan-memory-allocator] Initial port for release 2.1.0 Port for https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator, current release 2.1.0. * [vulkan-memory-allocator] Simplification; avoid usage file if not required. Use unofficial- prefix for targets.
This commit is contained in:
parent
df82d21f32
commit
611b87955b
3
ports/vulkan-memory-allocator/CONTROL
Normal file
3
ports/vulkan-memory-allocator/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: vulkan-memory-allocator
|
||||
Version: 2.1.0-1
|
||||
Description: Easy to integrate Vulkan memory allocation library from GPUOpen
|
15
ports/vulkan-memory-allocator/portfile.cmake
Normal file
15
ports/vulkan-memory-allocator/portfile.cmake
Normal file
@ -0,0 +1,15 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
|
||||
REF v2.1.0
|
||||
SHA512 4d7d431d52503d4d448a8b571935678a8a04d8f4a7eceb6ad49cde4f78954e7a2a0a91e48c75382699a62d81cf00601aaa0a358d979ed8e14741a9956484b51e
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY "${SOURCE_PATH}/src/vk_mem_alloc.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/unofficial-vulkan-memory-allocator-config.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/unofficial-vulkan-memory-allocator)
|
||||
|
||||
configure_file(${SOURCE_PATH}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/vulkan-memory-allocator/copyright COPYONLY)
|
@ -0,0 +1,8 @@
|
||||
|
||||
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||
|
||||
add_library(unofficial::vulkan-memory-allocator::vulkan-memory-allocator INTERFACE IMPORTED)
|
||||
set_target_properties(unofficial::vulkan-memory-allocator::vulkan-memory-allocator PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include")
|
||||
set(_IMPORT_PREFIX)
|
Loading…
x
Reference in New Issue
Block a user