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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 esac | 290 esac |
291 DEFINES+=" android_webview_build=1" | 291 DEFINES+=" android_webview_build=1" |
292 # temporary until all uses of android_build_type are gone (crbug.com/184431) | 292 # temporary until all uses of android_build_type are gone (crbug.com/184431) |
293 DEFINES+=" android_build_type=1" | 293 DEFINES+=" android_build_type=1" |
294 DEFINES+=" android_src=\$(PWD)" | 294 DEFINES+=" android_src=\$(PWD)" |
295 DEFINES+=" android_sdk=\$(PWD)/${ANDROID_SDK}" | 295 DEFINES+=" android_sdk=\$(PWD)/${ANDROID_SDK}" |
296 DEFINES+=" android_sdk_root=\$(PWD)/${ANDROID_SDK}" | 296 DEFINES+=" android_sdk_root=\$(PWD)/${ANDROID_SDK}" |
297 DEFINES+=" android_sdk_tools=\$(PWD)/${ANDROID_SDK_TOOLS}" | 297 DEFINES+=" android_sdk_tools=\$(PWD)/${ANDROID_SDK_TOOLS}" |
298 DEFINES+=" android_sdk_version=${ANDROID_SDK_VERSION}" | 298 DEFINES+=" android_sdk_version=${ANDROID_SDK_VERSION}" |
299 DEFINES+=" android_toolchain=${ANDROID_TOOLCHAIN}" | 299 DEFINES+=" android_toolchain=${ANDROID_TOOLCHAIN}" |
| 300 if [[ -n "$CHROME_ANDROID_WEBVIEW_ENABLE_DMPROF" ]]; then |
| 301 DEFINES+=" disable_debugallocation=1" |
| 302 DEFINES+=" android_full_debug=1" |
| 303 DEFINES+=" android_use_tcmalloc=1" |
| 304 fi |
300 export GYP_DEFINES="${DEFINES}" | 305 export GYP_DEFINES="${DEFINES}" |
301 | 306 |
302 export GYP_GENERATORS="android" | 307 export GYP_GENERATORS="android" |
303 | 308 |
304 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" | 309 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" |
305 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" |
306 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" | 311 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" |
307 | 312 |
308 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp" | 313 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp" |
309 } | 314 } |
OLD | NEW |