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

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

Issue 11359069: Android: fix webview build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « no previous file | 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 # source tree. This method is called from non_sdk_build_init() and adds to the 267 # source tree. This method is called from non_sdk_build_init() and adds to the
268 # settings specified there. 268 # settings specified there.
269 ############################################################################# 269 #############################################################################
270 webview_build_init() { 270 webview_build_init() {
271 # For the WebView build we always use the NDK and SDK in the Android tree, 271 # For the WebView build we always use the NDK and SDK in the Android tree,
272 # and we don't touch ANDROID_TOOLCHAIN which is already set by Android. 272 # and we don't touch ANDROID_TOOLCHAIN which is already set by Android.
273 export ANDROID_NDK_ROOT=${ANDROID_BUILD_TOP}/prebuilts/ndk/8 273 export ANDROID_NDK_ROOT=${ANDROID_BUILD_TOP}/prebuilts/ndk/8
274 export ANDROID_SDK_ROOT=${ANDROID_BUILD_TOP}/prebuilts/sdk/\ 274 export ANDROID_SDK_ROOT=${ANDROID_BUILD_TOP}/prebuilts/sdk/\
275 ${ANDROID_SDK_VERSION} 275 ${ANDROID_SDK_VERSION}
276 276
277 # For now, TARGET_ARCH is always ARM in this config.
278 TARGET_ARCH=arm
279
277 common_vars_defines 280 common_vars_defines
278 281
279 # We need to supply SDK paths relative to the top of the Android tree to make 282 # We need to supply SDK paths relative to the top of the Android tree to make
280 # sure the generated Android makefiles are portable, as they will be checked 283 # sure the generated Android makefiles are portable, as they will be checked
281 # into the Android tree. 284 # into the Android tree.
282 ANDROID_SDK=$(python -c \ 285 ANDROID_SDK=$(python -c \
283 "import os.path; print os.path.relpath('${ANDROID_SDK_ROOT}', \ 286 "import os.path; print os.path.relpath('${ANDROID_SDK_ROOT}', \
284 '${ANDROID_BUILD_TOP}')") 287 '${ANDROID_BUILD_TOP}')")
285 ANDROID_SDK_TOOLS=$(python -c \ 288 ANDROID_SDK_TOOLS=$(python -c \
286 "import os.path; \ 289 "import os.path; \
(...skipping 12 matching lines...) Expand all
299 export GYP_DEFINES="${DEFINES}" 302 export GYP_DEFINES="${DEFINES}"
300 303
301 export GYP_GENERATORS="android" 304 export GYP_GENERATORS="android"
302 305
303 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" 306 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All"
304 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" 307 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1"
305 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" 308 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0"
306 309
307 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp" 310 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp"
308 } 311 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698