Vaxry, what do you use to build everything locally

hey @vaxry , just wondering what you use to build everything locally?

I have a script I wrote but it’s not perfect, that pulls all the hypr repos, pulls latest, builds and installs everything in order.

I assume you aren’t just manually cmake’ing inside every folder?

I am, just put that in a bash script.

ya that’s essentially what I did lol, mind sharing yours perhaps? I assume as the overlord of hyprland yours is probably better than mine

#!/bin/zsh

build () {
    git pull ; git pull
    rm -rf ./build
    rm -rf ./protocols/*.cpp
    rm -rf ./protocols/*.hpp
    cmake -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib -DCMAKE_INSTALL_PREFIX=/usr -DWITH_ASAN:STRING=FALSE -DBUILD_EXAMPLES:BOOL=False -DCMAKE_BUILD_TYPE:STRING=Release -DINSTALL_QML_PREFIX=/lib/qt6/qml -B build
    cmake --build build -j `nproc`
    sudo cmake --install build
}

cd ~/WMS/hyprland-protocols
rm -rf ./build && meson setup build --prefix=/usr && sudo ninja -C build install
cd ~/WMS/hyprland-qt-support
build
cd ~/WMS/hyprwayland-scanner
build
# ... and so on
4 Likes