blob: 9a8b4fede244818d51b70b08d3da6e9ccc873659 (
plain) (
blame)
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
60
61
62
63
|
#!/bin/sh
# SPDX-FileCopyrightText: 2014 Boris Pek <tehnick-8@yandex.ru>
# SPDX-FileCopyrightText: 2018 Jeremy Lainé <jeremy.laine@m4x.org>
#
# SPDX-License-Identifier: CC0-1.0
set -e
install_cmake() {
NAME=$1
URL=$2
OPTS=$3
CURRENT_DIR=$(pwd)
cd
git clone $URL $NAME
mkdir -p $NAME-build
cmake $NAME -B./$NAME-build/ -DCMAKE_BUILD_TYPE=Release $OPTS
cmake --build $NAME-build --parallel
sudo cmake --build $NAME-build --target install
cd $CURRENT_DIR
}
if [ "$(uname -s)" = "Darwin" ]; then
brew update
brew unlink python@3
brew install python@3 || true
brew link --overwrite python@3
case "$CONFIG" in
full*)
brew install doxygen gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly
;;
esac
else
sudo apt-get update -qq
sudo apt-get install -qq clang cmake
case "$CONFIG" in
full*)
sudo apt-get install -qq doxygen graphviz libgstreamer1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly
;;
esac
fi
case "$CONFIG" in
full*)
# Enable OMEMO for Qt > 5.15 (including Qt 6)
# Build and install qca and libomemo-c
case "$QT_VERSION" in
5.15*)
install_cmake libomemo-c https://github.com/dino/libomemo-c "-DBUILD_SHARED_LIBS=ON"
install_cmake qca https://invent.kde.org/libraries/qca "-DBUILD_TESTS=OFF -DBUILD_TOOLS=OFF -DBUILD_WITH_QT6=OFF"
;;
6*)
install_cmake libomemo-c https://github.com/dino/libomemo-c "-DBUILD_SHARED_LIBS=ON"
install_cmake qca https://invent.kde.org/libraries/qca "-DBUILD_TESTS=OFF -DBUILD_TOOLS=OFF -DBUILD_WITH_QT6=ON"
;;
esac
;;
esac
|