mirror of
https://gitgud.io/wackyideas/aerothemeplasma.git
synced 2026-06-18 19:35:47 +00:00
New components: - AeroThemePlasma KCM loader Updated components: - Desktop containment - Desktop shell - AeroGlassBlur - SMOD decorations
26 lines
519 B
Bash
Executable file
26 lines
519 B
Bash
Executable file
#!/bin/bash
|
|
|
|
BUILD_DST="build"
|
|
USE_NINJA=
|
|
BUILD_COMMAND="make"
|
|
|
|
if [[ "$*" == *"--ninja"* ]]
|
|
then
|
|
if [[ -z "$(command -v ninja)" ]]; then
|
|
echo "Attempted to build using Ninja, but Ninja was not found on the system. Falling back to GNU Make."
|
|
else
|
|
echo "Compiling using Ninja"
|
|
USE_NINJA="-G Ninja"
|
|
BUILD_COMMAND="ninja"
|
|
fi
|
|
fi
|
|
|
|
|
|
rm -rf "$BUILD_DST"
|
|
mkdir "$BUILD_DST"
|
|
cd "$BUILD_DST"
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr .. $USE_NINJA
|
|
$BUILD_COMMAND
|
|
sudo $BUILD_COMMAND install
|
|
|
|
|