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 export CHROME_ANDROID_BUILD_WEBVIEW=1 | 13 export CHROME_ANDROID_BUILD_WEBVIEW=1 |
14 export CHROME_SRC="$(readlink -f "$(dirname "$0")/../..")" | 14 export CHROME_SRC="$(readlink -f "$(dirname "$0")/../..")" |
15 export PYTHONDONTWRITEBYTECODE=1 | 15 export PYTHONDONTWRITEBYTECODE=1 |
16 ( . build/android/envsetup.sh --target-arch=arm --host-os=linux && \ | 16 ( . build/android/envsetup.sh --target-arch=arm --host-os=linux && \ |
17 android_gyp --suffix .linux-arm ) | 17 android_gyp --suffix .linux-arm ) |
18 ( . build/android/envsetup.sh --target-arch=x86 --host-os=linux && \ | 18 ( . build/android/envsetup.sh --target-arch=x86 --host-os=linux && \ |
19 android_gyp --suffix .linux-x86 ) | 19 android_gyp --suffix .linux-x86 ) |
20 #( . build/android/envsetup.sh --target-arch=arm --host-os=mac && \ | 20 ( . build/android/envsetup.sh --target-arch=arm --host-os=mac && \ |
21 # android_gyp --suffix .darwin-arm ) | 21 android_gyp --suffix .darwin-arm ) |
22 #( . build/android/envsetup.sh --target-arch=x86 --host-os=mac && \ | 22 ( . build/android/envsetup.sh --target-arch=x86 --host-os=mac && \ |
23 # android_gyp --suffix .darwin-x86 ) | 23 android_gyp --suffix .darwin-x86 ) |
OLD | NEW |