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

Unified Diff: build/android/envsetup.sh

Issue 8523029: Ensure that WebKit can use envsetup.sh (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove the usage of "we" Created 9 years, 1 month 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 | no next file » | 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 1f0e986c11adfd2eac7a62d040648eeedc428d00..0b053b6eaed2eb5b52b904a76727645d0b15aed1 100644
--- a/build/android/envsetup.sh
+++ b/build/android/envsetup.sh
@@ -75,7 +75,11 @@ make() {
use_ccache_var=""
fi
fi
- if [ -f "$PWD/build/android/envsetup.sh" ]; then
+ # Only cross-compile if the build is being done either from Chromium's src/
+ # directory, or through WebKit, in which case the WEBKIT_ANDROID_BUILD
+ # environment variable will be defined. WebKit uses a different directory.
+ if [ -f "$PWD/build/android/envsetup.sh" ] ||
+ [ -n "${WEBKIT_ANDROID_BUILD}" ]; then
CC="${use_ccache_var}${CROSS_CC}" CXX="${use_ccache_var}${CROSS_CXX}" \
LINK="${CROSS_LINK}" AR="${CROSS_AR}" RANLIB="${CROSS_RANLIB}" \
command make $*
@@ -113,6 +117,7 @@ DEFINES+=" disable_nacl=1"
DEFINES+=" remoting=0"
DEFINES+=" p2p_apis=0"
DEFINES+=" enable_touch_events=1"
+DEFINES+=" build_ffmpegsumo=0"
# TODO(bulach): use "shared_libraries" once the transition from executable
# is over.
DEFINES+=" gtest_target_type=executable"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698