Index: build/install-build-deps-android.sh |
diff --git a/build/install-build-deps-android.sh b/build/install-build-deps-android.sh |
index 1fcf4fb38b5ec9fa39ec4d6a4a51c25983549b7e..cb642d00b5dbab5f1e5717fe7fe0ec7be4bdab9e 100755 |
--- a/build/install-build-deps-android.sh |
+++ b/build/install-build-deps-android.sh |
@@ -84,4 +84,17 @@ then |
fi |
fi |
+# Get the SDK extras packages to install from the DEPS file 'sdkextras' hook. |
+packages="$(python -c 'execfile("./get_sdk_extras_packages.py"); \ |
+ execfile("./../DEPS"); get_sdk_extras(hooks)')" |
+for package in "${packages}"; do |
+ package_num=$(../third_party/android_tools/sdk/tools/android list sdk \ |
+ | grep -i "$package," \ |
+ | awk '/^[ ]*[0-9]*- / {gsub("-",""); print $1}') |
+ if [[ -n ${package_num} ]]; then |
+ ../third_party/android_tools/sdk/tools/android update sdk --no-ui --filter \ |
+ ${package_num} |
+ fi |
+done |
+ |
echo "install-build-deps-android.sh complete." |