Emil Velikov
def59db953
meson: remove ld_libdir_prefix option
...
The option defaults to false in-tree and across all distributions. The
only alleged use-case is the build.sh/build-srt.sh scripts. Although the
output of those scripts is absolutely identical with or w/o the flag.
Remove it.
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
1 year ago
Emil Velikov
08c26d595f
meson: do not pick system vulkan, when explicitly disabled
...
For this to actually work, we also need to set dep_vulkan for all users.
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
1 year ago
Emil Velikov
221d335006
meson: remove mangoapp_32bit option
...
Was introduced as a means to shorten the build cycles. With the static
lib helper it should no longer be needed.
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
1 year ago
Emil Velikov
581b6b3375
meson: move util_files next to its user
...
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
1 year ago
Emil Velikov
270beefdf3
meson: drop no_override_init_args
...
No longer needed
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
1 year ago
Emil Velikov
ef169bd28b
meson: remove unused MANGOAPP_LAYER define
...
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
1 year ago
Emil Velikov
da219457e5
mangoapp: control.cpp -> control.c
...
There's nothing C++ in there, so rename the file appropriately.
While in there, use C99 initializers, annotate static functions as
such and pull the implicit stdbool.h.
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
1 year ago
Emil Velikov
8a1c56ba25
meson: remove broken -Dwith_dlsym
...
The option does not even build, so let's remove it.
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
1 year ago
FlightlessMango
99c72d30cf
check for mangoapp_layer option for manifest
1 year ago
FlightlessMango
d4aa74c149
Create static and shared libs separately
1 year ago
FlightlessMango
6f23cdeaf1
mangoapp: meson option to install lib32
1 year ago
FlightlessMango
e3995ffcbf
mangoapp: compile using static mangohud_library
1 year ago
FlightlessMango
ddbb4f5be1
intel: use json for parsing intel_gpu_top output
2 years ago
FlightlessMango
e38413b2d8
use intel_gpu_top for gpu stats
2 years ago
Stephan Lachnit
b8b6d61b25
Build mangoapp and mangohudctl for any CPU architecture
...
On 32-bit-only machines, building these for the 32-bit architecture makes sense.
Signed-off-by: Simon McVittie <smcv@debian.org>
2 years ago
jackun
e5d52c202e
Add meson install_tags, bump meson to 0.60
2 years ago
jackun
50720d2215
Install data files only if `include_doc` option is set
2 years ago
Stephan Lachnit
5709832576
Install MangoApp layer into libdir_mangohud
...
This makes the installation path adapt correctly to the value of
the append_libdir_mangohud option, which defaults to putting it in a
subdirectory ${libdir}/mangohud. Without this, the path in the JSON
manifest (which does respect append_libdir_mangohud) is inconsistent
with the actual location of the library.
Resolves: https://github.com/flightlessmango/MangoHud/issues/795
Co-authored-by: Simon McVittie <smcv@collabora.com>
2 years ago
jackun
39ba57daa1
s/is/are/g
2 years ago
jackun
8a628e6a77
Rename GL files to avoid some confusion with upstream Dear ImGui files
2 years ago
FlightlessMango
4341843117
nlohmann_json wrap
2 years ago
FlightlessMango
7df8918c42
mangoapp: layer: append libdir to json
2 years ago
jackun
11142b5b2c
Merge pull request #703 from evelikov/misc-mixes
...
Remove libdrm_amdgpu and other unnecessary code
2 years ago
FlightlessMango
b064f47d66
mangoapp: vulkan layer
2 years ago
Emil Velikov
68ce8f81cc
Remove libdrm_amdgpu metrics
...
There are two alternatives - hwmon entries and gpu_metrics sysfs file.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
Alessandro Toia
4be3ba20c2
GAMEPAD: add battery reporting for gamepad devices
...
(xone,xpadneo,ds4,ds5,switch)
2 years ago
FlightlessMango
e9d4eeff04
mangohudctl meson option
2 years ago
FlightlessMango
37e18279e7
mangoapp: use amdgpu metrics
2 years ago
FlightlessMango
92151565fc
mangoapp: disable some options
2 years ago
FlightlessMango
45be485a13
mangohud control
3 years ago
FlightlessMango
da573e8eba
mangoapp: fix not respecting nvctrl option
3 years ago
FlightlessMango
cd215854ce
Mangoapp: meson option
3 years ago
FlightlessMango
4e3a40c6ef
mangoapp + gamescope shm
3 years ago
jackun
822e325d11
Add get_basename, fix win32 build
...
std::string::substr likes to throw
3 years ago
jackun
2f807a4c0d
Add `spdlog` wrap and logging
3 years ago
jackun
c093f9823e
Use libdrm_amdgpu for amdgpu sensor info, if available
...
Using plain `open` as `drmOpen` needs bus id check which needs interface 1.4 ioctl which gives EPERM cause only DRM_MASTER can call it :(
https://github.com/clbr/radeontop/issues/48#issuecomment-493792404
3 years ago
Alessandro Toia
5656001639
Add forkawesome from compressed Base85 TTF
3 years ago
Alessandro Toia
5adb4500c7
Install forkawesome font file
3 years ago
FlightlessMango
a90c897feb
Check battery info
3 years ago
jackun
47865573a8
Add option to prepend libdir to library's path in vulkan manifest
...
"\$LIB" technically breaks json but on the other hand vulkan loader
currently doesn't handle "\\$LIB"
Help with issue #468
3 years ago
jackun
54d6a8e889
Unset LD_LIBRARY_PATH if using absolute paths in LD_PRELOAD
...
$LIB in LD_LIBRARY_PATH makes `ldconfig` unhappy.
3 years ago
jackun
6a5cd38127
Meson option to have absolute paths in LD_PRELOAD
4 years ago
FlightlessMango
378cc1e089
Push params to HudElements options
4 years ago
FlightlessMango
ac821df7fa
Win32 basic d3d11 present hook
4 years ago
FlightlessMango
2f55f52011
Allow blacklist for unix too
4 years ago
FlightlessMango
ab90abe4d4
De-linuxify vulkan
4 years ago
FlightlessMango
bf9132bba1
Win32 nvapi gpu usage
4 years ago
FlightlessMango
7dd6792772
Win32 nvapi gpu usage
4 years ago
FlightlessMango
2ebb381166
Win32 d3d_shared
4 years ago
FlightlessMango
cbd87585b4
Win32 cpu usage
4 years ago