| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # This script runs gyp with the configuration required to build WebView in the | 7 # This script runs gyp with the configuration required to build WebView in the |
| 8 # Android build system. It is not necessary to source build/android/envsetup.sh | 8 # Android build system. It is not necessary to source build/android/envsetup.sh |
| 9 # before running this script. | 9 # before running this script. |
| 10 | 10 |
| 11 set -e | 11 set -e |
| 12 | 12 |
| 13 PLATFORM=${1:-linux-arm} | 13 PLATFORM=${1:-linux-arm} |
| 14 echo "Generating makefiles for $PLATFORM" | 14 echo "Generating makefiles for $PLATFORM" |
| 15 | 15 |
| 16 export PYTHONDONTWRITEBYTECODE=1 | 16 export PYTHONDONTWRITEBYTECODE=1 |
| 17 | 17 |
| 18 # Override the calling user's locale sort order as this affects the generated |
| 19 # makefiles. |
| 20 export LC_COLLATE=C |
| 21 |
| 18 CHROME_SRC="$(readlink -f "$(dirname "$0")/../..")" | 22 CHROME_SRC="$(readlink -f "$(dirname "$0")/../..")" |
| 19 GYP="${CHROME_SRC}/build/gyp_chromium" | 23 GYP="${CHROME_SRC}/build/gyp_chromium" |
| 20 | 24 |
| 21 # Use the latest API in the AOSP prebuilts directory (change with AOSP roll). | 25 # Use the latest API in the AOSP prebuilts directory (change with AOSP roll). |
| 22 android_sdk_version=18 | 26 android_sdk_version=18 |
| 23 | 27 |
| 24 # For the WebView build we always use the SDK in the Android tree. | 28 # For the WebView build we always use the SDK in the Android tree. |
| 25 export ANDROID_SDK_ROOT=${ANDROID_BUILD_TOP}/prebuilts/sdk/\ | 29 export ANDROID_SDK_ROOT=${ANDROID_BUILD_TOP}/prebuilts/sdk/\ |
| 26 ${android_sdk_version} | 30 ${android_sdk_version} |
| 27 | 31 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 if [ "$PLATFORM" == "${host_platform}-x86" -o "$PLATFORM" == "all" ]; then | 75 if [ "$PLATFORM" == "${host_platform}-x86" -o "$PLATFORM" == "all" ]; then |
| 72 ${GYP} --suffix .${host_platform}-x86 ${EFLAGS} -Dtarget_arch=ia32 | 76 ${GYP} --suffix .${host_platform}-x86 ${EFLAGS} -Dtarget_arch=ia32 |
| 73 fi | 77 fi |
| 74 if [ "$PLATFORM" == "${host_platform}-x86_64" -o "$PLATFORM" == "all" ]; then | 78 if [ "$PLATFORM" == "${host_platform}-x86_64" -o "$PLATFORM" == "all" ]; then |
| 75 ${GYP} --suffix .${host_platform}-x86_64 ${EFLAGS} -Dtarget_arch=x64 | 79 ${GYP} --suffix .${host_platform}-x86_64 ${EFLAGS} -Dtarget_arch=x64 |
| 76 fi | 80 fi |
| 77 if [ "$PLATFORM" == "${host_platform}-mips" -o "$PLATFORM" == "all" ]; then | 81 if [ "$PLATFORM" == "${host_platform}-mips" -o "$PLATFORM" == "all" ]; then |
| 78 ${GYP} --suffix .${host_platform}-mips ${EFLAGS} -Dtarget_arch=mipsel | 82 ${GYP} --suffix .${host_platform}-mips ${EFLAGS} -Dtarget_arch=mipsel |
| 79 fi | 83 fi |
| 80 done | 84 done |
| OLD | NEW |