Skip to content

Commit a75f201

Browse files
Add 'xkbcommon', Update 'mangohud'
1 parent 069151f commit a75f201

File tree

5 files changed

+37
-23
lines changed

5 files changed

+37
-23
lines changed

packages/index

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ libXrandr
2323
libXxf86vm
2424
libxshmfence
2525
xkeyboard-config
26+
xkbcommon
2627
libsndfile
2728
opus
2829
libogg
Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
diff --git a/src/fps_metrics.h b/src/fps_metrics.h
2-
index a889b37..2b36587 100644
3-
--- a/src/fps_metrics.h
4-
+++ b/src/fps_metrics.h
1+
diff -uNr ../mangohud/src/fps_metrics.h ./src/fps_metrics.h
2+
--- ../mangohud/src/fps_metrics.h 2025-03-05 06:56:10.000000000 -0300
3+
+++ ./src/fps_metrics.h 2025-06-26 19:17:05.817373239 -0300
54
@@ -11,6 +11,7 @@
65
#include <stdexcept>
76
#include <iomanip>
@@ -10,3 +9,21 @@ index a889b37..2b36587 100644
109

1110
struct metric_t {
1211
std::string name;
12+
@@ -165,4 +166,4 @@
13+
}
14+
};
15+
16+
-extern std::unique_ptr<fpsMetrics> fpsmetrics;
17+
\ No newline at end of file
18+
+extern std::unique_ptr<fpsMetrics> fpsmetrics;
19+
diff -uNr ../mangohud/src/gpu_fdinfo.h ./src/gpu_fdinfo.h
20+
--- ../mangohud/src/gpu_fdinfo.h 2025-03-05 06:56:10.000000000 -0300
21+
+++ ./src/gpu_fdinfo.h 2025-06-26 19:17:54.112818545 -0300
22+
@@ -11,6 +11,7 @@
23+
#include <map>
24+
#include <set>
25+
#include <regex>
26+
+#include <sstream>
27+
28+
#ifdef TEST_ONLY
29+
#include <../src/mesa/util/os_time.h>
Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
1-
diff --git a/src/gpu.cpp b/src/gpu.cpp
2-
index 1dfe720..4c6821f 100644
3-
--- a/src/gpu.cpp
4-
+++ b/src/gpu.cpp
5-
@@ -21,6 +21,7 @@ namespace fs = ghc::filesystem;
1+
diff -uNr ../mangohud/src/gpu.cpp ./src/gpu.cpp
2+
--- ../mangohud/src/gpu.cpp 2025-03-05 06:56:10.000000000 -0300
3+
+++ ./src/gpu.cpp 2025-06-26 19:20:46.145938572 -0300
4+
@@ -20,6 +20,10 @@
5+
namespace fs = ghc::filesystem;
6+
67
GPUS::GPUS(overlay_params* params) : params(params) {
8+
+#ifdef __ANDROID__
9+
+ return;
10+
+#endif
11+
+
712
std::vector<std::string> gpu_entries;
813

9-
+#ifndef __ANDROID__
1014
for (const auto& entry : fs::directory_iterator("/sys/class/drm")) {
11-
if (entry.is_directory()) {
12-
std::string node_name = entry.path().filename().string();
13-
@@ -68,6 +69,7 @@ GPUS::GPUS(overlay_params* params) : params(params) {
14-
15-
SPDLOG_DEBUG("GPU Found: node_name: {}, vendor_id: {:x} device_id: {:x} pci_dev: {}", node_name, vendor_id, device_id, pci_dev);
16-
}
17-
+#endif
18-
19-
find_active_gpu();
20-
}

packages/mangohud/build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
PKG_VER=[gss]
2-
GIT_URL=https://github.com/flightlessmango/MangoHud.git
3-
GIT_COMMIT=1d19d431f185ae2065bb456b619471e1d650c5b0
1+
PKG_VER=0.8.1
2+
SRC_URL=https://github.com/flightlessmango/MangoHud/releases/download/v$PKG_VER/MangoHud-v$PKG_VER-Source.tar.xz
43
LDFLAGS="-Wl,--undefined-version"
54
MESON_ARGS="-Dwith_xnvctrl=disabled -Dwith_wayland=disabled -Dwith_dbus=disabled -Dtests=disabled"

packages/xkbcommon/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
PKG_VER=1.10.0
2+
SRC_URL=https://github.com/xkbcommon/libxkbcommon/archive/refs/tags/xkbcommon-$PKG_VER.tar.gz
3+
MESON_ARGS="-Denable-tools=false -Denable-wayland=false -Denable-bash-completion=false"

0 commit comments

Comments
 (0)