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

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

Issue 11416036: Android WebView: allow for multiple target architectures. (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
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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 # source tree. This method is called from non_sdk_build_init() and adds to the 272 # source tree. This method is called from non_sdk_build_init() and adds to the
273 # settings specified there. 273 # settings specified there.
274 ############################################################################# 274 #############################################################################
275 webview_build_init() { 275 webview_build_init() {
276 # For the WebView build we always use the NDK and SDK in the Android tree, 276 # For the WebView build we always use the NDK and SDK in the Android tree,
277 # and we don't touch ANDROID_TOOLCHAIN which is already set by Android. 277 # and we don't touch ANDROID_TOOLCHAIN which is already set by Android.
278 export ANDROID_NDK_ROOT=${ANDROID_BUILD_TOP}/prebuilts/ndk/8 278 export ANDROID_NDK_ROOT=${ANDROID_BUILD_TOP}/prebuilts/ndk/8
279 export ANDROID_SDK_ROOT=${ANDROID_BUILD_TOP}/prebuilts/sdk/\ 279 export ANDROID_SDK_ROOT=${ANDROID_BUILD_TOP}/prebuilts/sdk/\
280 ${ANDROID_SDK_VERSION} 280 ${ANDROID_SDK_VERSION}
281 281
282 # For now, TARGET_ARCH is always ARM in this config.
283 TARGET_ARCH=arm
284
285 common_vars_defines 282 common_vars_defines
286 283
287 # We need to supply SDK paths relative to the top of the Android tree to make 284 # We need to supply SDK paths relative to the top of the Android tree to make
288 # sure the generated Android makefiles are portable, as they will be checked 285 # sure the generated Android makefiles are portable, as they will be checked
289 # into the Android tree. 286 # into the Android tree.
290 ANDROID_SDK=$(python -c \ 287 ANDROID_SDK=$(python -c \
291 "import os.path; print os.path.relpath('${ANDROID_SDK_ROOT}', \ 288 "import os.path; print os.path.relpath('${ANDROID_SDK_ROOT}', \
292 '${ANDROID_BUILD_TOP}')") 289 '${ANDROID_BUILD_TOP}')")
293 ANDROID_SDK_TOOLS=$(python -c \ 290 ANDROID_SDK_TOOLS=$(python -c \
294 "import os.path; \ 291 "import os.path; \
(...skipping 12 matching lines...) Expand all
307 export GYP_DEFINES="${DEFINES}" 304 export GYP_DEFINES="${DEFINES}"
308 305
309 export GYP_GENERATORS="android" 306 export GYP_GENERATORS="android"
310 307
311 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" 308 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All"
312 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" 309 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1"
313 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" 310 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0"
314 311
315 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp" 312 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp"
316 } 313 }
OLDNEW
« android_webview/tools/gyp_webview ('K') | « android_webview/tools/gyp_webview ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698