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

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

Issue 9443018: Upstream Android's PathUtils implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased patch 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
« base/base.gyp ('K') | « base/test/test_stub_android.cc ('k') | no next file » | 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 29 matching lines...) Expand all
40 "mac") 40 "mac")
41 toolchain_dir="darwin-x86" 41 toolchain_dir="darwin-x86"
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"
51
50 # Add Android SDK's platform-tools to system path. 52 # Add Android SDK's platform-tools to system path.
51 export PATH="${PATH}:${ANDROID_SDK_ROOT}/platform-tools/" 53 export PATH="${PATH}:${ANDROID_SDK_ROOT}/platform-tools/"
52 54
53 if [ ! -d "${ANDROID_TOOLCHAIN}" ]; then 55 if [ ! -d "${ANDROID_TOOLCHAIN}" ]; then
54 echo "Can not find Android toolchain in ${ANDROID_TOOLCHAIN}." >& 2 56 echo "Can not find Android toolchain in ${ANDROID_TOOLCHAIN}." >& 2
55 echo "The NDK version might be wrong." >& 2 57 echo "The NDK version might be wrong." >& 2
56 return 1 58 return 1
57 fi 59 fi
58 60
59 if [ -z "${CHROME_SRC}" ]; then 61 if [ -z "${CHROME_SRC}" ]; then
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 export GYP_DEFINES="${DEFINES}" 126 export GYP_DEFINES="${DEFINES}"
125 127
126 # Use the "android" flavor of the Makefile generator for both Linux and OS X. 128 # Use the "android" flavor of the Makefile generator for both Linux and OS X.
127 export GYP_GENERATORS="make-android" 129 export GYP_GENERATORS="make-android"
128 130
129 # Use our All target as the default 131 # Use our All target as the default
130 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" 132 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All"
131 133
132 # We want to use our version of "all" targets. 134 # We want to use our version of "all" targets.
133 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android.gyp" 135 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android.gyp"
OLDNEW
« base/base.gyp ('K') | « base/test/test_stub_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698