Skip to content

Commit

Permalink
[hwinfo] create a new port (microsoft#35465)
Browse files Browse the repository at this point in the history
* [hwinfo] create a new port

* [hwinfo] update baseline

* [hwinfo] can't use WbemIdl in UWP

* [hwinfo] suppress NO_OCL unused

* it's just not accessed in CMakeLists.txt

* [hwinfo] fix NO_OCL expression
  • Loading branch information
luncliff authored Dec 28, 2023
1 parent eaee229 commit e64dd33
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ports/hwinfo/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO lfreist/hwinfo
REF 5cb31dbdb2c40413a837ce52ffadee23578c9069
SHA512 7c431528d5bf2f91843a3f6f8de908f6bc5b1427f85961bb885ab95e7765a875cb0358638e0e1e1f9a9336476ba74dc22819c97189251391fd8459c334c1092a
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DNO_OCL=TRUE # disable OpenCL usage
MAYBE_UNUSED_VARIABLES
NO_OCL
)
vcpkg_cmake_install()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
14 changes: 14 additions & 0 deletions ports/hwinfo/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "hwinfo",
"version-date": "2023-12-02",
"description": "cross platform C++ library for hardware information (CPU, RAM, GPU, ...)",
"homepage": "https://github.com/lfreist/hwinfo",
"license": "MIT",
"supports": "(windows | linux) & !uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3364,6 +3364,10 @@
"baseline": "1.7.2",
"port-version": 0
},
"hwinfo": {
"baseline": "2023-12-02",
"port-version": 0
},
"hwloc": {
"baseline": "2.9.3",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/h-/hwinfo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "75e06682da06c2b28e10f57d72dc30618b833848",
"version-date": "2023-12-02",
"port-version": 0
}
]
}

0 comments on commit e64dd33

Please sign in to comment.