Commit Graph

127 Commits (master)

Author SHA1 Message Date
flightlessmango 1e13c385fe build.sh: add steamos to arch 3 weeks ago
Alessandro Toia dbf0c91f47 build: add Pop!_OS to check dependencies 3 weeks ago
flightlessmango 5b233be2f8 build: fix ubuntu and fedora dependencies 4 weeks ago
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.
9 months ago
FlightlessMango 381c519631 meson: disable mangoapp by default
[skip ci]
11 months ago
FlightlessMango 801b5ef5fc mangoapp: install by default
[skip ci]
11 months ago
Adel KARA SLIMANE 6306fed7f7 Add mangoplot script
Displays frame time distributions from local files

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>
11 months ago
jackun c495c5fdda
[build.sh] quick fix for f47f777e26 1 year ago
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>
1 year ago
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>
1 year ago
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 d71935301b build.sh: drop no longer used variables
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
1 year ago
Fox 6ca6b07102 [build.sh] Seperating deps into seperate file for easy adding of new dep 1 year ago
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.
1 year ago
FlightlessMango dbe2f010a2 Don't build mangoapp by default 1 year ago
FlightlessMango c37c0de4fb build.sh: add mangoapp to install/uninstall 1 year ago
Alessandro Toia d56451f7cd Check for Artix linux dependencies 1 year 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
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>
2 years ago
jackun 24a011702f
[build.sh] Fix typo 3 years ago
jackun f273bf20f1
[build.sh] Re-add Deepin 3 years ago
jackun 361641382c
[build.sh] Attempt to fix wrong 32bit lib dir on non-Arch distros 3 years ago
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
3 years ago
jackun 75cf178abd
Update build scripts for libdrm/SRT 3 years ago
vesterlay fb672833da Update build.sh 3 years ago
KlfJoat 18fb0d5649 Fix var typo in unrecognized command argument feedback 3 years ago
flightlessmango 73b7c58724 Clean subprojects in build.sh clean 3 years ago
Witold Baryluk d4b8f5f519 Search whole PATH for glslangValidator from system
This is more robust and correct way do to it.
3 years ago
jackun 6a5cd38127
Meson option to have absolute paths in LD_PRELOAD 3 years ago
jackun b177b2ac1f
Partial revert 63b50abede 4 years ago
jackun 9974992f7a
Some distros annoyingly prefix `tls/[x86_64|i686]` with arch triplet 4 years ago
jackun 63b50abede
Try out tls/x86_64, tls/i686 for less symlinking 4 years ago
jackun eb681427ca
\$LIB probably has `lib/` in it too 4 years ago
FlightlessMango 8a39043a13 Merge branch 'master' into develop 4 years ago
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
4 years ago
jackun 2aca7df721
Revert "[build.sh] Utilize `ninja uninstall`"
This reverts commit a16a5fd907.
4 years ago
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.
4 years ago
jackun a16a5fd907
[build.sh] Utilize `ninja uninstall` 4 years ago
jackun a173989b1c
Make build.sh compatible with \$LIB 4 years ago
flightlessmango 5f51f3f1ed
Merge pull request #281 from m-rzb/master
Update build.sh
4 years ago
FlightlessMango a06e01c7ef Merge branch 'develop' 4 years ago
FlightlessMango 27df2ef24b Merge branch 'benchmark-percentages' 4 years ago
FlightlessMango 107526198e [Build.sh] Updated glslang link for *buntu 4 years ago
jackun 05551a4049
build.sh: pass arguments to functions 4 years ago
jackun da4b6a291d
build.sh: add fedora dbus-devel
Issue #263
4 years ago
Newbyte 53ceeb3182 Document reinstall in usage help 4 years ago
m-rzb c9c91808dc
Update build.sh
Added "KDE neon"
4 years ago
Valters cdeee98521
Add reinstall function to build.sh 4 years ago
jackun 1e300ae583
[build.sh] Don't run `pip show` with sudo
Allows for checking if it is already installed to user's home
4 years ago
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.
4 years ago