Commit Graph

17 Commits (5f54a9cfe6e4af202065dc5ed65a10634f0e41e3)

Author SHA1 Message Date
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
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 6a5cd38127
Meson option to have absolute paths in LD_PRELOAD 3 years ago
jackun a173989b1c
Make build.sh compatible with \$LIB 4 years ago
Stephan Lachnit d956f60f86 remove old system nvml build option
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
4 years ago
jackun 953c8d0e0f
Add meson option `with_nvml` 4 years ago
Sporif 61ef9244e9 Disable dlsym hooking by default and fix LD_PRELOAD propagation to new processes
This allows `mangohud steam` to work
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
Danilo Spinella 0373383581
Add x11/wayland feature switches, rename 'use_xnvctrl' to 'with_xnvctrl' 4 years ago
jackun 049e960589
Add 'use_xnvctrl' feature to allow building without libXNVCtrl support 4 years ago
FlightlessMango 71b602751d [meson] option to include_doc 4 years ago
jackun ad64bf345d
Update build scripts, again
Install to $prefix$libdir/mangohud by default.
4 years ago
jackun f99129f9de
Libdirs: once more, with feeling 4 years ago
Danilo Spinella 18edd4eb50 meson: Add option to use system vulkan headers 4 years ago
jackun 6400ab3cdc
meson: option to add _GLIBCXX_ASSERTIONS define 4 years ago