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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 libxdmcp6-dbg libxext6-dbg libxfixes3-dbg libxi6-dbg libxinerama1-dbg | 135 libxdmcp6-dbg libxext6-dbg libxfixes3-dbg libxi6-dbg libxinerama1-dbg |
136 libxrandr2-dbg libxrender1-dbg libxtst6-dbg zlib1g-dbg | 136 libxrandr2-dbg libxrender1-dbg libxtst6-dbg zlib1g-dbg |
137 libstdc++6-4.6-dbg" | 137 libstdc++6-4.6-dbg" |
138 | 138 |
139 # arm cross toolchain packages needed to build chrome on armhf | 139 # arm cross toolchain packages needed to build chrome on armhf |
140 arm_list="libc6-dev-armhf-cross | 140 arm_list="libc6-dev-armhf-cross |
141 linux-libc-dev-armhf-cross | 141 linux-libc-dev-armhf-cross |
142 g++-arm-linux-gnueabihf" | 142 g++-arm-linux-gnueabihf" |
143 | 143 |
144 # Packages to build NaCl, its toolchains, and its ports. | 144 # Packages to build NaCl, its toolchains, and its ports. |
145 nacl_list="autoconf bison cmake g++-mingw-w64-i686 gawk lib32z1-dev | 145 naclports_list="ant autoconf bison cmake gawk intltool xutils-dev xsltproc" |
| 146 nacl_list="g++-mingw-w64-i686 lib32z1-dev |
146 libasound2:i386 libcap2:i386 libelf-dev:i386 libexif12:i386 | 147 libasound2:i386 libcap2:i386 libelf-dev:i386 libexif12:i386 |
147 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 |
148 libgtk2.0-0:i386 libncurses5:i386 lib32ncurses5-dev | 149 libgtk2.0-0:i386 libncurses5:i386 lib32ncurses5-dev |
149 libnss3:i386 libpango1.0-0:i386 xsltproc ant | 150 libnss3:i386 libpango1.0-0:i386 |
150 libssl0.9.8:i386 libtinfo-dev libtinfo-dev:i386 libtool | 151 libssl0.9.8:i386 libtinfo-dev libtinfo-dev:i386 libtool |
151 libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxi6:i386 | 152 libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxi6:i386 |
152 libxrandr2:i386 libxss1:i386 libxtst6:i386 texinfo xvfb" | 153 libxrandr2:i386 libxss1:i386 libxtst6:i386 texinfo xvfb |
| 154 ${naclports_list}" |
153 | 155 |
154 # Find the proper version of libgbm-dev. We can't just install libgbm-dev as | 156 # Find the proper version of libgbm-dev. We can't just install libgbm-dev as |
155 # it depends on mesa, and only one version of mesa can exists on the system. | 157 # it depends on mesa, and only one version of mesa can exists on the system. |
156 # Hence we must match the same version or this entire script will fail. | 158 # Hence we must match the same version or this entire script will fail. |
157 mesa_variant="" | 159 mesa_variant="" |
158 for variant in "-lts-quantal" "-lts-raring" "-lts-saucy" "-lts-trusty"; do | 160 for variant in "-lts-quantal" "-lts-raring" "-lts-saucy" "-lts-trusty"; do |
159 if $(dpkg-query -Wf'${Status}' libgl1-mesa-glx${variant} | \ | 161 if $(dpkg-query -Wf'${Status}' libgl1-mesa-glx${variant} | \ |
160 grep -q " ok installed"); then | 162 grep -q " ok installed"); then |
161 mesa_variant="${variant}" | 163 mesa_variant="${variant}" |
162 fi | 164 fi |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 echo "Installing symbolic links for NaCl." | 399 echo "Installing symbolic links for NaCl." |
398 if [ ! -r /usr/lib/i386-linux-gnu/libcrypto.so ]; then | 400 if [ ! -r /usr/lib/i386-linux-gnu/libcrypto.so ]; then |
399 sudo ln -fs libcrypto.so.0.9.8 /usr/lib/i386-linux-gnu/libcrypto.so | 401 sudo ln -fs libcrypto.so.0.9.8 /usr/lib/i386-linux-gnu/libcrypto.so |
400 fi | 402 fi |
401 if [ ! -r /usr/lib/i386-linux-gnu/libssl.so ]; then | 403 if [ ! -r /usr/lib/i386-linux-gnu/libssl.so ]; then |
402 sudo ln -fs libssl.so.0.9.8 /usr/lib/i386-linux-gnu/libssl.so | 404 sudo ln -fs libssl.so.0.9.8 /usr/lib/i386-linux-gnu/libssl.so |
403 fi | 405 fi |
404 else | 406 else |
405 echo "Skipping symbolic links for NaCl." | 407 echo "Skipping symbolic links for NaCl." |
406 fi | 408 fi |
OLD | NEW |