| 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 # Sets up environment for building Chromium on Android. It can either be | 7 # Sets up environment for building Chromium on Android. It can either be |
| 8 # compiled with the Android tree or using the Android SDK/NDK. To build with | 8 # compiled with the Android tree or using the Android SDK/NDK. To build with |
| 9 # NDK/SDK: ". build/android/envsetup.sh --sdk". Environment variable | 9 # NDK/SDK: ". build/android/envsetup.sh --sdk". Environment variable |
| 10 # ANDROID_SDK_BUILD=1 will then be defined and used in the rest of the setup to | 10 # ANDROID_SDK_BUILD=1 will then be defined and used in the rest of the setup to |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 export ANDROID_GOMA_WRAPPER | 96 export ANDROID_GOMA_WRAPPER |
| 97 | 97 |
| 98 export CC_target=$(basename ${ANDROID_TOOLCHAIN}/*-gcc) | 98 export CC_target=$(basename ${ANDROID_TOOLCHAIN}/*-gcc) |
| 99 export CXX_target=$(basename ${ANDROID_TOOLCHAIN}/*-g++) | 99 export CXX_target=$(basename ${ANDROID_TOOLCHAIN}/*-g++) |
| 100 export LINK_target=$(basename ${ANDROID_TOOLCHAIN}/*-gcc) | 100 export LINK_target=$(basename ${ANDROID_TOOLCHAIN}/*-gcc) |
| 101 export AR_target=$(basename ${ANDROID_TOOLCHAIN}/*-ar) | 101 export AR_target=$(basename ${ANDROID_TOOLCHAIN}/*-ar) |
| 102 | 102 |
| 103 # Performs a gyp_chromium run to convert gyp->Makefile for android code. | 103 # Performs a gyp_chromium run to convert gyp->Makefile for android code. |
| 104 android_gyp() { | 104 android_gyp() { |
| 105 echo "GYP_GENERATORS set to '$GYP_GENERATORS'" | 105 echo "GYP_GENERATORS set to '$GYP_GENERATORS'" |
| 106 if [[ $GYP_DEFINES =~ "clang=1" ]]; then | |
| 107 echo -n "NOTE: You have \`clang=1' in \$GYP_DEFINES; " | |
| 108 echo "did you mean to run \`android_clang_gyp'?" | |
| 109 fi | |
| 110 | |
| 111 "${CHROME_SRC}/build/gyp_chromium" --depth="${CHROME_SRC}" --check "$@" | 106 "${CHROME_SRC}/build/gyp_chromium" --depth="${CHROME_SRC}" --check "$@" |
| 112 } | 107 } |
| 113 | 108 |
| 114 # FLOCK needs to be null on system that has no flock | 109 # FLOCK needs to be null on system that has no flock |
| 115 which flock > /dev/null || export FLOCK= | 110 which flock > /dev/null || export FLOCK= |
| OLD | NEW |