mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-15 05:08:02 +08:00
[hwinfo] create a new port (#35465)
* [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
This commit is contained in:
parent
eaee229786
commit
e64dd3356f
21
ports/hwinfo/portfile.cmake
Normal file
21
ports/hwinfo/portfile.cmake
Normal file
@ -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
ports/hwinfo/vcpkg.json
Normal file
14
ports/hwinfo/vcpkg.json
Normal file
@ -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
|
||||
}
|
||||
]
|
||||
}
|
@ -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
|
||||
|
9
versions/h-/hwinfo.json
Normal file
9
versions/h-/hwinfo.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "75e06682da06c2b28e10f57d72dc30618b833848",
|
||||
"version-date": "2023-12-02",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user