aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/install_dependencides.sh
blob: f262117660558ed43f424f66e36c01bb5939ed62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/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.

if command -v lsb_release > /dev/null ; then
    case $(lsb_release -i -s) in
        Ubuntu)
            sudo apt-get install \
                build-essential \
		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