aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/gmmlib
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/gmmlib')
-rw-r--r--vcpkg/ports/gmmlib/portfile.cmake29
-rw-r--r--vcpkg/ports/gmmlib/vcpkg.json14
2 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/gmmlib/portfile.cmake b/vcpkg/ports/gmmlib/portfile.cmake
new file mode 100644
index 0000000..4f3e24d
--- /dev/null
+++ b/vcpkg/ports/gmmlib/portfile.cmake
@@ -0,0 +1,29 @@
+if(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
+ message(FATAL_ERROR "Intel gmmlib currently only supports Linux platforms")
+endif()
+
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO intel/gmmlib
+ REF "intel-gmmlib-${VERSION}"
+ SHA512 516e2cc0d678d8fd44d8d2b1bfdf61c05670c01c906bd7f55a807846cd6399d4b616f86e6a1d85e2a6a0480c4616a40e9d5b29a3f45fbf588cc4d725ada71d49
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/igdgmm/GmmLib/Scripts")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/igdgmm/GmmLib/Resource")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/igdgmm/GmmLib/GlobalInfo")
+
+vcpkg_fixup_pkgconfig()
+
+# Handle copyright
+configure_file("${SOURCE_PATH}/LICENSE.md" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
diff --git a/vcpkg/ports/gmmlib/vcpkg.json b/vcpkg/ports/gmmlib/vcpkg.json
new file mode 100644
index 0000000..90b14a1
--- /dev/null
+++ b/vcpkg/ports/gmmlib/vcpkg.json
@@ -0,0 +1,14 @@
+{
+ "name": "gmmlib",
+ "version": "22.5.2",
+ "description": "Intel(R) Graphics Memory Management Library",
+ "homepage": "https://github.com/intel/gmmlib",
+ "license": "MIT",
+ "supports": "linux",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}