OLD | NEW |
1 #!/bin/bash -e | 1 #!/bin/bash -e |
2 | 2 |
3 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 # Script to install build dependencies of packages which we instrument. | 7 # Script to install build dependencies of packages which we instrument. |
8 | 8 |
9 grep \'\<\(\_sanitizer_type \ | 9 # TODO(earthdok): find a way to pull the list from the build config. |
10 $(dirname ${BASH_SOURCE[0]})/instrumented_libraries.gyp | \ | 10 common_packages="\ |
11 sed "s;\s*'<(_sanitizer_type)-\(.*\)',;\1;" | sort | uniq | \ | 11 atk1.0 \ |
12 xargs sudo apt-get build-dep -y | 12 dee \ |
| 13 freetype \ |
| 14 libappindicator1 \ |
| 15 libasound2 \ |
| 16 libcairo2 \ |
| 17 libcap2 \ |
| 18 libcups2 \ |
| 19 libdbus-1-3 \ |
| 20 libdbus-glib-1-2 \ |
| 21 libdbusmenu \ |
| 22 libdbusmenu-glib4 \ |
| 23 libexpat1 \ |
| 24 libffi6 \ |
| 25 libfontconfig1 \ |
| 26 libgconf-2-4 \ |
| 27 libgcrypt11 \ |
| 28 libgdk-pixbuf2.0-0 \ |
| 29 libglib2.0-0 \ |
| 30 libgnome-keyring0 \ |
| 31 libgpg-error0 \ |
| 32 libgtk2.0-0 \ |
| 33 libnspr4 \ |
| 34 libp11-kit0 \ |
| 35 libpci3 \ |
| 36 libpcre3 \ |
| 37 libpixman-1-0 \ |
| 38 libpng12-0 \ |
| 39 libunity9 \ |
| 40 libx11-6 \ |
| 41 libxau6 \ |
| 42 libxcb1 \ |
| 43 libxcomposite1 \ |
| 44 libxcursor1 \ |
| 45 libxdamage1 \ |
| 46 libxdmcp6 \ |
| 47 libxext6 \ |
| 48 libxfixes3 \ |
| 49 libxi6 \ |
| 50 libxinerama1 \ |
| 51 libxrandr2 \ |
| 52 libxrender1 \ |
| 53 libxss1 \ |
| 54 libxtst6 \ |
| 55 nss \ |
| 56 overlay-scrollbar \ |
| 57 pango1.0 \ |
| 58 pulseaudio \ |
| 59 udev \ |
| 60 zlib1g" |
| 61 |
| 62 precise_specific_packages="libtasn1-3" |
| 63 trusty_specific_packages="libtasn1-6" |
| 64 |
| 65 ubuntu_release=$(lsb_release -cs) |
| 66 |
| 67 if test "$ubuntu_release" = "precise" ; then |
| 68 packages="$common_packages $precise_specific_packages" |
| 69 else |
| 70 packages="$common_packages $trusty_specific_packages" |
| 71 fi |
| 72 |
| 73 echo $packages |
| 74 sudo apt-get build-dep -y $packages |
13 | 75 |
14 # Extra build deps for pulseaudio, which apt-get build-dep may fail to install | 76 # Extra build deps for pulseaudio, which apt-get build-dep may fail to install |
15 # for reasons which are not entirely clear. | 77 # for reasons which are not entirely clear. |
16 sudo apt-get install libltdl3-dev libjson0-dev \ | 78 sudo apt-get install libltdl3-dev libjson0-dev \ |
17 libsndfile1-dev libspeexdsp-dev \ | 79 libsndfile1-dev libspeexdsp-dev \ |
18 chrpath -y # Chrpath is required by fix_rpaths.sh. | 80 chrpath -y # Chrpath is required by fix_rpaths.sh. |
OLD | NEW |