-
Notifications
You must be signed in to change notification settings - Fork 7.5k
[d3d12-memory-allocator] new port #18212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
323d8b3
Added d3d12 memory allocator port.
crud89 9d54265
Fixed leftover name from vulkan memory allocator.
crud89 8c2248f
Remove single header patch.
crud89 5c7f6fa
Don't apply patch.
crud89 7e0c80d
Properly set interface sources.
crud89 cbc4b75
Bump version and update manifest format.
crud89 28d36ca
Build static library instead of using an interface target.
crud89 b04b953
Properly export and fixup config.
crud89 7b2ed8b
Update baseline.
crud89 fe518fe
Remove `PREFER_NINJA`.
crud89 c05d69c
Update version.
crud89 5225a6f
Use `version-date` instead of `version`.
crud89 2331855
Update baseline.
crud89 4bfa664
Remove leftover version.
crud89 c06a9f0
Merge remote-tracking branch 'origin/master' into HEAD
BillyONeal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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::" | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| vcpkg_check_linkage(ONLY_STATIC_LIBRARY) | ||
|
|
||
| vcpkg_from_github( | ||
| OUT_SOURCE_PATH SOURCE_PATH | ||
| REPO GPUOpen-LibrariesAndSDKs/D3D12MemoryAllocator | ||
| REF 10f148cef0dfd34ae1a9373b9396beb1581c992a | ||
|
crud89 marked this conversation as resolved.
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) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } | ||
| ] | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.