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 on android that | 7 # Script to install everything needed to build chromium on android that |
| 8 # requires sudo privileges. | 8 # requires sudo privileges. |
| 9 # See http://code.google.com/p/chromium/wiki/AndroidBuildInstructions | 9 # See http://code.google.com/p/chromium/wiki/AndroidBuildInstructions |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 40 # This step differs depending on what Ubuntu release we are running | 40 # This step differs depending on what Ubuntu release we are running |
| 41 # on since the package names are different, and Sun's Java must | 41 # on since the package names are different, and Sun's Java must |
| 42 # be installed manually on late-model versions. | 42 # be installed manually on late-model versions. |
| 43 | 43 |
| 44 # common | 44 # common |
| 45 sudo apt-get -y install lighttpd python-pexpect xvfb x11-utils | 45 sudo apt-get -y install lighttpd python-pexpect xvfb x11-utils |
| 46 | 46 |
| 47 # Few binaries in the Android SDK require 32-bit libraries on the host. | 47 # Few binaries in the Android SDK require 32-bit libraries on the host. |
| 48 sudo apt-get -y install lib32z1 g++-multilib | 48 sudo apt-get -y install lib32z1 g++-multilib |
| 49 | 49 |
| 50 # On Trusty-based systems you can't compile V8's mksnapshot without this one. | |
|
johnme
2014/08/19 13:07:38
Perhaps mention because it's cross-compiling to 32
| |
| 51 # It seems harmless on older Linux releases. | |
| 52 sudo apt-get -y install linux-libc-dev:i386 | |
| 53 | |
| 50 sudo apt-get -y install ant | 54 sudo apt-get -y install ant |
| 51 | 55 |
| 52 # Install openjdk and openjre 7 stuff | 56 # Install openjdk and openjre 7 stuff |
| 53 sudo apt-get -y install openjdk-7-jre openjdk-7-jdk | 57 sudo apt-get -y install openjdk-7-jre openjdk-7-jdk |
| 54 | 58 |
| 55 # Switch version of Java to openjdk 7. | 59 # Switch version of Java to openjdk 7. |
| 56 # Some Java plugins (e.g. for firefox, mozilla) are not required to build, and | 60 # Some Java plugins (e.g. for firefox, mozilla) are not required to build, and |
| 57 # thus are treated only as warnings. Any errors in updating java alternatives | 61 # thus are treated only as warnings. Any errors in updating java alternatives |
| 58 # which are not '*-javaplugin.so' will cause errors and stop the script from | 62 # which are not '*-javaplugin.so' will cause errors and stop the script from |
| 59 # completing successfully. | 63 # completing successfully. |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 73 >& /dev/null | 77 >& /dev/null |
| 74 then | 78 then |
| 75 # If there are non-javaplugin.so errors, treat as errors and exit | 79 # If there are non-javaplugin.so errors, treat as errors and exit |
| 76 echo 'ERRORS: Failed to update alternatives for java-6-sun:' | 80 echo 'ERRORS: Failed to update alternatives for java-6-sun:' |
| 77 grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out | 81 grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out |
| 78 exit 1 | 82 exit 1 |
| 79 fi | 83 fi |
| 80 fi | 84 fi |
| 81 | 85 |
| 82 echo "install-build-deps-android.sh complete." | 86 echo "install-build-deps-android.sh complete." |
| OLD | NEW |