Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 35f41ff6ded37c3532d69acf409905f1ff2d5da4..bfed69b8f41c0f4fb6a65b3de0cf111ca8534cb9 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -1081,36 +1081,54 @@ |
# Location of Android NDK. |
'variables': { |
'variables': { |
- 'variables': { |
- 'android_ndk_root%': '<!(/bin/echo -n $ANDROID_NDK_ROOT)', |
- }, |
- 'android_ndk_root%': '<(android_ndk_root)', |
- 'conditions': [ |
- ['target_arch == "ia32"', { |
- 'android_app_abi%': 'x86', |
- 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-9/arch-x86', |
- }], |
- ['target_arch=="arm"', { |
- 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-9/arch-arm', |
- 'conditions': [ |
- ['armv7==0', { |
- 'android_app_abi%': 'armeabi', |
- }, { |
- 'android_app_abi%': 'armeabi-v7a', |
- }], |
- ], |
- }], |
- ], |
+ # Unfortuantely we have to use absolute paths to the SDK/NDK beause |
+ # they're passed to ant which uses a different relative path from |
+ # gyp. |
+ 'android_ndk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_tools/ndk/', |
Nico
2014/02/10 20:28:12
This moved android_ndk_root% off the ANDROID_NDK_R
Yaron
2014/02/10 21:16:02
I was working on removing these builds from the ch
|
+ 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_tools/sdk/', |
+ 'android_host_arch%': '<!(uname -m)', |
cjhopman
2013/01/16 16:25:20
I don't think these need to be in an inner 'variab
Yaron
2013/01/16 16:53:26
Seems like they do as it won't gyp without it. It
|
}, |
+ # Copy conditionally-set variables out one scope. |
'android_ndk_root%': '<(android_ndk_root)', |
- 'android_app_abi%': '<(android_app_abi)', |
- 'android_ndk_sysroot%': '<(android_ndk_sysroot)', |
+ 'android_sdk_root%': '<(android_sdk_root)', |
+ |
+ # Android API-level of the SDK used for compilation. |
+ 'android_sdk_version%': '17', |
+ |
+ 'conditions': [ |
+ ['target_arch == "ia32"', { |
+ 'android_app_abi%': 'x86', |
+ 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gdbserver/gdbserver', |
+ 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-9/arch-x86', |
+ 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.6/prebuilt/<(host_os)-<(android_host_arch)/bin', |
+ }], |
+ ['target_arch=="arm"', { |
+ 'conditions': [ |
+ ['armv7==0', { |
+ 'android_app_abi%': 'armeabi', |
+ }, { |
+ 'android_app_abi%': 'armeabi-v7a', |
+ }], |
+ ], |
+ 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gdbserver/gdbserver', |
+ 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-9/arch-arm', |
+ 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-androideabi-4.6/prebuilt/<(host_os)-<(android_host_arch)/bin', |
+ }], |
+ ], |
}, |
+ # Copy conditionally-set variables out one scope. |
+ 'android_app_abi%': '<(android_app_abi)', |
cjhopman
2013/01/16 16:25:20
I think android_host_arch, android_sdk_root, and a
Yaron
2013/01/16 16:53:26
1) I wanted to keep android_sdk_root with android_
|
+ 'android_gdbserver%': '<(android_gdbserver)', |
'android_ndk_root%': '<(android_ndk_root)', |
'android_ndk_sysroot': '<(android_ndk_sysroot)', |
+ 'android_sdk_root%': '<(android_sdk_root)', |
+ 'android_sdk_version%': '<(android_sdk_version)', |
+ 'android_toolchain%': '<(android_toolchain)', |
+ |
'android_ndk_include': '<(android_ndk_sysroot)/usr/include', |
'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', |
- 'android_app_abi%': '<(android_app_abi)', |
+ 'android_sdk_tools%': '<(android_sdk_root)/platform-tools', |
+ 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_version)', |
# Location of the "strip" binary, used by both gyp and scripts. |
'android_strip%' : '<!(/bin/echo -n <(android_toolchain)/*-strip)', |