[Android] - Prepare apk tests for switch to checked in SDK.

http://codereview.chromium.org/10830012/ contians the final patch but
because this affects the WebKit build as well, it needs to be done in
stages. This change introduces new gyp defines that'll be needed in
WebKit.


Review URL: https://chromiumcodereview.appspot.com/10831130

git-svn-id: http://src.chromium.org/svn/trunk/src/build@149639 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
yfriedman@chromium.org 2012-08-02 17:05:24 +00:00
Родитель 44f243175d
Коммит be423e2cf7
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -191,7 +191,10 @@ sdk_build_init() {
DEFINES+=" android_static_lib='NOT_SDK_COMPLIANT'"
DEFINES+=\
" android_sdk=${ANDROID_SDK_ROOT}/platforms/android-${ANDROID_SDK_VERSION}"
DEFINES+=" android_sdk_root=${ANDROID_SDK_ROOT}"
DEFINES+=" android_sdk_tools=${ANDROID_SDK_ROOT}/platform-tools"
DEFINES+=" android_sdk_version=${ANDROID_SDK_VERSION}"
DEFINES+=" android_toolchain=${ANDROID_TOOLCHAIN}"
common_gyp_vars
@ -245,7 +248,10 @@ ${ANDROID_SDK_VERSION}
# The non-SDK build currently requires the SDK path to build the framework
# Java aidl files. TODO(steveblock): Investigate avoiding this requirement.
DEFINES+=" android_sdk=${ANDROID_SDK_ROOT}"
DEFINES+=" android_sdk_root=${ANDROID_SDK_ROOT}"
DEFINES+=" android_sdk_tools=${ANDROID_SDK_ROOT}/../tools/linux"
DEFINES+=" android_sdk_version=${ANDROID_SDK_VERSION}"
DEFINES+=" android_toolchain=${ANDROID_TOOLCHAIN}"
common_gyp_vars
}
@ -268,7 +274,10 @@ webview_build_init() {
DEFINES+=" android_build_type=1"
DEFINES+=" android_upstream_bringup=1"
DEFINES+=" android_sdk=\$(GYP_ABS_ANDROID_TOP_DIR)/${ANDROID_SDK}"
DEFINES+=" android_sdk_root=${ANDROID_SDK_ROOT}"
DEFINES+=" android_sdk_tools=\$(GYP_ABS_ANDROID_TOP_DIR)/${ANDROID_SDK_TOOLS}"
DEFINES+=" android_sdk_version=${ANDROID_SDK_VERSION}"
DEFINES+=" android_toolchain=${ANDROID_TOOLCHAIN}"
export GYP_DEFINES="${DEFINES}"
export GYP_GENERATORS="android"