2014-04-16 22:10:48 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Copyright 2014 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
2014-05-05 13:30:06 +00:00
|
|
|
# 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.
|
|
|
|
|
2014-05-20 15:07:53 +00:00
|
|
|
set -e
|
|
|
|
|
2014-04-16 22:10:48 +00:00
|
|
|
if command -v lsb_release > /dev/null ; then
|
|
|
|
case $(lsb_release -i -s) in
|
|
|
|
Ubuntu)
|
|
|
|
sudo apt-get install \
|
|
|
|
build-essential \
|
2014-05-20 15:07:53 +00:00
|
|
|
libpoppler-cpp-dev \
|
2014-04-16 22:10:48 +00:00
|
|
|
libfreetype6-dev \
|
|
|
|
libfontconfig-dev \
|
|
|
|
libpng12-dev \
|
|
|
|
libgif-dev \
|
|
|
|
libqt4-dev \
|
|
|
|
clang
|
|
|
|
if [ $(lsb_release -r -s) = '14.04' ] ; then
|
|
|
|
sudo apt-get install \
|
|
|
|
ninja-build
|
|
|
|
fi
|
|
|
|
exit
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo 'unknown system'
|
|
|
|
exit 1
|
|
|
|
|