blob: 669a4314ad74f2b9614ca2e6b3d5a1424b284b04 (
plain)
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
|
#!/usr/bin/env bash
# This script installs the external dependencies to build Swift with Qt5.
SYSTEM_NAME=$(uname)
if [ "$SYSTEM_NAME" == "Linux" ]
then
# handle linux distributions
SYSTEM_DISTRO=$(lsb_release -i -s)
if [ "$SYSTEM_DISTRO" == "Debian" ]
then
sudo apt-get install pkg-config libssl-dev qt5-default libqt5x11extras5-dev libqt5webkit5-dev qtmultimedia5-dev qttools5-dev-tools
elif [ "$SYSTEM_DISTRO" == "Ubuntu" ]
then
sudo apt-get install pkg-config libssl-dev qt5-default libqt5x11extras5-dev libqt5webkit5-dev qtmultimedia5-dev qttools5-dev-tools
elif [ "$SYSTEM_DISTRO" == "Arch" ]
then
sudo pacman -S qt5-base qt5-x11extras qt5-webkit qt5-multimedia qt5-tools
elif [ "$SYSTEM_DISTRO" == "openSUSE project" ]
then
sudo zypper in pkg-config libopenssl-devel libQt5Core-devel libQt5WebKit5-devel libQt5WebKitWidgets-devel libqt5-qtmultimedia-devel libqt5-qtx11extras-devel libqt5-qttools-devel libQt5Gui-devel libQt5Network-devel libQt5DBus-devel
else
echo "Unsupported Linux distribution."
fi
else
echo "Unspupported system."
fi
|