| # Copyright 2014 Google Inc. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| # install_dependencies.sh will install system-specific Skia |
| # dependencies using your system's package manager. If your system is |
| # not supported, add logic here to support it. |
| # Return 0 iff all package name arguments are installed. |
| if !(dpkg-query -W -f'${Status}' "$arg" 2>/dev/null | \ |
| grep -q "ok installed"); then |
| if command -v lsb_release > /dev/null ; then |
| case $(lsb_release -i -s) in |
| if [ $(lsb_release -r -s) = '14.04' ] ; then |
| PACKAGES="${PACKAGES} ninja-build" |
| if ! dpkg_all_installed $PACKAGES; then |
| sudo apt-get install $PACKAGES |