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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
314 DEFINES+=" android_sdk=\$(PWD)/${ANDROID_SDK}" | 314 DEFINES+=" android_sdk=\$(PWD)/${ANDROID_SDK}" |
315 DEFINES+=" android_sdk_root=\$(PWD)/${ANDROID_SDK}" | 315 DEFINES+=" android_sdk_root=\$(PWD)/${ANDROID_SDK}" |
316 DEFINES+=" android_sdk_tools=\$(PWD)/${ANDROID_SDK_TOOLS}" | 316 DEFINES+=" android_sdk_tools=\$(PWD)/${ANDROID_SDK_TOOLS}" |
317 DEFINES+=" android_sdk_version=${ANDROID_SDK_VERSION}" | 317 DEFINES+=" android_sdk_version=${ANDROID_SDK_VERSION}" |
318 DEFINES+=" android_toolchain=${ANDROID_TOOLCHAIN}" | 318 DEFINES+=" android_toolchain=${ANDROID_TOOLCHAIN}" |
319 if [[ -n "$CHROME_ANDROID_WEBVIEW_ENABLE_DMPROF" ]]; then | 319 if [[ -n "$CHROME_ANDROID_WEBVIEW_ENABLE_DMPROF" ]]; then |
320 DEFINES+=" disable_debugallocation=1" | 320 DEFINES+=" disable_debugallocation=1" |
321 DEFINES+=" android_full_debug=1" | 321 DEFINES+=" android_full_debug=1" |
322 DEFINES+=" android_use_tcmalloc=1" | 322 DEFINES+=" android_use_tcmalloc=1" |
323 fi | 323 fi |
324 if [[ -n "$CHROME_ANDROID_WEBVIEW_OFFICIAL_BUILD" ]]; then | |
boliu
2013/12/19 19:45:24
I tried just re-using CHROME_ANDROID_OFFICIAL_BUIL
Nico
2014/01/13 19:55:58
What's the problem with this? All the desktop chro
| |
325 DEFINES+=" logging_like_official_build=1" | |
326 DEFINES+=" tracing_like_official_build=1" | |
327 fi | |
324 export GYP_DEFINES="${DEFINES}" | 328 export GYP_DEFINES="${DEFINES}" |
325 | 329 |
326 export GYP_GENERATORS="android" | 330 export GYP_GENERATORS="android" |
327 | 331 |
328 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" | 332 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" |
329 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" | 333 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" |
330 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" | 334 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" |
331 | 335 |
332 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp" | 336 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp" |
333 } | 337 } |
OLD | NEW |