Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(498)

Unified Diff: platform_tools/android/bin/android_setup.sh

Issue 260743003: Run Android make script from any directory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « platform_tools/android/bin/android_make ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: platform_tools/android/bin/android_setup.sh
diff --git a/platform_tools/android/bin/android_setup.sh b/platform_tools/android/bin/android_setup.sh
index 38e047cc1f4c982961a01a8e3379d85b4113bc5d..d7d75f9067dc25987950fbabd27d00fedc91869c 100755
--- a/platform_tools/android/bin/android_setup.sh
+++ b/platform_tools/android/bin/android_setup.sh
@@ -146,9 +146,11 @@ setup_device() {
source $SCRIPT_DIR/utils/setup_toolchain.sh
DEFINES="${DEFINES} android_toolchain=${TOOLCHAIN_TYPE}"
-
exportVar GYP_DEFINES "$DEFINES $GYP_DEFINES"
- exportVar SKIA_OUT "${SKIA_OUT:-out/config/android-${TARGET_DEVICE}}"
+
+ SKIA_SRC_DIR=$(cd "${SCRIPT_DIR}/../../.."; pwd)
+ DEFAULT_SKIA_OUT="${SKIA_SRC_DIR}/out/config/android-${TARGET_DEVICE}"
+ exportVar SKIA_OUT "${SKIA_OUT:-${DEFAULT_SKIA_OUT}}"
}
# adb_pull_if_needed(android_src, host_dst)
« no previous file with comments | « platform_tools/android/bin/android_make ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698