diff options
| -rwxr-xr-x | BuildTools/InstallSwiftDependencies.sh | 19 |
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 @@ | |||
| 1 | #!/usr/bin/env bash | ||
| 2 | |||
| 3 | # This script installs the external dependencies to build Swift with Qt5. | ||
| 4 | |||
| 5 | SYSTEM_NAME=$(uname) | ||
| 6 | |||
| 7 | if [ "$SYSTEM_NAME" == "Linux" ] | ||
| 8 | then | ||
| 9 | # handle linux distributions | ||
| 10 | SYSTEM_DISTRO=$(lsb_release -i -s) | ||
| 11 | if [ "$SYSTEM_DISTRO" == "Debian" ] | ||
| 12 | then | ||
| 13 | sudo apt-get install pkg-config libssl-dev qt5-default libqt5x11extras5-dev libqt5webkit5-dev qtmultimedia5-dev qttools5-dev-tools | ||
| 14 | else | ||
| 15 | echo "Unsupported Linux distribution." | ||
| 16 | fi | ||
| 17 | else | ||
| 18 | echo "Unspupported system." | ||
| 19 | fi | ||
Swift