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

This commit is contained in:
Bryan B 2022-08-02 23:01:19 -07:00 committed by GitHub
parent 6a7b3e1638
commit f06a2f2b49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,30 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO intel/gpgmm
REF v0.0.4
SHA512 2ffc3c8299f2d10cb1c0013cd306ba45781a644fa0aa426ef1dfa616e4b53671461a376f65b7068b1ff8a4a2d1a6f9539664174eb5830ea6a760ef5e5d0fc6b0
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DGPGMM_STANDALONE=OFF
-DGPGMM_ENABLE_TESTS=OFF
-DGPGMM_ENABLE_VK=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(GLOB GPGMM_INCLUDE "${SOURCE_PATH}/src/include/*.h")
file(COPY ${GPGMM_INCLUDE} DESTINATION "${CURRENT_PACKAGES_DIR}/include")
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

@ -2668,6 +2668,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": "588c2c48227d309001811deaab846ce36476c3c9",
"version": "0.0.4",
"port-version": 0
}
]
}