aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/gpgmm
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/gpgmm')
-rw-r--r--vcpkg/ports/gpgmm/portfile.cmake31
-rw-r--r--vcpkg/ports/gpgmm/vcpkg.json19
2 files changed, 50 insertions, 0 deletions
diff --git a/vcpkg/ports/gpgmm/portfile.cmake b/vcpkg/ports/gpgmm/portfile.cmake
new file mode 100644
index 0000000..3339a87
--- /dev/null
+++ b/vcpkg/ports/gpgmm/portfile.cmake
@@ -0,0 +1,31 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO intel/gpgmm
+ REF "v${VERSION}"
+ SHA512 1e949e87110e555aa139e564a667a030150e77fd9b174f11bd3238b1fc3e7ae7ef17cc483b8afc9b0b7c346ce36564c94959454e27509c520bec18ef8396b5a1
+ 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()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake)
+
+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_RECURSE GPGMM_INCLUDE "${SOURCE_PATH}/include/*.h")
+file(INSTALL ${GPGMM_INCLUDE} DESTINATION "${CURRENT_PACKAGES_DIR}/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/gpgmm/vcpkg.json b/vcpkg/ports/gpgmm/vcpkg.json
new file mode 100644
index 0000000..4f07dc5
--- /dev/null
+++ b/vcpkg/ports/gpgmm/vcpkg.json
@@ -0,0 +1,19 @@
+{
+ "name": "gpgmm",
+ "version": "0.1.2",
+ "port-version": 1,
+ "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
+ }
+ ]
+}