https://github.com/thephd/infoware
C++ Library for pulling system and hardware information, without hitting the command line.
https://github.com/thephd/infoware
Last synced: 8 months ago
JSON representation
C++ Library for pulling system and hardware information, without hitting the command line.
- Host: GitHub
- URL: https://github.com/thephd/infoware
- Owner: ThePhD
- License: cc0-1.0
- Created: 2016-05-31T18:29:39.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2025-04-22T01:13:33.000Z (9 months ago)
- Last Synced: 2025-04-22T02:31:59.889Z (9 months ago)
- Language: C++
- Size: 1.23 MB
- Stars: 435
- Watchers: 23
- Forks: 87
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# infoware [](LICENSE) [](https://github.com/ThePhD/infoware/actions/workflows/ci.yml)
C++ Library for pulling system and hardware information, without hitting the command line.
## Requirements
No non-built-in ones by default.
Some libraries are required for extended functionality. See the [Configurability](#configurability) section below for details.
On Windows one needs to link to `gdi32`, `version`, `Ole32`, `OleAut32`, `wbemuuid` and `ntdll`.
A usable `git` binary is required by default, to clone https://github.com/pciutils/pciids.
`INFOWARE_PCI_IDS_REPOSITORY` can be set to override that clone URI.
`INFOWARE_PCI_IDS_PATH` can be set to use the specified file instead of using git at all.
## Configurability
|CMake definition and C++ preprocessor macro| Meaning |Linker library| Priority |
|-------------------------------------------|-----------------------------------|--------------|---------------|
| `INFOWARE_USE_X11` | Use X11 for display detection | `X11` | D3D |
| `INFOWARE_USE_D3D` | Use D3D for GPU detection | `dxgi` | >OpenCL |
| `INFOWARE_USE_OPENCL` | Use OpenCL for GPU detection | `OpenCL` | Darwin |
| `INFOWARE_USE_OPENGL` | Use OpenGL for GPU detection |OS-dependent\*|