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

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

Issue 9834037: apk-based test runner work. Not enabled yet. This CL is a combination of upstreaming, ndk/ant-ifi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: one more line tweak 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
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's platform-tools to system path. 52 # Add Android SDK/NDK tools to system path.
53 export PATH="${PATH}:${ANDROID_SDK_ROOT}/platform-tools/" 53 export PATH=$PATH:${ANDROID_NDK_ROOT}
54 export PATH=$PATH:${ANDROID_SDK_ROOT}/tools
55 export PATH=$PATH:${ANDROID_SDK_ROOT}/platform-tools
56
54 57
55 if [ ! -d "${ANDROID_TOOLCHAIN}" ]; then 58 if [ ! -d "${ANDROID_TOOLCHAIN}" ]; then
56 echo "Can not find Android toolchain in ${ANDROID_TOOLCHAIN}." >& 2 59 echo "Can not find Android toolchain in ${ANDROID_TOOLCHAIN}." >& 2
57 echo "The NDK version might be wrong." >& 2 60 echo "The NDK version might be wrong." >& 2
58 return 1 61 return 1
59 fi 62 fi
60 63
61 if [ -z "${CHROME_SRC}" ]; then 64 if [ -z "${CHROME_SRC}" ]; then
62 # If $CHROME_SRC was not set, assume current directory is CHROME_SRC. 65 # If $CHROME_SRC was not set, assume current directory is CHROME_SRC.
63 export CHROME_SRC=$(readlink -f .) 66 export CHROME_SRC=$(readlink -f .)
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 export GYP_DEFINES="${DEFINES}" 130 export GYP_DEFINES="${DEFINES}"
128 131
129 # Use the "android" flavor of the Makefile generator for both Linux and OS X. 132 # Use the "android" flavor of the Makefile generator for both Linux and OS X.
130 export GYP_GENERATORS="make-android" 133 export GYP_GENERATORS="make-android"
131 134
132 # Use our All target as the default 135 # Use our All target as the default
133 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" 136 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All"
134 137
135 # We want to use our version of "all" targets. 138 # We want to use our version of "all" targets.
136 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android.gyp" 139 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android.gyp"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698