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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 if grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out \ | 77 if grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out \ |
78 >& /dev/null | 78 >& /dev/null |
79 then | 79 then |
80 # If there are non-javaplugin.so errors, treat as errors and exit | 80 # If there are non-javaplugin.so errors, treat as errors and exit |
81 echo 'ERRORS: Failed to update alternatives for java-6-sun:' | 81 echo 'ERRORS: Failed to update alternatives for java-6-sun:' |
82 grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out | 82 grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out |
83 exit 1 | 83 exit 1 |
84 fi | 84 fi |
85 fi | 85 fi |
86 | 86 |
| 87 # Get the SDK extras packages to install from the DEPS file 'sdkextras' hook. |
| 88 packages="$(python -c 'execfile("./get_sdk_extras_packages.py")')" |
| 89 for package in "${packages}"; do |
| 90 package_num=$(../third_party/android_tools/sdk/tools/android list sdk | \ |
| 91 grep -i "$package," | \ |
| 92 awk '/^[ ]*[0-9]*- / {gsub("-",""); print $1}') |
| 93 if [[ -n ${package_num} ]]; then |
| 94 ../third_party/android_tools/sdk/tools/android update sdk --no-ui --filter \ |
| 95 ${package_num} |
| 96 fi |
| 97 done |
| 98 |
87 echo "install-build-deps-android.sh complete." | 99 echo "install-build-deps-android.sh complete." |
OLD | NEW |