Commit Graph

124 Commits

Author SHA1 Message Date
FlightlessMango
602ba78ea3 Split library into vulkan and opengl parts.
This has caused a lot of issues because when preloaded the vulkan hooks
will still initialize even tho it's an OpenGL application.
This will subsequently crash the application.
The solution is to split the vulkan and opengl parts into two separate
shared libraries.
2023-07-21 05:31:58 +02:00
FlightlessMango
381c519631 meson: disable mangoapp by default
[skip ci]
2023-06-15 06:13:08 +02:00
FlightlessMango
801b5ef5fc mangoapp: install by default
[skip ci]
2023-06-13 18:54:04 +02:00
Adel KARA SLIMANE
6306fed7f7 Add mangoplot script
Displays frame time distributions from local files

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>
2023-05-28 11:46:05 +02:00
jackun
c495c5fdda
[build.sh] quick fix for f47f777e26 2023-03-26 16:33:51 +03:00
Emil Velikov
f47f777e26 meson: unwrap ld_libdir_mangohud handling, remove ld_libdir_abs
Currently we have ld_libdir_abs which defaults to false. In that case,
both the mangohud shell wrapper, as well as the json files, reference
the DSOs directly without any path component.

This means that at run-time the dynamic linker, vulkan loader as well as
pressure-vessel will need to jump through hoops and figure out the
bitness of the DSO, whether one wants the 32 or 64bit one and even then
there will be confusing messages like:

fatal: /usr/lib/libMangoHud.so: wrong ELF class: ELFCLASS32

When set to true, as seen in the in-tree build.sh we'll append empty
path to LD_LIBRARY_PATH (bad), the full path with the $LIB token will be
used with LD_PRELOAD (good) and json files (bad).

Since we are generating separate json files, we can use the actual path
(while $LIB currently works, it's not really strict json nor documented
as supported). We can also drop the dubious LD_LIBRARY_PATH manipulation

This basically reinstates the prepend_libdir_vk=true option that was
dropped earlier.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2023-03-13 21:53:27 +01:00
Emil Velikov
491510d41c meson: produce per cpu_family json files
This will allow us to remove the $LIB from the json files and simplify
the related lib handling.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2023-03-13 21:53:27 +01:00
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>
2023-03-13 21:53:27 +01:00
Emil Velikov
d71935301b build.sh: drop no longer used variables
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2023-03-13 21:53:27 +01:00
Fox
6ca6b07102 [build.sh] Seperating deps into seperate file for easy adding of new dep 2023-01-21 07:37:16 +01:00
KingKrouch
4a2300310b Add Nobara to build.sh's Fedora section
This change is due to MangoHUD's dependency checks getting confused due to not recognizing the distribution.
2023-01-17 16:09:44 +01:00
FlightlessMango
dbe2f010a2 Don't build mangoapp by default 2023-01-17 15:20:42 +01:00
FlightlessMango
c37c0de4fb build.sh: add mangoapp to install/uninstall 2023-01-11 07:47:25 +01:00
Alessandro Toia
d56451f7cd Check for Artix linux dependencies 2022-12-11 15:30:31 -08:00
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>
2022-03-12 10:28:18 +00:00
Emil Velikov
aafc2e0981 Build with CI jobs with -Dwerror=true
Currently the CI jobs only builds on releases, which catches some of the
fallout.

We might get a proper CI at some point in the future.

v2: pass the -Dwerror=true directly into build.sh

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-06 19:07:01 +00:00
jackun
24a011702f
[build.sh] Fix typo 2021-08-09 01:46:31 +03:00
jackun
f273bf20f1
[build.sh] Re-add Deepin 2021-08-08 21:25:21 +03:00
jackun
361641382c
[build.sh] Attempt to fix wrong 32bit lib dir on non-Arch distros 2021-08-08 17:08:36 +03:00
gk
06a37bdcce
Use alternate method of checking for distro
Use ID/ID_LIKE instead of NAME which will allow less popular forks of
distros to work properly, for example archlabs, whose ID_LIKE will be
arch. And due to the simpler format this should be more
future-compatible.

It appears that some distros don't have ID_LIKE so it also includes ID
in the DISTRO variable.

There are a few downsides to this approach, notably:
 - The OpenSUSE message won't be able to detect whether the user is on
    leap or tumbleweed, so I made it print the command for both.
 - This requires some more globbing since the ID field will be before
    the ID_LIKE field, and the ID_LIKE field can include multiple
    distros.

https://freedesktop.org/software/systemd/man/os-release.html

PR #420
2021-08-08 15:53:22 +03:00
jackun
75cf178abd
Update build scripts for libdrm/SRT 2021-07-13 19:54:39 +03:00
vesterlay
fb672833da Update build.sh 2021-03-19 16:29:11 +02:00
KlfJoat
18fb0d5649 Fix var typo in unrecognized command argument feedback 2021-03-19 16:29:11 +02:00
flightlessmango
73b7c58724 Clean subprojects in build.sh clean 2021-02-03 11:36:27 +01:00
Witold Baryluk
d4b8f5f519 Search whole PATH for glslangValidator from system
This is more robust and correct way do to it.
2021-01-24 13:13:06 +02:00
jackun
6a5cd38127
Meson option to have absolute paths in LD_PRELOAD 2020-11-27 17:44:22 +02:00
jackun
b177b2ac1f
Partial revert 63b50abede 2020-11-10 09:32:24 +02:00
jackun
9974992f7a
Some distros annoyingly prefix tls/[x86_64|i686] with arch triplet 2020-10-22 19:22:54 +03:00
jackun
63b50abede
Try out tls/x86_64, tls/i686 for less symlinking 2020-09-11 10:47:26 +03:00
jackun
eb681427ca
\$LIB probably has lib/ in it too 2020-08-15 21:50:23 +03:00
FlightlessMango
8a39043a13 Merge branch 'master' into develop 2020-08-15 14:04:30 +02:00
jackun
8c4a724154
[build.sh] Go back to installing with install
Sudo'ing `ninja install` has high change of messing with file permissions in build dir
2020-08-13 18:37:06 +03:00
jackun
2aca7df721
Revert "[build.sh] Utilize ninja uninstall"
This reverts commit a16a5fd907.
2020-08-13 18:28:16 +03:00
jackun
b1dc9b2ca7
[build.sh] "Refreshen" build dirs before install
Running `sudo ninja install` isn't ideal but for convenience do it anyway.
Re-run `build` before install to somewhat mitigate files getting "chowned" by root.
2020-08-05 11:56:51 +03:00
jackun
a16a5fd907
[build.sh] Utilize ninja uninstall 2020-08-04 20:13:57 +03:00
jackun
a173989b1c
Make build.sh compatible with \$LIB 2020-08-04 19:51:00 +03:00
flightlessmango
5f51f3f1ed
Merge pull request #281 from m-rzb/master
Update build.sh
2020-08-02 06:36:07 +00:00
FlightlessMango
a06e01c7ef Merge branch 'develop' 2020-08-02 08:28:24 +02:00
FlightlessMango
27df2ef24b Merge branch 'benchmark-percentages' 2020-08-02 08:25:31 +02:00
FlightlessMango
107526198e [Build.sh] Updated glslang link for *buntu 2020-07-27 16:24:14 +02:00
jackun
05551a4049
build.sh: pass arguments to functions 2020-07-25 19:40:15 +03:00
jackun
da4b6a291d
build.sh: add fedora dbus-devel
Issue #263
2020-07-13 13:35:25 +03:00
Newbyte
53ceeb3182 Document reinstall in usage help 2020-06-29 17:50:45 +03:00
m-rzb
c9c91808dc
Update build.sh
Added "KDE neon"
2020-06-27 11:42:45 +01:00
Valters
cdeee98521
Add reinstall function to build.sh 2020-06-02 16:47:58 +03:00
jackun
1e300ae583
[build.sh] Don't run pip show with sudo
Allows for checking if it is already installed to user's home
2020-05-26 17:58:47 +03:00
jackun
610a69190f
[build.sh] Rename dep installer function to dep_install
On first run with e.g. `./build.sh build install`, `install` would get
"overwritten" by dep installer function instead.
2020-05-26 17:55:59 +03:00
jackun
5261088243
[build.sh] Fix distro name parsing if it doesn't have double quotes 2020-05-12 02:07:58 +03:00
jackun
768297b430
[editorconfig] Apply whitespace rules 2020-05-10 15:18:59 +03:00
FlightlessMango
2177aa35dc Merge branch 'develop' 2020-05-02 20:50:13 +02:00