mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2026-02-05 01:30:13 +01:00
Trying to get trixie to build
On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: install-scripts/hyprland.sh
This commit is contained in:
parent
55df84a03a
commit
0bdf84c919
@ -129,27 +129,29 @@ EOF
|
||||
# By default, build Hyprland with bundled hyprutils/hyprlang to avoid version mismatches
|
||||
# You can force system libs by exporting USE_SYSTEM_HYPRLIBS=1 before running this script.
|
||||
USE_SYSTEM=${USE_SYSTEM_HYPRLIBS:-1}
|
||||
if [ "$USE_SYSTEM" = "1" ]; then
|
||||
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:${PKG_CONFIG_PATH:-}"
|
||||
export CMAKE_PREFIX_PATH="/usr/local:${CMAKE_PREFIX_PATH:-}"
|
||||
SYSTEM_FLAGS=(
|
||||
"-DUSE_SYSTEM_HYPRUTILS=ON"
|
||||
"-DUSE_SYSTEM_HYPRLANG=ON"
|
||||
"-DUSE_SYSTEM_HYPRWIRE=ON"
|
||||
)
|
||||
# Optional preflight: verify hyprwire is discoverable by CMake/pkg-config
|
||||
if [ ! -e "/usr/local/lib/cmake/Hyprwire/HyprwireConfig.cmake" ] && ! pkg-config --exists hyprwire 2>/dev/null; then
|
||||
echo "${NOTE} hyprwire not detected in /usr/local yet. Ensure install-scripts/hyprwire.sh ran successfully or set USE_SYSTEM_HYPRLIBS=0 to use subprojects."
|
||||
fi
|
||||
else
|
||||
# Ensure we do not accidentally pick up mismatched system headers
|
||||
unset PKG_CONFIG_PATH || true
|
||||
SYSTEM_FLAGS=(
|
||||
"-DUSE_SYSTEM_HYPRUTILS=OFF"
|
||||
"-DUSE_SYSTEM_HYPRLANG=OFF"
|
||||
"-DUSE_SYSTEM_HYPRWIRE=OFF"
|
||||
)
|
||||
if [ "$USE_SYSTEM" = "1" ]; then
|
||||
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:${PKG_CONFIG_PATH:-}"
|
||||
export CMAKE_PREFIX_PATH="/usr/local:${CMAKE_PREFIX_PATH:-}"
|
||||
SYSTEM_FLAGS=(
|
||||
"-DUSE_SYSTEM_HYPRUTILS=ON"
|
||||
"-DUSE_SYSTEM_HYPRLANG=ON"
|
||||
"-DUSE_SYSTEM_HYPRWIRE=ON"
|
||||
)
|
||||
# Optional preflight: verify hyprwire is discoverable by CMake/pkg-config
|
||||
if [ ! -e "/usr/local/lib/cmake/Hyprwire/HyprwireConfig.cmake" ] && ! pkg-config --exists hyprwire 2>/dev/null; then
|
||||
echo "${NOTE} hyprwire not detected in /usr/local yet. Ensure install-scripts/hyprwire.sh ran successfully or set USE_SYSTEM_HYPRLIBS=0 to use subprojects."
|
||||
fi
|
||||
else
|
||||
# Ensure we do not accidentally pick up mismatched system headers
|
||||
unset PKG_CONFIG_PATH || true
|
||||
SYSTEM_FLAGS=(
|
||||
"-DUSE_SYSTEM_HYPRUTILS=OFF"
|
||||
"-DUSE_SYSTEM_HYPRLANG=OFF"
|
||||
"-DUSE_SYSTEM_HYPRWIRE=OFF"
|
||||
"-DBUILD_HYPRCTL=OFF"
|
||||
"-DINSTALL_HYPRCTL=OFF"
|
||||
)
|
||||
fi
|
||||
|
||||
# Make sure submodules are present when building bundled deps
|
||||
git submodule update --init --recursive || true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user