Chromium Code Reviews| 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 https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_i nstructions.md | 8 # See https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_i nstructions.md |
| 9 | 9 |
| 10 usage() { | 10 usage() { |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 145 elif [ "x$lsb_release" = "xtrusty" ]; then | 145 elif [ "x$lsb_release" = "xtrusty" ]; then |
| 146 dbg_list="${dbg_list} libstdc++6-4.8-dbg" | 146 dbg_list="${dbg_list} libstdc++6-4.8-dbg" |
| 147 else | 147 else |
| 148 dbg_list="${dbg_list} libstdc++6-4.9-dbg" | 148 dbg_list="${dbg_list} libstdc++6-4.9-dbg" |
| 149 fi | 149 fi |
| 150 | 150 |
| 151 # 32-bit libraries needed e.g. to compile V8 snapshot for Android or armhf | 151 # 32-bit libraries needed e.g. to compile V8 snapshot for Android or armhf |
| 152 lib32_list="linux-libc-dev:i386" | 152 lib32_list="linux-libc-dev:i386" |
| 153 | 153 |
| 154 # arm cross toolchain packages needed to build chrome on armhf | 154 # arm cross toolchain packages needed to build chrome on armhf |
| 155 arm_list="libc6-dev-armhf-cross | 155 case $lsb_release in |
| 156 linux-libc-dev-armhf-cross | 156 jessie) |
|
Dirk Pranke
2016/12/06 02:21:20
I think it might be more conventional to use "jess
Tom (Use chromium acct)
2016/12/07 18:29:54
Done.
| |
| 157 g++-arm-linux-gnueabihf" | 157 arm_list="libc6-dev:armhf |
| 158 linux-libc-dev:armhf | |
| 159 g++:armhf" | |
| 160 ;; | |
| 161 *) | |
| 162 arm_list="libc6-dev-armhf-cross | |
| 163 linux-libc-dev-armhf-cross | |
| 164 g++-arm-linux-gnueabihf" | |
| 165 ;; | |
| 166 esac | |
| 158 | 167 |
| 159 # Work around for dependency issue Ubuntu/Trusty: http://crbug.com/435056 | 168 # Work around for dependency issue Ubuntu/Trusty: http://crbug.com/435056 |
| 160 case $lsb_release in | 169 case $lsb_release in |
| 161 trusty) | 170 trusty) |
| 162 arm_list+=" g++-4.8-multilib-arm-linux-gnueabihf | 171 arm_list+=" g++-4.8-multilib-arm-linux-gnueabihf |
| 163 gcc-4.8-multilib-arm-linux-gnueabihf" | 172 gcc-4.8-multilib-arm-linux-gnueabihf" |
| 164 ;; | 173 ;; |
| 165 wily) | 174 wily) |
| 166 arm_list+=" g++-5-multilib-arm-linux-gnueabihf | 175 arm_list+=" g++-5-multilib-arm-linux-gnueabihf |
| 167 gcc-5-multilib-arm-linux-gnueabihf | 176 gcc-5-multilib-arm-linux-gnueabihf |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 397 fi | 406 fi |
| 398 exit 1 | 407 exit 1 |
| 399 fi | 408 fi |
| 400 exit 0 | 409 exit 0 |
| 401 fi | 410 fi |
| 402 | 411 |
| 403 if test "$do_inst_lib32" = "1" || test "$do_inst_nacl" = "1"; then | 412 if test "$do_inst_lib32" = "1" || test "$do_inst_nacl" = "1"; then |
| 404 if [[ ! $lsb_release =~ (precise) ]]; then | 413 if [[ ! $lsb_release =~ (precise) ]]; then |
| 405 sudo dpkg --add-architecture i386 | 414 sudo dpkg --add-architecture i386 |
| 406 fi | 415 fi |
| 416 if [[ $lsb_release = jessie ]]; then | |
| 417 sudo dpkg --add-architecture armhf | |
| 418 fi | |
| 407 fi | 419 fi |
| 408 sudo apt-get update | 420 sudo apt-get update |
| 409 | 421 |
| 410 # We initially run "apt-get" with the --reinstall option and parse its output. | 422 # We initially run "apt-get" with the --reinstall option and parse its output. |
| 411 # This way, we can find all the packages that need to be newly installed | 423 # This way, we can find all the packages that need to be newly installed |
| 412 # without accidentally promoting any packages from "auto" to "manual". | 424 # without accidentally promoting any packages from "auto" to "manual". |
| 413 # We then re-run "apt-get" with just the list of missing packages. | 425 # We then re-run "apt-get" with just the list of missing packages. |
| 414 echo "Finding missing packages..." | 426 echo "Finding missing packages..." |
| 415 # Intentionally leaving $packages unquoted so it's more readable. | 427 # Intentionally leaving $packages unquoted so it's more readable. |
| 416 echo "Packages required: " $packages | 428 echo "Packages required: " $packages |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 491 # only contains libcrypto.so.1.0.0 and not the symlink needed for | 503 # only contains libcrypto.so.1.0.0 and not the symlink needed for |
| 492 # linking (libcrypto.so). | 504 # linking (libcrypto.so). |
| 493 create_library_symlink /lib/i386-linux-gnu/libcrypto.so.1.0.0 \ | 505 create_library_symlink /lib/i386-linux-gnu/libcrypto.so.1.0.0 \ |
| 494 /usr/lib/i386-linux-gnu/libcrypto.so | 506 /usr/lib/i386-linux-gnu/libcrypto.so |
| 495 | 507 |
| 496 create_library_symlink /lib/i386-linux-gnu/libssl.so.1.0.0 \ | 508 create_library_symlink /lib/i386-linux-gnu/libssl.so.1.0.0 \ |
| 497 /usr/lib/i386-linux-gnu/libssl.so | 509 /usr/lib/i386-linux-gnu/libssl.so |
| 498 else | 510 else |
| 499 echo "Skipping symbolic links for NaCl." | 511 echo "Skipping symbolic links for NaCl." |
| 500 fi | 512 fi |
| OLD | NEW |