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 28 matching lines...) Expand all Loading... | |
39 sudo apt-get -f install | 39 sudo apt-get -f install |
40 | 40 |
41 # Install deps | 41 # Install deps |
42 # This step differs depending on what Ubuntu release we are running | 42 # This step differs depending on what Ubuntu release we are running |
43 # on since the package names are different, and Sun's Java must | 43 # on since the package names are different, and Sun's Java must |
44 # be installed manually on late-model versions. | 44 # be installed manually on late-model versions. |
45 | 45 |
46 # common | 46 # common |
47 sudo apt-get -y install lighttpd python-pexpect xvfb x11-utils | 47 sudo apt-get -y install lighttpd python-pexpect xvfb x11-utils |
48 | 48 |
49 # Few binaries in the Android SDK require 32-bit libraries on the host. | |
50 sudo apt-get install -qq --assume-yes lib32z1 g++-multilib | |
Isaac (away)
2013/08/09 01:57:27
why use different apt-get options here?
Siva Chandra
2013/08/09 20:35:47
I used the options which were used in install-buil
| |
51 | |
49 if /usr/bin/lsb_release -r -s | grep -q "12."; then | 52 if /usr/bin/lsb_release -r -s | grep -q "12."; then |
50 # Ubuntu 12.x | 53 # Ubuntu 12.x |
51 sudo apt-get -y install ant | 54 sudo apt-get -y install ant |
52 | 55 |
53 # Java can not be installed via ppa on Ubuntu 12.04+ so we'll | 56 # Java can not be installed via ppa on Ubuntu 12.04+ so we'll |
54 # simply check to see if it has been setup properly -- if not | 57 # simply check to see if it has been setup properly -- if not |
55 # let the user know. | 58 # let the user know. |
56 | 59 |
57 if ! java -version 2>&1 | grep -q "Java(TM)"; then | 60 if ! java -version 2>&1 | grep -q "Java(TM)"; then |
58 echo "****************************************************************" | 61 echo "****************************************************************" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
92 then | 95 then |
93 # If there are non-javaplugin.so errors, treat as errors and exit | 96 # If there are non-javaplugin.so errors, treat as errors and exit |
94 echo 'ERRORS: Failed to update alternatives for java-6-sun:' | 97 echo 'ERRORS: Failed to update alternatives for java-6-sun:' |
95 grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out | 98 grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out |
96 exit 1 | 99 exit 1 |
97 fi | 100 fi |
98 fi | 101 fi |
99 fi | 102 fi |
100 | 103 |
101 echo "install-build-deps-android.sh complete." | 104 echo "install-build-deps-android.sh complete." |
OLD | NEW |