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

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

Issue 10824228: Revert "Use checked in android_tools Android NDK." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/android/buildbot_functions.sh ('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 # Defines functions for envsetup.sh which sets up environment for building 7 # Defines functions for envsetup.sh which sets up environment for building
8 # Chromium on Android. The build can be either use the Android NDK/SDK or 8 # Chromium on Android. The build can be either use the Android NDK/SDK or
9 # android source tree. Each has a unique init function which calls functions 9 # android source tree. Each has a unique init function which calls functions
10 # prefixed with "common_" that is common for both environment setups. 10 # prefixed with "common_" that is common for both environment setups.
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 # ANDROID_SDK_ROOT only needs to be set to override the default SDK which is in 139 # ANDROID_SDK_ROOT only needs to be set to override the default SDK which is in
140 # the tree under $ROOT/src/third_party/android_tools/sdk. 140 # the tree under $ROOT/src/third_party/android_tools/sdk.
141 # TODO(navabi): Add NDK to $ROOT/src/third_party/android_tools/ndk. 141 # TODO(navabi): Add NDK to $ROOT/src/third_party/android_tools/ndk.
142 # To build Chromium for Android with NDK/SDK follow the steps below: 142 # To build Chromium for Android with NDK/SDK follow the steps below:
143 # > export ANDROID_NDK_ROOT=<android ndk root> 143 # > export ANDROID_NDK_ROOT=<android ndk root>
144 # > export ANDROID_SDK_ROOT=<android sdk root> # to override the default sdk 144 # > export ANDROID_SDK_ROOT=<android sdk root> # to override the default sdk
145 # > . build/android/envsetup.sh --sdk 145 # > . build/android/envsetup.sh --sdk
146 # > make 146 # > make
147 ################################################################################ 147 ################################################################################
148 sdk_build_init() { 148 sdk_build_init() {
149 # If ANDROID_NDK_ROOT is set when envsetup is run, use the ndk pointed to by
150 # the environment variable. Otherwise, use the default ndk from the tree.
151 if [ ! -d "${ANDROID_NDK_ROOT}" ]; then 149 if [ ! -d "${ANDROID_NDK_ROOT}" ]; then
152 export ANDROID_NDK_ROOT="${CHROME_SRC}/third_party/android_tools/ndk/" 150 echo "ANDROID_NDK_ROOT must be set to the path of Android NDK." >& 2
151 echo "which could be installed by" >& 2
152 echo "<chromium_tree>/src/build/install-build-deps-android-sdk.sh" >& 2
153 return 1
153 fi 154 fi
154 155
155 # If ANDROID_SDK_ROOT is set when envsetup is run, use the sdk pointed to by 156 # If ANDROID_SDK_ROOT is set when envsetup is run, use the sdk pointed to by
156 # the environment variable. Otherwise, use the default sdk from the tree. 157 # the environment variable. Otherwise, use the default sdk from the tree.
157 if [ ! -d "${ANDROID_SDK_ROOT}" ]; then 158 if [ ! -d "${ANDROID_SDK_ROOT}" ]; then
158 export ANDROID_SDK_ROOT="${CHROME_SRC}/third_party/android_tools/sdk/" 159 export ANDROID_SDK_ROOT="${CHROME_SRC}/third_party/android_tools/sdk/"
159 fi 160 fi
160 161
161 # Makes sure ANDROID_BUILD_TOP is unset if build has option --sdk 162 # Makes sure ANDROID_BUILD_TOP is unset if build has option --sdk
162 unset ANDROID_BUILD_TOP 163 unset ANDROID_BUILD_TOP
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 277
277 export GYP_GENERATORS="android" 278 export GYP_GENERATORS="android"
278 279
279 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" 280 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All"
280 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" 281 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1"
281 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" 282 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0"
282 283
283 # TODO(torne): This isn't upstream yet. Upstream it or remove this setting. 284 # TODO(torne): This isn't upstream yet. Upstream it or remove this setting.
284 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android_webview.gyp" 285 export CHROMIUM_GYP_FILE="${CHROME_SRC}/build/all_android_webview.gyp"
285 } 286 }
OLDNEW
« no previous file with comments | « build/android/buildbot_functions.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698