OLD | NEW |
---|---|
1 #!/bin/bash -e | 1 #!/bin/bash -e |
2 | 2 |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 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 everything needed to build chromium (well, ideally, anyway) | 7 # Script to install everything needed to build chromium (well, ideally, anyway) |
8 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions | 8 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions |
9 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit | 9 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit |
10 | 10 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
99 libxcb1-dbg libxcomposite1-dbg libxcursor1-dbg libxdamage1-dbg | 99 libxcb1-dbg libxcomposite1-dbg libxcursor1-dbg libxdamage1-dbg |
100 libxdmcp6-dbg libxext6-dbg libxfixes3-dbg libxi6-dbg libxinerama1-dbg | 100 libxdmcp6-dbg libxext6-dbg libxfixes3-dbg libxi6-dbg libxinerama1-dbg |
101 libxrandr2-dbg libxrender1-dbg libxtst6-dbg zlib1g-dbg" | 101 libxrandr2-dbg libxrender1-dbg libxtst6-dbg zlib1g-dbg" |
102 | 102 |
103 # arm cross toolchain packages needed to build chrome on arm | 103 # arm cross toolchain packages needed to build chrome on arm |
104 arm_list="libc6-armel-cross libc6-dev-armel-cross libgcc1-armel-cross | 104 arm_list="libc6-armel-cross libc6-dev-armel-cross libgcc1-armel-cross |
105 libgomp1-armel-cross linux-libc-dev-armel-cross | 105 libgomp1-armel-cross linux-libc-dev-armel-cross |
106 libgcc1-dbg-armel-cross libgomp1-dbg-armel-cross | 106 libgcc1-dbg-armel-cross libgomp1-dbg-armel-cross |
107 binutils-arm-linux-gnueabi cpp-arm-linux-gnueabi | 107 binutils-arm-linux-gnueabi cpp-arm-linux-gnueabi |
108 gcc-arm-linux-gnueabi g++-arm-linux-gnueabi | 108 gcc-arm-linux-gnueabi g++-arm-linux-gnueabi |
109 cpp-4.5-arm-linux-gnueabi gcc-4.5-arm-linux-gnueabi | 109 libmudflap0-dbg-armel-cross" |
iannucci
2012/12/17 19:52:23
Are we sure these AREN'T used? Or are these implic
| |
110 g++-4.5-arm-linux-gnueabi libmudflap0-dbg-armel-cross" | |
111 | 110 |
112 # Plugin lists needed for tests. | 111 # Plugin lists needed for tests. |
113 plugin_list="flashplugin-installer" | 112 plugin_list="flashplugin-installer" |
114 | 113 |
115 # Some package names have changed over time | 114 # Some package names have changed over time |
116 if apt-cache show ttf-mscorefonts-installer >/dev/null 2>&1; then | 115 if apt-cache show ttf-mscorefonts-installer >/dev/null 2>&1; then |
117 dev_list="${dev_list} ttf-mscorefonts-installer" | 116 dev_list="${dev_list} ttf-mscorefonts-installer" |
118 else | 117 else |
119 dev_list="${dev_list} msttcorefonts" | 118 dev_list="${dev_list} msttcorefonts" |
120 fi | 119 fi |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
187 do_inst_syms=1 | 186 do_inst_syms=1 |
188 fi | 187 fi |
189 fi | 188 fi |
190 if test "$do_inst_syms" = "1"; then | 189 if test "$do_inst_syms" = "1"; then |
191 echo "Installing debugging symbols." | 190 echo "Installing debugging symbols." |
192 else | 191 else |
193 echo "Skipping installation of debugging symbols." | 192 echo "Skipping installation of debugging symbols." |
194 dbg_list= | 193 dbg_list= |
195 fi | 194 fi |
196 | 195 |
196 # When cross building for arm on 64-bit systems the host binaries | |
197 # that are part of v8 need to be compiled with -m32 which means | |
198 # that basic multilib support is needed. | |
199 if [ "$(uname -m)" = "x86_64" ]; then | |
200 arm_list="$arm_list g++-multilib" | |
201 fi | |
202 | |
197 if test "$do_inst_arm" = "1"; then | 203 if test "$do_inst_arm" = "1"; then |
198 . /etc/lsb-release | 204 . /etc/lsb-release |
199 if test "$DISTRIB_CODENAME" != "precise"; then | 205 if test "$DISTRIB_CODENAME" != "precise"; then |
200 echo "ERROR: Installing the ARM cross toolchain is only available on" \ | 206 echo "ERROR: Installing the ARM cross toolchain is only available on" \ |
201 "Ubuntu precise." >&2 | 207 "Ubuntu precise." >&2 |
202 exit 1 | 208 exit 1 |
203 fi | 209 fi |
204 echo "Installing ARM cross toolchain." | 210 echo "Installing ARM cross toolchain." |
205 else | 211 else |
206 echo "Skipping installation of ARM cross toolchain." | 212 echo "Skipping installation of ARM cross toolchain." |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
436 sed -e 's/[.]so[.][0-9].*/.so/' | | 442 sed -e 's/[.]so[.][0-9].*/.so/' | |
437 sort -u); do | 443 sort -u); do |
438 [ "x${i##*/}" = "xld-linux.so" ] && continue | 444 [ "x${i##*/}" = "xld-linux.so" ] && continue |
439 [ -r "$i" ] && continue | 445 [ -r "$i" ] && continue |
440 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 446 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
441 sort -n | tail -n 1)" | 447 sort -n | tail -n 1)" |
442 [ -r "$i.$j" ] || continue | 448 [ -r "$i.$j" ] || continue |
443 sudo ln -s "${i##*/}.$j" "$i" | 449 sudo ln -s "${i##*/}.$j" "$i" |
444 done | 450 done |
445 fi | 451 fi |
OLD | NEW |