summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2015-09-09 11:59:57 (GMT)
committerKevin Smith <kevin.smith@isode.com>2015-09-18 08:49:40 (GMT)
commit6b4a22ab48e6db032e98be22fb5a144caf186556 (patch)
tree5ad609d9bfd1a3b67050df3c17dc351a7a415f40 /BuildTools
parent9be5ebf772f03cdaea50bf33b70f30dd4f1c0dd2 (diff)
downloadswift-6b4a22ab48e6db032e98be22fb5a144caf186556.zip
swift-6b4a22ab48e6db032e98be22fb5a144caf186556.tar.bz2
Add script for installing 3rdParty dependencies on UNIX/Linux
This script detects the system type and distribution and installs dependencies to build Swift with Qt5. Currently, it only supports Debian, but will be extended to more systems in future. Test-Information: Tested on Debian 8. Change-Id: I56f8fe5738f057cff519755fe2f823eac721d318
Diffstat (limited to 'BuildTools')
-rwxr-xr-xBuildTools/InstallSwiftDependencies.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/BuildTools/InstallSwiftDependencies.sh b/BuildTools/InstallSwiftDependencies.sh
new file mode 100755
index 0000000..0feb6ed
--- /dev/null
+++ b/BuildTools/InstallSwiftDependencies.sh
@@ -0,0 +1,19 @@
+#!/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
+ else
+ echo "Unsupported Linux distribution."
+ fi
+else
+ echo "Unspupported system."
+fi