| 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 | 7 # install_dependencies.sh will install system-specific Skia |
| 8 # dependencies using your system's package manager. If your system is | 8 # dependencies using your system's package manager. If your system is |
| 9 # not supported, add logic here to support it. | 9 # not supported, add logic here to support it. |
| 10 | 10 |
| 11 set -e | 11 set -e |
| 12 | 12 |
| 13 if command -v lsb_release > /dev/null ; then | 13 if command -v lsb_release > /dev/null ; then |
| 14 case $(lsb_release -i -s) in | 14 case $(lsb_release -i -s) in |
| 15 Ubuntu) | 15 Ubuntu) |
| 16 sudo apt-get install \ | 16 sudo apt-get install \ |
| 17 build-essential \ | 17 build-essential \ |
| 18 libpoppler-cpp-dev \ | |
| 19 libfreetype6-dev \ | 18 libfreetype6-dev \ |
| 20 libfontconfig-dev \ | 19 libfontconfig-dev \ |
| 21 libpng12-dev \ | 20 libpng12-dev \ |
| 22 libgif-dev \ | 21 libgif-dev \ |
| 23 libqt4-dev \ | 22 libqt4-dev \ |
| 24 clang | 23 clang |
| 25 if [ $(lsb_release -r -s) = '14.04' ] ; then | 24 if [ $(lsb_release -r -s) = '14.04' ] ; then |
| 26 sudo apt-get install \ | 25 sudo apt-get install \ |
| 27 ninja-build | 26 ninja-build |
| 28 fi | 27 fi |
| 29 exit | 28 exit |
| 30 ;; | 29 ;; |
| 31 esac | 30 esac |
| 32 fi | 31 fi |
| 33 | 32 |
| 34 echo 'unknown system' | 33 echo 'unknown system' |
| 35 exit 1 | 34 exit 1 |
| 36 | 35 |
| OLD | NEW |