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

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

Issue 12917006: Android WebView: change how the SDK jar is found. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 ANDROID_SDK_TOOLS=$(python -c \ 281 ANDROID_SDK_TOOLS=$(python -c \
282 "import os.path; \ 282 "import os.path; \
283 print os.path.relpath('${ANDROID_SDK_ROOT}/../tools/darwin', \ 283 print os.path.relpath('${ANDROID_SDK_ROOT}/../tools/darwin', \
284 '${ANDROID_BUILD_TOP}')") 284 '${ANDROID_BUILD_TOP}')")
285 ;; 285 ;;
286 esac 286 esac
287 DEFINES+=" android_webview_build=1" 287 DEFINES+=" android_webview_build=1"
288 # temporary until all uses of android_build_type are gone (crbug.com/184431) 288 # temporary until all uses of android_build_type are gone (crbug.com/184431)
289 DEFINES+=" android_build_type=1" 289 DEFINES+=" android_build_type=1"
290 DEFINES+=" android_src=\$(GYP_ABS_ANDROID_TOP_DIR)" 290 DEFINES+=" android_src=\$(GYP_ABS_ANDROID_TOP_DIR)"
291 DEFINES+=" android_sdk=\$(GYP_ABS_ANDROID_TOP_DIR)/${ANDROID_SDK}" 291 DEFINES+=" android_sdk=NOT_USED_ON_WEBVIEW"
292 DEFINES+=" android_sdk_jar=\$(GYP_ABS_ANDROID_TOP_DIR)/${ANDROID_SDK}/android. jar"
292 DEFINES+=" android_sdk_root=\$(GYP_ABS_ANDROID_TOP_DIR)/${ANDROID_SDK}" 293 DEFINES+=" android_sdk_root=\$(GYP_ABS_ANDROID_TOP_DIR)/${ANDROID_SDK}"
293 DEFINES+=" android_sdk_tools=\$(GYP_ABS_ANDROID_TOP_DIR)/${ANDROID_SDK_TOOLS}" 294 DEFINES+=" android_sdk_tools=\$(GYP_ABS_ANDROID_TOP_DIR)/${ANDROID_SDK_TOOLS}"
294 DEFINES+=" android_sdk_version=${ANDROID_SDK_VERSION}" 295 DEFINES+=" android_sdk_version=${ANDROID_SDK_VERSION}"
295 DEFINES+=" android_toolchain=${ANDROID_TOOLCHAIN}" 296 DEFINES+=" android_toolchain=${ANDROID_TOOLCHAIN}"
296 export GYP_DEFINES="${DEFINES}" 297 export GYP_DEFINES="${DEFINES}"
297 298
298 export GYP_GENERATORS="android" 299 export GYP_GENERATORS="android"
299 300
300 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All" 301 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} default_target=All"
301 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1" 302 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} limit_to_target_all=1"
302 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0" 303 export GYP_GENERATOR_FLAGS="${GYP_GENERATOR_FLAGS} auto_regeneration=0"
303 304
304 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp" 305 export CHROMIUM_GYP_FILE="${CHROME_SRC}/android_webview/all_webview.gyp"
305 } 306 }
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