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 # TODO(earthdok): find a way to pull the list from the build config. | 9 # TODO(earthdok): find a way to pull the list from the build config. |
10 common_packages="\ | 10 common_packages="\ |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 libxss1 \ | 53 libxss1 \ |
54 libxtst6 \ | 54 libxtst6 \ |
55 nss \ | 55 nss \ |
56 overlay-scrollbar \ | 56 overlay-scrollbar \ |
57 pango1.0 \ | 57 pango1.0 \ |
58 pulseaudio \ | 58 pulseaudio \ |
59 udev \ | 59 udev \ |
60 zlib1g" | 60 zlib1g" |
61 | 61 |
62 precise_specific_packages="libtasn1-3" | 62 precise_specific_packages="libtasn1-3" |
63 trusty_specific_packages="libtasn1-6" | 63 trusty_specific_packages="\ |
| 64 libtasn1-6 \ |
| 65 harfbuzz" |
64 | 66 |
65 ubuntu_release=$(lsb_release -cs) | 67 ubuntu_release=$(lsb_release -cs) |
66 | 68 |
67 if test "$ubuntu_release" = "precise" ; then | 69 if test "$ubuntu_release" = "precise" ; then |
68 packages="$common_packages $precise_specific_packages" | 70 packages="$common_packages $precise_specific_packages" |
69 else | 71 else |
70 packages="$common_packages $trusty_specific_packages" | 72 packages="$common_packages $trusty_specific_packages" |
71 fi | 73 fi |
72 | 74 |
73 echo $packages | 75 echo $packages |
74 sudo apt-get build-dep -y $packages | 76 sudo apt-get build-dep -y $packages |
75 | 77 |
76 # Extra build deps for pulseaudio, which apt-get build-dep may fail to install | 78 # Extra build deps for pulseaudio, which apt-get build-dep may fail to install |
77 # for reasons which are not entirely clear. | 79 # for reasons which are not entirely clear. |
78 sudo apt-get install libltdl3-dev libjson0-dev \ | 80 sudo apt-get install libltdl3-dev libjson0-dev \ |
79 libsndfile1-dev libspeexdsp-dev \ | 81 libsndfile1-dev libspeexdsp-dev \ |
80 chrpath -y # Chrpath is required by fix_rpaths.sh. | 82 chrpath -y # Chrpath is required by fix_rpaths.sh. |
OLD | NEW |