#!/usr/bin/env bash # Build FWS-DeskManager and open its GTK4 window in a single step. # Usage: ./run.sh # # BUILD_DIR / BUILD_TYPE override the defaults when a separate build tree is # needed (for example BUILD_DIR=build-debug BUILD_TYPE=Debug ./run.sh). set -euo pipefail cd -- "$(dirname -- "${BASH_SOURCE[0]}")" build_dir="${BUILD_DIR:-build}" build_type="${BUILD_TYPE:-Release}" jobs="$(nproc)" # Incremental: cmake keeps the existing cache and only recompiles stale files. cmake -S . -B "$build_dir" -DCMAKE_BUILD_TYPE="$build_type" cmake --build "$build_dir" -j"$jobs" exec "$build_dir/fws-deskmanager"