| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 # arm cross toolchain packages needed to build chrome on armhf | 140 # arm cross toolchain packages needed to build chrome on armhf |
| 141 arm_list="libc6-dev-armhf-cross | 141 arm_list="libc6-dev-armhf-cross |
| 142 linux-libc-dev-armhf-cross | 142 linux-libc-dev-armhf-cross |
| 143 g++-arm-linux-gnueabihf" | 143 g++-arm-linux-gnueabihf" |
| 144 | 144 |
| 145 # Packages to build NaCl, its toolchains, and its ports. | 145 # Packages to build NaCl, its toolchains, and its ports. |
| 146 nacl_list="autoconf bison cmake g++-mingw-w64-i686 gawk lib32z1-dev | 146 nacl_list="autoconf bison cmake g++-mingw-w64-i686 gawk lib32z1-dev |
| 147 libasound2:i386 libcap2:i386 libelf-dev:i386 libexif12:i386 | 147 libasound2:i386 libcap2:i386 libelf-dev:i386 libexif12:i386 |
| 148 libfontconfig1:i386 libgconf-2-4:i386 libglib2.0-0:i386 libgpm2:i386 | 148 libfontconfig1:i386 libgconf-2-4:i386 libglib2.0-0:i386 libgpm2:i386 |
| 149 libgtk2.0-0:i386 libncurses5:i386 lib32ncurses5-dev | 149 libgtk2.0-0:i386 libncurses5:i386 lib32ncurses5-dev |
| 150 libnss3:i386 libpango1.0-0:i386 | 150 libnss3:i386 libpango1.0-0:i386 xsltproc ant |
| 151 libssl0.9.8:i386 libtinfo-dev libtinfo-dev:i386 libtool | 151 libssl0.9.8:i386 libtinfo-dev libtinfo-dev:i386 libtool |
| 152 libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxi6:i386 | 152 libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxi6:i386 |
| 153 libxrandr2:i386 libxss1:i386 libxtst6:i386 texinfo xvfb" | 153 libxrandr2:i386 libxss1:i386 libxtst6:i386 texinfo xvfb" |
| 154 | 154 |
| 155 # Find the proper version of libgbm-dev. We can't just install libgbm-dev as | 155 # Find the proper version of libgbm-dev. We can't just install libgbm-dev as |
| 156 # it depends on mesa, and only one version of mesa can exists on the system. | 156 # it depends on mesa, and only one version of mesa can exists on the system. |
| 157 # Hence we must match the same version or this entire script will fail. | 157 # Hence we must match the same version or this entire script will fail. |
| 158 mesa_variant="" | 158 mesa_variant="" |
| 159 for variant in "-lts-quantal" "-lts-raring" "-lts-saucy"; do | 159 for variant in "-lts-quantal" "-lts-raring" "-lts-saucy"; do |
| 160 if $(dpkg-query -Wf'${Status}' libgl1-mesa-glx${variant} | \ | 160 if $(dpkg-query -Wf'${Status}' libgl1-mesa-glx${variant} | \ |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 sed -e 's/[.]so[.][0-9].*/.so/' | | 611 sed -e 's/[.]so[.][0-9].*/.so/' | |
| 612 sort -u); do | 612 sort -u); do |
| 613 [ "x${i##*/}" = "xld-linux.so" ] && continue | 613 [ "x${i##*/}" = "xld-linux.so" ] && continue |
| 614 [ -r "$i" ] && continue | 614 [ -r "$i" ] && continue |
| 615 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 615 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
| 616 sort -n | tail -n 1)" | 616 sort -n | tail -n 1)" |
| 617 [ -r "$i.$j" ] || continue | 617 [ -r "$i.$j" ] || continue |
| 618 sudo ln -s "${i##*/}.$j" "$i" | 618 sudo ln -s "${i##*/}.$j" "$i" |
| 619 done | 619 done |
| 620 fi | 620 fi |
| OLD | NEW |