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, including | 7 # Script to install everything needed to build chromium on android, including |
8 # items requiring sudo privileges. | 8 # items requiring sudo privileges. |
9 # See http://code.google.com/p/chromium/wiki/AndroidBuildInstructions | 9 # See http://code.google.com/p/chromium/wiki/AndroidBuildInstructions |
10 | 10 |
11 # This script installs the sun-java6 packages (bin, jre and jdk). Sun requires | 11 # This script installs the sun-java6 packages (bin, jre and jdk). Sun requires |
12 # a license agreement, so upon installation it will prompt the user. To get | 12 # a license agreement, so upon installation it will prompt the user. To get |
13 # past the curses-based dialog press TAB <ret> TAB <ret> to agree. | 13 # past the curses-based dialog press TAB <ret> TAB <ret> to agree. |
14 | 14 |
15 args="$@" | 15 args="$@" |
16 | 16 |
17 # TODO(dgn) remove this this argument from calls (http://crbug.com/541727) | |
18 if test "$1" = "--skip-sdk-packages"; then | |
19 args="${@:2}" | |
20 fi | |
21 | |
22 if ! uname -m | egrep -q "i686|x86_64"; then | 17 if ! uname -m | egrep -q "i686|x86_64"; then |
23 echo "Only x86 architectures are currently supported" >&2 | 18 echo "Only x86 architectures are currently supported" >&2 |
24 exit | 19 exit |
25 fi | 20 fi |
26 | 21 |
27 # Install first the default Linux build deps. | 22 # Install first the default Linux build deps. |
28 "$(dirname "${BASH_SOURCE[0]}")/install-build-deps.sh" \ | 23 "$(dirname "${BASH_SOURCE[0]}")/install-build-deps.sh" \ |
29 --no-syms --lib32 --no-arm --no-chromeos-fonts --no-nacl --no-prompt "${args}" | 24 --no-syms --lib32 --no-arm --no-chromeos-fonts --no-nacl --no-prompt "${args}" |
30 | 25 |
31 lsb_release=$(lsb_release --codename --short) | 26 lsb_release=$(lsb_release --codename --short) |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 >& /dev/null | 80 >& /dev/null |
86 then | 81 then |
87 # If there are non-javaplugin.so errors, treat as errors and exit | 82 # If there are non-javaplugin.so errors, treat as errors and exit |
88 echo 'ERRORS: Failed to update alternatives for java-6-sun:' | 83 echo 'ERRORS: Failed to update alternatives for java-6-sun:' |
89 grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out | 84 grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out |
90 exit 1 | 85 exit 1 |
91 fi | 86 fi |
92 fi | 87 fi |
93 | 88 |
94 echo "install-build-deps-android.sh complete." | 89 echo "install-build-deps-android.sh complete." |
OLD | NEW |