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 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 "import os.path, sys; \ | 58 "import os.path, sys; \ |
59 print os.path.relpath( \ | 59 print os.path.relpath( \ |
60 '${ANDROID_SDK_ROOT}/../tools/${host_platform}', \ | 60 '${ANDROID_SDK_ROOT}/../tools/${host_platform}', \ |
61 '${ANDROID_BUILD_TOP}')") | 61 '${ANDROID_BUILD_TOP}')") |
62 EFLAGS=\ | 62 EFLAGS=\ |
63 "${FLAGS} -Dhost_os=${host_os} -Dandroid_sdk_tools=\$(PWD)/${android_sdk_tools}" | 63 "${FLAGS} -Dhost_os=${host_os} -Dandroid_sdk_tools=\$(PWD)/${android_sdk_tools}" |
64 | 64 |
65 if [ "$PLATFORM" == "${host_platform}-arm" -o "$PLATFORM" == "all" ]; then | 65 if [ "$PLATFORM" == "${host_platform}-arm" -o "$PLATFORM" == "all" ]; then |
66 ${GYP} --suffix .${host_platform}-arm ${EFLAGS} -Dtarget_arch=arm | 66 ${GYP} --suffix .${host_platform}-arm ${EFLAGS} -Dtarget_arch=arm |
67 fi | 67 fi |
| 68 if [ "$PLATFORM" == "${host_platform}-arm64" -o "$PLATFORM" == "all" ]; then |
| 69 ${GYP} --suffix .${host_platform}-arm64 ${EFLAGS} -Dtarget_arch=arm64 |
| 70 fi |
68 if [ "$PLATFORM" == "${host_platform}-x86" -o "$PLATFORM" == "all" ]; then | 71 if [ "$PLATFORM" == "${host_platform}-x86" -o "$PLATFORM" == "all" ]; then |
69 ${GYP} --suffix .${host_platform}-x86 ${EFLAGS} -Dtarget_arch=ia32 | 72 ${GYP} --suffix .${host_platform}-x86 ${EFLAGS} -Dtarget_arch=ia32 |
70 fi | 73 fi |
71 if [ "$PLATFORM" == "${host_platform}-x86_64" -o "$PLATFORM" == "all" ]; then | 74 if [ "$PLATFORM" == "${host_platform}-x86_64" -o "$PLATFORM" == "all" ]; then |
72 ${GYP} --suffix .${host_platform}-x86_64 ${EFLAGS} -Dtarget_arch=x64 | 75 ${GYP} --suffix .${host_platform}-x86_64 ${EFLAGS} -Dtarget_arch=x64 |
73 fi | 76 fi |
74 if [ "$PLATFORM" == "${host_platform}-mips" -o "$PLATFORM" == "all" ]; then | 77 if [ "$PLATFORM" == "${host_platform}-mips" -o "$PLATFORM" == "all" ]; then |
75 ${GYP} --suffix .${host_platform}-mips ${EFLAGS} -Dtarget_arch=mipsel | 78 ${GYP} --suffix .${host_platform}-mips ${EFLAGS} -Dtarget_arch=mipsel |
76 fi | 79 fi |
77 done | 80 done |
OLD | NEW |