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 # Defines functions for envsetup.sh which sets up environment for building | 7 # Defines functions for envsetup.sh which sets up environment for building |
8 # Chromium on Android. The build can be either use the Android NDK/SDK or | 8 # Chromium on Android. The build can be either use the Android NDK/SDK or |
9 # android source tree. Each has a unique init function which calls functions | 9 # android source tree. Each has a unique init function which calls functions |
10 # prefixed with "common_" that is common for both environment setups. | 10 # prefixed with "common_" that is common for both environment setups. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 # names and the library is linked with option | 104 # names and the library is linked with option |
105 # --section-ordering-file=<orderfile>. The order file is updated by profiling | 105 # --section-ordering-file=<orderfile>. The order file is updated by profiling |
106 # startup after compiling with the order_profiling=1 GYP_DEFINES flag. | 106 # startup after compiling with the order_profiling=1 GYP_DEFINES flag. |
107 ORDER_DEFINES="order_text_section=${CHROME_SRC}/orderfiles/orderfile.out" | 107 ORDER_DEFINES="order_text_section=${CHROME_SRC}/orderfiles/orderfile.out" |
108 | 108 |
109 # The following defines will affect ARM code generation of both C/C++ compiler | 109 # The following defines will affect ARM code generation of both C/C++ compiler |
110 # and V8 mksnapshot. | 110 # and V8 mksnapshot. |
111 case "${TARGET_ARCH}" in | 111 case "${TARGET_ARCH}" in |
112 "arm") | 112 "arm") |
113 DEFINES+=" arm_neon=0 armv7=1 arm_thumb=1 arm_fpu=vfpv3-d16" | 113 DEFINES+=" arm_neon=0 armv7=1 arm_thumb=1 arm_fpu=vfpv3-d16" |
| 114 DEFINES+=" arm_neon_optional=1" # Enable dynamic NEON support. |
114 DEFINES+=" ${ORDER_DEFINES}" | 115 DEFINES+=" ${ORDER_DEFINES}" |
115 DEFINES+=" target_arch=arm" | 116 DEFINES+=" target_arch=arm" |
116 ;; | 117 ;; |
117 "x86") | 118 "x86") |
118 # TODO(tedbo): The ia32 build fails on ffmpeg, so we disable it here. | 119 # TODO(tedbo): The ia32 build fails on ffmpeg, so we disable it here. |
119 DEFINES+=" use_libffmpeg=0" | 120 DEFINES+=" use_libffmpeg=0" |
120 | 121 |
121 host_arch=$(uname -m | sed -e \ | 122 host_arch=$(uname -m | sed -e \ |
122 's/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/i86pc/ia32/') | 123 's/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/i86pc/ia32/') |
123 DEFINES+=" host_arch=${host_arch}" | 124 DEFINES+=" host_arch=${host_arch}" |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 export GYP_DEFINES="${DEFINES}" | 305 export GYP_DEFINES="${DEFINES}" |
305 | 306 |
306 export GYP_GENERATORS="android" | 307 export GYP_GENERATORS="android" |
307 | 308 |
308 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" | 309 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" |
309 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" | 310 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" |
310 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" | 311 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" |
311 | 312 |
312 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp" | 313 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp" |
313 } | 314 } |
OLD | NEW |