-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcompile.sh
More file actions
executable file
·59 lines (51 loc) · 1.51 KB
/
compile.sh
File metadata and controls
executable file
·59 lines (51 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
# You can pass the following arguments to this script:
# --ninja Uses Ninja for faster compilation
# --wayland Tells the KWin build scripts to compile the C++ effects for Wayland
CUR_DIR=$(pwd)
USE_SCRIPT="install.sh"
# Sanity check to see if the proper tools are installed.
if [[ -z "$(command -v cmake)" ]]; then
echo "CMake not found. Stopping."
exit
fi
if [[ -z "$(command -v ninja)" ]]; then
if [[ -z "$(command -v make)" ]]; then
echo "Neither Ninja or GNU Make were found. Stopping"
exit
fi
fi
# Compiles the libplasma patches required for other components of ATP.
# Requires a restart to be applied.
cd "$PWD/misc/libplasma"
sh $USE_SCRIPT $@
cd "$CUR_DIR"
#echo "Compiling plasmoids..."
#for filename in "$PWD/plasma/plasmoids/src/"*; do
# cd "$filename"
# echo "Compiling $(pwd)"
# sh $USE_SCRIPT
# echo "Done."
# cd "$CUR_DIR"
#done
# Compiles the window decoration theme engine.
echo "Compiling SMOD decorations..."
cd "$PWD/kwin/decoration"
sh $USE_SCRIPT $@
cd "$CUR_DIR"
echo "Done."
# Compiles the settings KCM loader used for development and quick access of certain settings pages.
echo "Compiling KCM loader..."
cd "$PWD/plasma/aerothemeplasma-kcmloader"
sh $USE_SCRIPT $@
cd "$CUR_DIR"
echo "Done."
# Compiles all the KWin C++ effects, going folder by folder.
echo "Compiling KWin effects..."
for filename in "$PWD/kwin/effects_cpp/"*; do
cd "$filename"
echo "Compiling $(pwd)"
sh $USE_SCRIPT $@
echo "Done."
cd "$CUR_DIR"
done