| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # Copyright 2014 Google Inc. | 2 # Copyright 2014 Google Inc. |
| 3 # | 3 # |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 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 |
| 7 if command -v lsb_release > /dev/null ; then | 11 if command -v lsb_release > /dev/null ; then |
| 8 case $(lsb_release -i -s) in | 12 case $(lsb_release -i -s) in |
| 9 Ubuntu) | 13 Ubuntu) |
| 10 sudo apt-get install \ | 14 sudo apt-get install \ |
| 11 build-essential \ | 15 build-essential \ |
| 12 libfreetype6-dev \ | 16 libfreetype6-dev \ |
| 13 libfontconfig-dev \ | 17 libfontconfig-dev \ |
| 14 libpng12-dev \ | 18 libpng12-dev \ |
| 15 libgif-dev \ | 19 libgif-dev \ |
| 16 libqt4-dev \ | 20 libqt4-dev \ |
| 17 clang | 21 clang |
| 18 if [ $(lsb_release -r -s) = '14.04' ] ; then | 22 if [ $(lsb_release -r -s) = '14.04' ] ; then |
| 19 sudo apt-get install \ | 23 sudo apt-get install \ |
| 20 ninja-build | 24 ninja-build |
| 21 fi | 25 fi |
| 22 exit | 26 exit |
| 23 ;; | 27 ;; |
| 24 esac | 28 esac |
| 25 fi | 29 fi |
| 26 | 30 |
| 27 echo 'unknown system' | 31 echo 'unknown system' |
| 28 exit 1 | 32 exit 1 |
| 29 | 33 |
| OLD | NEW |