| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 '${ANDROID_BUILD_TOP}')") | 249 '${ANDROID_BUILD_TOP}')") |
| 250 ;; | 250 ;; |
| 251 esac | 251 esac |
| 252 DEFINES+=" android_webview_build=1" | 252 DEFINES+=" android_webview_build=1" |
| 253 DEFINES+=" android_src=\$(PWD)" | 253 DEFINES+=" android_src=\$(PWD)" |
| 254 DEFINES+=" android_sdk=\$(PWD)/${ANDROID_SDK}" | 254 DEFINES+=" android_sdk=\$(PWD)/${ANDROID_SDK}" |
| 255 DEFINES+=" android_sdk_root=\$(PWD)/${ANDROID_SDK}" | 255 DEFINES+=" android_sdk_root=\$(PWD)/${ANDROID_SDK}" |
| 256 DEFINES+=" android_sdk_tools=\$(PWD)/${ANDROID_SDK_TOOLS}" | 256 DEFINES+=" android_sdk_tools=\$(PWD)/${ANDROID_SDK_TOOLS}" |
| 257 DEFINES+=" android_sdk_version=${ANDROID_SDK_VERSION}" | 257 DEFINES+=" android_sdk_version=${ANDROID_SDK_VERSION}" |
| 258 DEFINES+=" android_toolchain=${ANDROID_TOOLCHAIN}" | 258 DEFINES+=" android_toolchain=${ANDROID_TOOLCHAIN}" |
| 259 if [[ -n "$CHROME_ANDROID_WEBVIEW_ENABLE_DMPROF" ]]; then | |
| 260 DEFINES+=" disable_debugallocation=1" | |
| 261 DEFINES+=" android_full_debug=1" | |
| 262 DEFINES+=" android_use_tcmalloc=1" | |
| 263 fi | |
| 264 if [[ -n "$CHROME_ANDROID_WEBVIEW_OFFICIAL_BUILD" ]]; then | 259 if [[ -n "$CHROME_ANDROID_WEBVIEW_OFFICIAL_BUILD" ]]; then |
| 265 DEFINES+=" logging_like_official_build=1" | 260 DEFINES+=" logging_like_official_build=1" |
| 266 DEFINES+=" tracing_like_official_build=1" | 261 DEFINES+=" tracing_like_official_build=1" |
| 267 fi | 262 fi |
| 268 export GYP_DEFINES="${DEFINES}" | 263 export GYP_DEFINES="${DEFINES}" |
| 269 | 264 |
| 270 export GYP_GENERATORS="android" | 265 export GYP_GENERATORS="android" |
| 271 | 266 |
| 272 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" | 267 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" |
| 273 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" | 268 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" |
| 274 | 269 |
| 275 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp" | 270 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp" |
| 276 } | 271 } |
| OLD | NEW |