diff options
author | torne@chromium.org <torne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-30 15:13:20 +0000 |
---|---|---|
committer | torne@chromium.org <torne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-30 15:13:20 +0000 |
commit | e05a01c2a4cf9c8e844948a5e43962e27a38e23c (patch) | |
tree | 86f5221cf700da0bca32d5d62e2ce1448ca9d02f /android_webview | |
parent | 79733a0d1a57ec3f6a9291056db01c9b52399333 (diff) | |
download | chromium_src-e05a01c2a4cf9c8e844948a5e43962e27a38e23c.zip chromium_src-e05a01c2a4cf9c8e844948a5e43962e27a38e23c.tar.gz chromium_src-e05a01c2a4cf9c8e844948a5e43962e27a38e23c.tar.bz2 |
Android WebView: only make one set of makefiles by default.
When running gyp_webview, only generate the makefiles for one platform
by default instead of all four (by default, linux-arm). This saves time
when testing gyp changes locally. The automerger bot still builds all
makefiles by passing "all" as the platform.
BUG=
R=benm@chromium.org
Review URL: https://codereview.chromium.org/14642007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197371 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview')
-rwxr-xr-x | android_webview/tools/gyp_webview | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/android_webview/tools/gyp_webview b/android_webview/tools/gyp_webview index f9da60f..5f55f09 100755 --- a/android_webview/tools/gyp_webview +++ b/android_webview/tools/gyp_webview @@ -10,14 +10,26 @@ set -e +PLATFORM=${1:-linux-arm} +echo "Generating makefiles for $PLATFORM" + export CHROME_ANDROID_BUILD_WEBVIEW=1 export CHROME_SRC="$(readlink -f "$(dirname "$0")/../..")" export PYTHONDONTWRITEBYTECODE=1 -( . build/android/envsetup.sh --target-arch=arm --host-os=linux && \ - android_gyp --suffix .linux-arm ) -( . build/android/envsetup.sh --target-arch=x86 --host-os=linux && \ - android_gyp --suffix .linux-x86 ) -( . build/android/envsetup.sh --target-arch=arm --host-os=mac && \ - android_gyp --suffix .darwin-arm ) -( . build/android/envsetup.sh --target-arch=x86 --host-os=mac && \ - android_gyp --suffix .darwin-x86 ) + +if [ "$PLATFORM" == "linux-arm" -o "$PLATFORM" == "all" ]; then + ( . build/android/envsetup.sh --target-arch=arm --host-os=linux && \ + android_gyp --suffix .linux-arm ) +fi +if [ "$PLATFORM" == "linux-x86" -o "$PLATFORM" == "all" ]; then + ( . build/android/envsetup.sh --target-arch=x86 --host-os=linux && \ + android_gyp --suffix .linux-x86 ) +fi +if [ "$PLATFORM" == "darwin-arm" -o "$PLATFORM" == "all" ]; then + ( . build/android/envsetup.sh --target-arch=arm --host-os=mac && \ + android_gyp --suffix .darwin-arm ) +fi +if [ "$PLATFORM" == "darwin-x86" -o "$PLATFORM" == "all" ]; then + ( . build/android/envsetup.sh --target-arch=x86 --host-os=mac && \ + android_gyp --suffix .darwin-x86 ) +fi |