[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: svn://svn.chromium.org/chrome/trunk/src@149639 0039d316-1c4b-4281-b951-d872f2087c98
parent 656faf5c
...@@ -191,7 +191,10 @@ sdk_build_init() { ...@@ -191,7 +191,10 @@ sdk_build_init() {
DEFINES+=" android_static_lib='NOT_SDK_COMPLIANT'" DEFINES+=" android_static_lib='NOT_SDK_COMPLIANT'"
DEFINES+=\ DEFINES+=\
" android_sdk=${ANDROID_SDK_ROOT}/platforms/android-${ANDROID_SDK_VERSION}" " 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_tools=${ANDROID_SDK_ROOT}/platform-tools"
DEFINES+=" android_sdk_version=${ANDROID_SDK_VERSION}"
DEFINES+=" android_toolchain=${ANDROID_TOOLCHAIN}"
common_gyp_vars common_gyp_vars
...@@ -245,7 +248,10 @@ ${ANDROID_SDK_VERSION} ...@@ -245,7 +248,10 @@ ${ANDROID_SDK_VERSION}
# The non-SDK build currently requires the SDK path to build the framework # The non-SDK build currently requires the SDK path to build the framework
# Java aidl files. TODO(steveblock): Investigate avoiding this requirement. # Java aidl files. TODO(steveblock): Investigate avoiding this requirement.
DEFINES+=" android_sdk=${ANDROID_SDK_ROOT}" 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_tools=${ANDROID_SDK_ROOT}/../tools/linux"
DEFINES+=" android_sdk_version=${ANDROID_SDK_VERSION}"
DEFINES+=" android_toolchain=${ANDROID_TOOLCHAIN}"
common_gyp_vars common_gyp_vars
} }
...@@ -268,7 +274,10 @@ webview_build_init() { ...@@ -268,7 +274,10 @@ webview_build_init() {
DEFINES+=" android_build_type=1" DEFINES+=" android_build_type=1"
DEFINES+=" android_upstream_bringup=1" DEFINES+=" android_upstream_bringup=1"
DEFINES+=" android_sdk=\$(GYP_ABS_ANDROID_TOP_DIR)/${ANDROID_SDK}" 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_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_DEFINES="${DEFINES}"
export GYP_GENERATORS="android" export GYP_GENERATORS="android"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment