Commit Graph

61 Commits (2f807a4c0da400606008195d15c6d7d9d733e3d2)

Author SHA1 Message Date
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
FlightlessMango e42002c57b Bump version to 0.6.5 3 years ago
FlightlessMango 7bddec9397 bump to v0.6.4 3 years ago
jackun 5f54a9cfe6
Bump to v0.6.3 3 years ago
Kira Bruneau d8a1ddf253
meson: Add vulkan_datadir option (#522)
This option enables using system Vulkan headers when it doesn't share
the same datadir as MangoHud. This is specifically an issue in NixOS
where packages are built into their own isolated directories in
/nix/store.

For example:
/nix/store/9g28nz6zh484144mzw670bx82y1ka49a-vulkan-headers-1.2.162.0/share/vulkan/registry/vk.xml

This is currently worked around in the Nix package, by symlinking the
vulkan-headers into MangoHud's install directory:

5debc57760/pkgs/tools/graphics/mangohud/default.nix (L66-L70)

Although, this hack causes the vulkan-headers to be included as a
runtime dependency when they're only needed at build time.

I tried to figure out a way to resolve the datadir automatically, but
found that just adding a new option is probably the best solution for
the following reasons:

- The vulkan.pc file used to resolve dep_vulkan doesn't contain any
information about the datadir.

- The share directory could be resolved relative to the vulkan include
directory and that would solve the specific issue for Nix, but the
datadir could be installed anywhere and that wouldn't be a general
solution.

- I couldn't find a way to resolve the data dir using the XDG Base
Directory Specification because meson doesn't provide a way to access
the necessary environment variables.

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
3 years ago
flightlessmango af57e0cb2d
Merge pull request #445 from stephanlachnit/p/build-source-rework
imgui wrap from WrapDB and build-source.sh rework
3 years ago
flightlessmango 206c55ef2e Bump version to v0.6.2 3 years ago
Stephan Lachnit b0ee2f749c
imgui wrap from Wrap DB and build-source.sh rework
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
3 years ago
jackun 53cca5e723
Merge remote-tracking branch 'origin/master' into develop 3 years ago
Aidan Harris 0a29c7369a
Explicitly test for the mako python module
Some distros (Gentoo) support multiple versions of python3 and mako may
not be built for all of the implementations. Testing for the module
early will make sure meson bails out if the module cannot be
found.
3 years ago
FlightlessMango 90ce1c5778 ImGui wrap 3 years ago
jackun 7b59095a79
Bump to v0.6.1 4 years ago
FlightlessMango 1c9e533a51 Bump meson build to 0.6.0 4 years ago
FlightlessMango 1263b8d954 Build with windows_deps 4 years ago
FlightlessMango 9391822da5 Basic d3d12 present hook 4 years ago
FlightlessMango b7aa6a997b Separate unix and windows in meson 4 years ago
FlightlessMango 6da5622002 Add minhook dep in meson 4 years ago
jackun c630588d22
Update version in meson.build 4 years ago
Stephan Lachnit 1f41652061 add a man page for mangohud
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
4 years ago
Stephan Lachnit acf2d88fbc Import Dear ImGui files as subproject
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
4 years ago
jackun 5fe5ac5f3d
Build script and fixes for Steam Runtime SDK 4 years ago
jackun 0d03b5a150
meson: use gnu_symbol_visibility argument
This uses a meson builtin to handle -fvisibility=hidden.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4740>
4 years ago
Stephan Lachnit d956f60f86 remove old system nvml build option
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
4 years ago
Stephan Lachnit ae8d387998 Use vulkan-headers 1.2.142 from Warp DB
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
4 years ago
FlightlessMango 91ba6fa824 Bump version to 0.4.0 4 years ago
FlightlessMango f48c09e607 Bump version to 0.3.5 4 years ago
FlightlessMango e170e64f9c [Params] Version option 4 years ago
FlightlessMango 5ee573730a Removed obsolete license from meson.build files 4 years ago
jackun efed107af6
[meson] check void* size once and better-ish xnvctrl checks 4 years ago
FlightlessMango d6314da8b2 Merge branch 'master' into develop 4 years ago
Stephan Lachnit f860418e7e
Allow system NVML to be used
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
4 years ago
jackun 8024736253
Add DBus loader, combined ticker for Spotify metadata 4 years ago
FlightlessMango d975278396
Dbus with spotify 4 years ago
Stephan Lachnit 0998d33d72
Use Vulkan-Headers module via wrap
This commit replaces the git submodule for the Vulkan headers with meson subproject using wrap.

Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
4 years ago
jackun 2f034c6d1e
Use X11 loader functions instead of linking to X11 libs 4 years ago
Danilo Spinella 0373383581
Add x11/wayland feature switches, rename 'use_xnvctrl' to 'with_xnvctrl' 4 years ago
jackun 82243bf115
Use more general sizeof to get arch "bitness" 4 years ago
jackun 2ab386d70a
Fix double definition 4 years ago
FlightlessMango 43d5bac40d Set MANGOHUD_ARCH in meson 4 years ago
jackun ab9c9ea7ea
Meson recommends using 'threads' dependency instead of 'pthread' 4 years ago
jackun 65f5ae773d
Bump to v0.3.1 4 years ago
jackun c2fb89ace5 Bump to v0.3.0 4 years ago
jackun ad64bf345d
Update build scripts, again
Install to $prefix$libdir/mangohud by default.
4 years ago
FlightlessMango 62a3759d07 only add ld.so.conf file for build.sh 4 years ago
FlightlessMango 8599484032 configure .json files with meson 4 years ago
jackun f99129f9de
Libdirs: once more, with feeling 4 years ago
jackun b91be85ff9
Use std::unordered_map and std::mutex instead for object mapping and related cleanups 4 years ago
jackun 70d0e81c36
Clone vulkan headers if needed 4 years ago
Danilo Spinella 18edd4eb50 meson: Add option to use system vulkan headers 4 years ago