[gpgmm] Add gpgmm. Highly experimental. (#25650)

This commit is contained in:
Bryan B 2022-07-15 12:33:50 -07:00 committed by GitHub
parent 6784c97c22
commit 33c8f02539
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,31 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO intel/gpgmm
REF v0.0.4
SHA512 2ffc3c8299f2d10cb1c0013cd306ba45781a644fa0aa426ef1dfa616e4b53671461a376f65b7068b1ff8a4a2d1a6f9539664174eb5830ea6a760ef5e5d0fc6b0
HEAD_REF main
)
# gpgmm\third_party config requires Git. Make the tool visible.
vcpkg_find_acquire_program(GIT)
get_filename_component(GIT_DIR "${GIT}" DIRECTORY)
vcpkg_add_to_path("${GIT_DIR}")
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DGPGMM_STANDALONE=OFF
-DGPGMM_ENABLE_TESTS=OFF
)
vcpkg_cmake_install()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

18
ports/gpgmm/vcpkg.json Normal file
View File

@ -0,0 +1,18 @@
{
"name": "gpgmm",
"version": "0.0.4",
"description": "GPGMM is a General-Purpose GPU Memory Management library. It provides a common set of GPU memory routines optimized for GPUs. The library helps developers manage video memory by implementing the necessary functionality across components based on Vulkan or D3D12",
"homepage": "https://github.com/intel/GPGMM/",
"license": "Apache-2.0",
"supports": "windows & !(arm | uwp)",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -2660,6 +2660,10 @@
"baseline": "1.14.0",
"port-version": 2
},
"gpgmm": {
"baseline": "0.0.4",
"port-version": 0
},
"gppanel": {
"baseline": "2020-05-20",
"port-version": 2

9
versions/g-/gpgmm.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "08e07fe17d9d990b3d2579b33c6851b60faa6c2c",
"version": "0.0.4",
"port-version": 0
}
]
}