Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: build/android/envsetup.sh

Issue 9852004: Revert 128679 - Speculative revert. xcodebuilders hosed between r128678 - 128680 in GYP phse, this … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/all_android.gyp ('k') | build/android/run_tests.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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. Only Android NDK, 7 # Sets up environment for building Chromium on Android. Only Android NDK,
8 # Revision 6b on Linux or Mac is offically supported. 8 # Revision 6b on Linux or Mac is offically supported.
9 # 9 #
10 # To run this script, the system environment ANDROID_NDK_ROOT must be set 10 # To run this script, the system environment ANDROID_NDK_ROOT must be set
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 ;; 42 ;;
43 *) 43 *)
44 echo "Host platform ${host_os} is not supported" >& 2 44 echo "Host platform ${host_os} is not supported" >& 2
45 return 1 45 return 1
46 esac 46 esac
47 47
48 export ANDROID_TOOLCHAIN="${ANDROID_NDK_ROOT}/toolchains/arm-linux-androideabi-4 .4.3/prebuilt/${toolchain_dir}/bin/" 48 export ANDROID_TOOLCHAIN="${ANDROID_NDK_ROOT}/toolchains/arm-linux-androideabi-4 .4.3/prebuilt/${toolchain_dir}/bin/"
49 49
50 export ANDROID_SDK_VERSION="15" 50 export ANDROID_SDK_VERSION="15"
51 51
52 # Add Android SDK/NDK tools to system path. 52 # Add Android SDK's platform-tools to system path.
53 export PATH=$PATH:${ANDROID_NDK_ROOT} 53 export PATH="${PATH}:${ANDROID_SDK_ROOT}/platform-tools/"
54 export PATH=$PATH:${ANDROID_SDK_ROOT}/tools
55 export PATH=$PATH:${ANDROID_SDK_ROOT}/platform-tools
56
57 54
58 if [ ! -d "${ANDROID_TOOLCHAIN}" ]; then 55 if [ ! -d "${ANDROID_TOOLCHAIN}" ]; then
59 echo "Can not find Android toolchain in ${ANDROID_TOOLCHAIN}." >& 2 56 echo "Can not find Android toolchain in ${ANDROID_TOOLCHAIN}." >& 2
60 echo "The NDK version might be wrong." >& 2 57 echo "The NDK version might be wrong." >& 2
61 return 1 58 return 1
62 fi 59 fi
63 60
64 if [ -z "${CHROME_SRC}" ]; then 61 if [ -z "${CHROME_SRC}" ]; then
65 # If $CHROME_SRC was not set, assume current directory is CHROME_SRC. 62 # If $CHROME_SRC was not set, assume current directory is CHROME_SRC.
66 export CHROME_SRC=$(readlink -f .) 63 export CHROME_SRC=$(readlink -f .)
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 export GYP_DEFINES="${DEFINES}" 127 export GYP_DEFINES="${DEFINES}"
131 128
132 # Use the "android" flavor of the Makefile generator for both Linux and OS X. 129 # Use the "android" flavor of the Makefile generator for both Linux and OS X.
133 export GYP_GENERATORS="make-android" 130 export GYP_GENERATORS="make-android"
134 131
135 # Use our All target as the default 132 # Use our All target as the default
136 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" 133 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All"
137 134
138 # We want to use our version of "all" targets. 135 # We want to use our version of "all" targets.
139 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android.gyp" 136 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android.gyp"
OLDNEW
« no previous file with comments | « build/all_android.gyp ('k') | build/android/run_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698