Commit 3b0836d4 authored by peter@chromium.org's avatar peter@chromium.org

Ensure that WebKit can use envsetup.sh

Right now Android's envsetup.sh requires the chdir to be in Chromium's
src directory, whereas this will be different for WebKit. Furthermore,
disabling build_ffmpegsumo will resolve a gyp error in ffmpeg.gyp.

BUG=
TEST=

Review URL: http://codereview.chromium.org/8523029

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110697 0039d316-1c4b-4281-b951-d872f2087c98
parent 1cbaea6d
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment