OLD | NEW |
(Empty) | |
| 1 #!/bin/bash -e |
| 2 |
| 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 |
| 5 # found in the LICENSE file. |
| 6 |
| 7 # Script to install SDKs needed to build chromium on android. |
| 8 # See http://code.google.com/p/chromium/wiki/AndroidBuildInstructions |
| 9 |
| 10 echo 'checking for sdk packages install' |
| 11 # Use absolute path to call 'android' so script can be run from any directory. |
| 12 cwd=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
| 13 # Get the SDK extras packages to install from the DEPS file 'sdkextras' hook. |
| 14 packages="$(python ${cwd}/get_sdk_extras_packages.py)" |
| 15 if [[ -n "${packages}" ]]; then |
| 16 ${cwd}/../third_party/android_tools/sdk/tools/android update sdk --no-ui \ |
| 17 --filter ${packages} |
| 18 fi |
| 19 |
| 20 echo "install-android-sdks.sh complete." |
OLD | NEW |