commit-bot@chromium.org | 0d317d3 | 2014-04-16 22:10:48 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # Copyright 2014 Google Inc. |
| 3 | # |
| 4 | # Use of this source code is governed by a BSD-style license that can be |
| 5 | # found in the LICENSE file. |
| 6 | |
commit-bot@chromium.org | 3df4e95 | 2014-05-05 13:30:06 +0000 | [diff] [blame^] | 7 | # install_dependencies.sh will install system-specific Skia |
| 8 | # dependencies using your system's package manager. If your system is |
| 9 | # not supported, add logic here to support it. |
| 10 | |
commit-bot@chromium.org | 0d317d3 | 2014-04-16 22:10:48 +0000 | [diff] [blame] | 11 | if command -v lsb_release > /dev/null ; then |
| 12 | case $(lsb_release -i -s) in |
| 13 | Ubuntu) |
| 14 | sudo apt-get install \ |
| 15 | build-essential \ |
| 16 | libfreetype6-dev \ |
| 17 | libfontconfig-dev \ |
| 18 | libpng12-dev \ |
| 19 | libgif-dev \ |
| 20 | libqt4-dev \ |
| 21 | clang |
| 22 | if [ $(lsb_release -r -s) = '14.04' ] ; then |
| 23 | sudo apt-get install \ |
| 24 | ninja-build |
| 25 | fi |
| 26 | exit |
| 27 | ;; |
| 28 | esac |
| 29 | fi |
| 30 | |
| 31 | echo 'unknown system' |
| 32 | exit 1 |
| 33 | |