Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions ports/d3d12-memory-allocator/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
cmake_minimum_required(VERSION 3.0)
project(d3d12-memory-allocator)

add_library(${PROJECT_NAME} STATIC
"src/D3D12MemAlloc.h"
"src/D3D12MemAlloc.cpp"
)

set_target_properties(${PROJECT_NAME} PROPERTIES PUBLIC_HEADER "src/D3D12MemAlloc.h")
#target_include_directories(${PROJECT_NAME} PRIVATE "src/")

install(
TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}-config
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
PUBLIC_HEADER DESTINATION include/
)
install(
EXPORT ${PROJECT_NAME}-config DESTINATION cmake/
NAMESPACE "unofficial::"
)
22 changes: 22 additions & 0 deletions ports/d3d12-memory-allocator/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
Comment thread
crud89 marked this conversation as resolved.

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO GPUOpen-LibrariesAndSDKs/D3D12MemoryAllocator
REF 10f148cef0dfd34ae1a9373b9396beb1581c992a
Comment thread
crud89 marked this conversation as resolved.
Comment thread
crud89 marked this conversation as resolved.
SHA512 c99934a606ce5a5c9c59e05faf2e659bfad2e485b58aaf00f38219a6c89f17b62033f4a69935915f0d5269a4f0ecba41037b044913ae6f4077fa981eaab470c8
HEAD_REF master
)

file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})

vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
)

vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH cmake/)

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
19 changes: 19 additions & 0 deletions ports/d3d12-memory-allocator/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "d3d12-memory-allocator",
"version-date": "2021-05-05",
"description": "Easy to integrate D3d12 memory allocation library from GPUOpen",
"homepage": "https://gpuopen.com/gaming-product/d3d12-memory-allocator/",
"license": "MIT",
"supports": "windows",
"dependencies": [
"directx-headers",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1592,6 +1592,10 @@
"baseline": "4.2.1",
"port-version": 0
},
"d3d12-memory-allocator": {
"baseline": "2021-05-05",
"port-version": 0
},
"d3dx12": {
"baseline": "may2021",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/d-/d3d12-memory-allocator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "988836f8b901c1a30f4b667ac37f81f1ef3bcdd8",
"version-date": "2021-05-05",
"port-version": 0
}
]
}