3 # Copyright 2014 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
7 # Script to install build dependencies of packages which we instrument.
9 # Enable source repositories in Goobuntu.
10 if hash goobuntu-config
2> /dev
/null
12 sudo goobuntu-config
set include_deb_src true
15 # TODO(earthdok): find a way to pull the list from the build config.
68 precise_specific_packages
="libtasn1-3"
69 trusty_specific_packages
="\
74 ubuntu_release
=$
(lsb_release
-cs)
76 if test "$ubuntu_release" = "precise" ; then
77 packages
="$common_packages $precise_specific_packages"
79 packages
="$common_packages $trusty_specific_packages"
82 # Extra build deps for pulseaudio, which apt-get build-dep may fail to install
83 # for reasons which are not entirely clear.
84 sudo apt-get
install libltdl3-dev libjson0-dev \
85 libsndfile1-dev libspeexdsp-dev libjack0 \
86 chrpath
-y # Chrpath is required by fix_rpaths.sh.
88 sudo apt-get build-dep
-y $packages
90 if test "$ubuntu_release" = "trusty" ; then
91 # On Trusty, build deps for some of the instrumented packages above conflict
92 # with Chromium's build deps. In particular:
93 # zlib1g and libffi remove gcc-4.8 in favor of gcc-multilib,
94 # libglib2.0-0 removes libelf in favor of libelfg0.
95 # We let Chromium's build deps take priority. So, run Chromium's
96 # install-build-deps.sh to reinstall those that have been removed.
97 $
(dirname ${BASH_SOURCE[0]})/..
/..
/..
/build
/install-build-deps.sh
--no-prompt