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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 # shared library, libchromeview.so. The file is an order list of section | 99 # shared library, libchromeview.so. The file is an order list of section |
100 # names and the library is linked with option | 100 # names and the library is linked with option |
101 # --section-ordering-file=<orderfile>. The order file is updated by profiling | 101 # --section-ordering-file=<orderfile>. The order file is updated by profiling |
102 # startup after compiling with the order_profiling=1 GYP_DEFINES flag. | 102 # startup after compiling with the order_profiling=1 GYP_DEFINES flag. |
103 ORDER_DEFINES="order_text_section=${CHROME_SRC}/orderfiles/orderfile.out" | 103 ORDER_DEFINES="order_text_section=${CHROME_SRC}/orderfiles/orderfile.out" |
104 | 104 |
105 # The following defines will affect ARM code generation of both C/C++ compiler | 105 # The following defines will affect ARM code generation of both C/C++ compiler |
106 # and V8 mksnapshot. | 106 # and V8 mksnapshot. |
107 case "${TARGET_ARCH}" in | 107 case "${TARGET_ARCH}" in |
108 "arm") | 108 "arm") |
109 DEFINES+=" arm_neon=0 armv7=1 arm_thumb=1 arm_fpu=vfpv3-d16" | |
110 DEFINES+=" arm_neon_optional=1" # Enable dynamic NEON support. | 109 DEFINES+=" arm_neon_optional=1" # Enable dynamic NEON support. |
111 DEFINES+=" ${ORDER_DEFINES}" | 110 DEFINES+=" ${ORDER_DEFINES}" |
112 DEFINES+=" target_arch=arm" | 111 DEFINES+=" target_arch=arm" |
113 ;; | 112 ;; |
114 "x86") | 113 "x86") |
115 # TODO(tedbo): The ia32 build fails on ffmpeg, so we disable it here. | 114 # TODO(tedbo): The ia32 build fails on ffmpeg, so we disable it here. |
116 DEFINES+=" use_libffmpeg=0" | 115 DEFINES+=" use_libffmpeg=0" |
117 | 116 |
118 host_arch=$(uname -m | sed -e \ | 117 host_arch=$(uname -m | sed -e \ |
119 's/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/i86pc/ia32/') | 118 's/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/i86pc/ia32/') |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 export GYP_DEFINES="${DEFINES}" | 295 export GYP_DEFINES="${DEFINES}" |
297 | 296 |
298 export GYP_GENERATORS="android" | 297 export GYP_GENERATORS="android" |
299 | 298 |
300 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" | 299 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" |
301 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" | 300 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" |
302 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" | 301 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" |
303 | 302 |
304 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp" | 303 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp" |
305 } | 304 } |
OLD | NEW |