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

Unified Diff: build/android/envsetup.sh

Issue 10511019: Fix gyp on Android called by gclient or makefile regen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed a typo Created 8 years, 6 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 | « no previous file | build/common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/envsetup.sh
diff --git a/build/android/envsetup.sh b/build/android/envsetup.sh
index 756c27b8b9dc7f499387796cc76d5ac563ff6410..05cd6d79bd819bbecffb44ebe80123fb0c75a114 100755
--- a/build/android/envsetup.sh
+++ b/build/android/envsetup.sh
@@ -115,18 +115,19 @@ fi
# Must be after CHROME_SRC is set.
export PATH=$PATH:${CHROME_SRC}/build/android
+ANDROID_GOMA_WRAPPER=""
+if [[ -d $GOMA_DIR ]]; then
+ ANDROID_GOMA_WRAPPER="$GOMA_DIR/gomacc"
+fi
+export ANDROID_GOMA_WRAPPER
+
+export CC_target=$(basename ${ANDROID_TOOLCHAIN}/*-gcc)
+export CXX_target=$(basename ${ANDROID_TOOLCHAIN}/*-g++)
+export LINK_target=$(basename ${ANDROID_TOOLCHAIN}/*-gcc)
+export AR_target=$(basename ${ANDROID_TOOLCHAIN}/*-ar)
+
# Performs a gyp_chromium run to convert gyp->Makefile for android code.
android_gyp() {
- ANDROID_GOMA_WRAPPER=""
- if [[ -d $GOMA_DIR ]]; then
- ANDROID_GOMA_WRAPPER="$GOMA_DIR/gomacc"
- fi
- # Ninja requires "*_target" for target builds.
- ANDROID_GOMA_WRAPPER=${ANDROID_GOMA_WRAPPER} \
- CC_target=$(basename ${ANDROID_TOOLCHAIN}/*-gcc) \
- CXX_target=$(basename ${ANDROID_TOOLCHAIN}/*-g++) \
- LINK_target=$(basename ${ANDROID_TOOLCHAIN}/*-gcc) \
- AR_target=$(basename ${ANDROID_TOOLCHAIN}/*-ar) \
"${CHROME_SRC}/build/gyp_chromium" --depth="${CHROME_SRC}" "$@"
}
« no previous file with comments | « no previous file | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698