| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 # Sets up environment for building Chromium on Android. | 6 # Sets up environment for building Chromium on Android. |
| 7 | 7 |
| 8 # Make sure we're being sourced (possibly by another script). Check for bash | 8 # Make sure we're being sourced (possibly by another script). Check for bash |
| 9 # since zsh sets $0 when sourcing. | 9 # since zsh sets $0 when sourcing. |
| 10 if [[ -n "$BASH_VERSION" && "${BASH_SOURCE:-$0}" == "$0" ]]; then | 10 if [[ -n "$BASH_VERSION" && "${BASH_SOURCE:-$0}" == "$0" ]]; then |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 fi | 41 fi |
| 42 | 42 |
| 43 # Add Android SDK tools to system path. | 43 # Add Android SDK tools to system path. |
| 44 export PATH=$PATH:${ANDROID_SDK_ROOT}/tools | 44 export PATH=$PATH:${ANDROID_SDK_ROOT}/tools |
| 45 export PATH=$PATH:${ANDROID_SDK_ROOT}/platform-tools | 45 export PATH=$PATH:${ANDROID_SDK_ROOT}/platform-tools |
| 46 | 46 |
| 47 # Add Chromium Android development scripts to system path. | 47 # Add Chromium Android development scripts to system path. |
| 48 # Must be after CHROME_SRC is set. | 48 # Must be after CHROME_SRC is set. |
| 49 export PATH=$PATH:${CHROME_SRC}/build/android | 49 export PATH=$PATH:${CHROME_SRC}/build/android |
| 50 | 50 |
| 51 if [[ -n "$CHROME_ANDROID_OFFICIAL_BUILD" ]]; then | |
| 52 # These defines are used by various chrome build scripts to tag the binary's | |
| 53 # version string as 'official' in linux builds (e.g. in | |
| 54 # chrome/trunk/src/chrome/tools/build/version.py). | |
| 55 export OFFICIAL_BUILD=1 | |
| 56 export CHROMIUM_BUILD="_google_chrome" | |
| 57 export CHROME_BUILD_TYPE="_official" | |
| 58 fi | |
| 59 | |
| 60 android_gyp() { | 51 android_gyp() { |
| 61 echo "Please call build/gyp_chromium instead. android_gyp is going away." | 52 echo "Please call build/gyp_chromium instead. android_gyp is going away." |
| 62 "${CHROME_SRC}/build/gyp_chromium" --depth="${CHROME_SRC}" --check "$@" | 53 "${CHROME_SRC}/build/gyp_chromium" --depth="${CHROME_SRC}" --check "$@" |
| 63 } | 54 } |
| OLD | NEW |