-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_console.py
More file actions
33 lines (24 loc) · 973 Bytes
/
Copy pathbuild_console.py
File metadata and controls
33 lines (24 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env python3
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
"""Build the console monitor (hardware_monitor_console).
Usage: python build_console.py
On Windows the matching signed PawnIO module is installed into a `modules/`
folder next to the executable, so CPU temperature/power work with no extra
steps (run elevated + PawnIO driver installed).
"""
import os
import sys
from build_common import cmake_build, find_output, install_pawnio
def main():
build_dir = cmake_build("console", "console/build")
exe = find_output(build_dir, ["hardware_monitor_console.exe", "hardware_monitor_console"])
if not exe:
print("[x] hardware_monitor_console was not produced.", file=sys.stderr)
return 1
install_pawnio(os.path.dirname(exe))
print("\n[+] Console monitor build complete.")
print(f" executable : {exe}")
print(f" run : {exe} 2")
return 0
if __name__ == "__main__":
sys.exit(main())