| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 export PATH=$PATH:${ANDROID_NDK_ROOT} | 47 export PATH=$PATH:${ANDROID_NDK_ROOT} |
| 48 export PATH=$PATH:${ANDROID_SDK_ROOT}/tools | 48 export PATH=$PATH:${ANDROID_SDK_ROOT}/tools |
| 49 export PATH=$PATH:${ANDROID_SDK_ROOT}/platform-tools | 49 export PATH=$PATH:${ANDROID_SDK_ROOT}/platform-tools |
| 50 # Must have tools like arm-linux-androideabi-gcc on the path for ninja | 50 # Must have tools like arm-linux-androideabi-gcc on the path for ninja |
| 51 export PATH=$PATH:${ANDROID_TOOLCHAIN} | 51 export PATH=$PATH:${ANDROID_TOOLCHAIN} |
| 52 | 52 |
| 53 # Add Chromium Android development scripts to system path. | 53 # Add Chromium Android development scripts to system path. |
| 54 # Must be after CHROME_SRC is set. | 54 # Must be after CHROME_SRC is set. |
| 55 export PATH=$PATH:${CHROME_SRC}/build/android | 55 export PATH=$PATH:${CHROME_SRC}/build/android |
| 56 | 56 |
| 57 # TODO(beverloo): Remove these once all consumers updated to --strip-binary. |
| 57 export OBJCOPY=$(echo ${ANDROID_TOOLCHAIN}/*-objcopy) | 58 export OBJCOPY=$(echo ${ANDROID_TOOLCHAIN}/*-objcopy) |
| 58 export STRIP=$(echo ${ANDROID_TOOLCHAIN}/*-strip) | 59 export STRIP=$(echo ${ANDROID_TOOLCHAIN}/*-strip) |
| 59 | 60 |
| 60 # The set of GYP_DEFINES to pass to gyp. Use 'readlink -e' on directories | 61 # The set of GYP_DEFINES to pass to gyp. Use 'readlink -e' on directories |
| 61 # to canonicalize them (remove double '/', remove trailing '/', etc). | 62 # to canonicalize them (remove double '/', remove trailing '/', etc). |
| 62 DEFINES="OS=android" | 63 DEFINES="OS=android" |
| 63 DEFINES+=" host_os=${host_os}" | 64 DEFINES+=" host_os=${host_os}" |
| 64 | 65 |
| 65 if [ -n "$CHROME_ANDROID_OFFICIAL_BUILD" ]; then | 66 if [ -n "$CHROME_ANDROID_OFFICIAL_BUILD" ]; then |
| 66 DEFINES+=" branding=Chrome" | 67 DEFINES+=" branding=Chrome" |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 | 277 |
| 277 export GYP_GENERATORS="android" | 278 export GYP_GENERATORS="android" |
| 278 | 279 |
| 279 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" | 280 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" |
| 280 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" | 281 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" |
| 281 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" | 282 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" |
| 282 | 283 |
| 283 # TODO(torne): This isn't upstream yet. Upstream it or remove this setting. | 284 # TODO(torne): This isn't upstream yet. Upstream it or remove this setting. |
| 284 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android_webview.gyp" | 285 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android_webview.gyp" |
| 285 } | 286 } |
| OLD | NEW |