| Index: build/common.gypi
|
| diff --git a/build/common.gypi b/build/common.gypi
|
| index 49551ffabcc1301f102b64cefc0a6c3ce5543b68..d1e188ae30d985ff635de989ccc76e33286e86ff 100644
|
| --- a/build/common.gypi
|
| +++ b/build/common.gypi
|
| @@ -1137,6 +1137,8 @@
|
| 'android_ndk_root%': '<(android_ndk_root)',
|
| 'android_sdk_root%': '<(android_sdk_root)',
|
| 'android_sdk_version%': '<(android_sdk_version)',
|
| + 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport',
|
| + 'android_libstdcpp_root': '<(android_ndk_root)/sources/cxx-stl/gnu-libstdc++/4.6',
|
|
|
| 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_version)',
|
|
|
| @@ -1179,9 +1181,19 @@
|
| 'android_sdk%': '<(android_sdk)',
|
| 'android_sdk_jar%': '<(android_sdk)/android.jar',
|
|
|
| + 'android_stlport_root': '<(android_stlport_root)',
|
| + 'android_libstdcpp_root': '<(android_libstdcpp_root)',
|
| + 'android_stlport_include': '<(android_stlport_root)/stlport',
|
| + 'android_libstdcpp_include': '<(android_libstdcpp_root)/include',
|
| + 'android_stlport_libs_dir': '<(android_stlport_root)/libs/<(android_app_abi)',
|
| + 'android_libstdcpp_libs_dir': '<(android_libstdcpp_root)/libs/<(android_app_abi)',
|
| +
|
| # Location of the "strip" binary, used by both gyp and scripts.
|
| 'android_strip%' : '<!(/bin/echo -n <(android_toolchain)/*-strip)',
|
|
|
| + # Location of the "readelf" binary.
|
| + 'android_readelf%' : '<!(/bin/echo -n <(android_toolchain)/*-readelf)',
|
| +
|
| # Provides an absolute path to PRODUCT_DIR (e.g. out/Release). Used
|
| # to specify the output directory for Ant in the Android build.
|
| 'ant_build_out': '`cd <(PRODUCT_DIR) && pwd -P`',
|
| @@ -3307,28 +3319,12 @@
|
| ],
|
| }, { # else: use_system_stlport!=1
|
| 'cflags': [
|
| - '-I<(android_ndk_root)/sources/cxx-stl/stlport/stlport',
|
| - '-I<(android_ndk_root)/sources/cxx-stl/gnu-libstdc++/4.6/include',
|
| + '-I<(android_stlport_include)',
|
| + '-I<(android_libstdcpp_include)',
|
| ],
|
| - 'conditions': [
|
| - ['target_arch=="arm" and armv7==1', {
|
| - 'ldflags': [
|
| - '-L<(android_ndk_root)/sources/cxx-stl/stlport/libs/armeabi-v7a',
|
| - '-L<(android_ndk_root)/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a',
|
| - ],
|
| - }],
|
| - ['target_arch=="arm" and armv7==0', {
|
| - 'ldflags': [
|
| - '-L<(android_ndk_root)/sources/cxx-stl/stlport/libs/armeabi',
|
| - '-L<(android_ndk_root)/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi',
|
| - ],
|
| - }],
|
| - ['target_arch=="ia32"', {
|
| - 'ldflags': [
|
| - '-L<(android_ndk_root)/sources/cxx-stl/stlport/libs/x86',
|
| - '-L<(android_ndk_root)/sources/cxx-stl/gnu-libstdc++/4.6/libs/x86',
|
| - ],
|
| - }],
|
| + 'ldflags': [
|
| + '-L<(android_stlport_libs_dir)',
|
| + '-L<(android_libstdcpp_libs_dir)',
|
| ],
|
| }],
|
| ['target_arch=="ia32"', {
|
|
|