diff --git a/android/setup.gyp b/android/setup.gyp index b3c342216..7dce19de7 100644 --- a/android/setup.gyp +++ b/android/setup.gyp @@ -16,7 +16,7 @@ { 'destination': '<(SHARED_LIB_DIR)/', 'files': [ - '<(android_libcpp_libs_dir)/libc++_shared.so', + '<(android_stlport_libs_dir)/libstlport_shared.so', ], }, ], diff --git a/common.gypi b/common.gypi index 24ea355be..0645cf8a2 100644 --- a/common.gypi +++ b/common.gypi @@ -1668,7 +1668,7 @@ 'android_ndk_root%': '<(android_ndk_root)', 'android_sdk_root%': '<(android_sdk_root)', 'android_sdk_version%': '<(android_sdk_version)', - 'android_libcpp_root': '<(android_ndk_root)/sources/cxx-stl/llvm-libc++', + 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport', 'host_os%': '<(host_os)', 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_version)', @@ -1745,10 +1745,9 @@ 'android_sdk%': '<(android_sdk)', 'android_sdk_jar%': '<(android_sdk)/android.jar', - 'android_libcpp_root': '<(android_libcpp_root)', - 'android_libcpp_include': '<(android_libcpp_root)/libcxx/include', - 'android_libcpp_libs_dir': '<(android_libcpp_root)/libs/<(android_app_abi)', - + 'android_stlport_root': '<(android_stlport_root)', + 'android_stlport_include': '<(android_stlport_root)/stlport', + 'android_stlport_libs_dir': '<(android_stlport_root)/libs/<(android_app_abi)', 'host_os%': '<(host_os)', # Location of the "objcopy" binary, used by both gyp and scripts. @@ -4501,9 +4500,9 @@ # Figure this out early since it needs symbols from libgcc.a, so it # has to be before that in the set of libraries. ['component=="shared_library"', { - 'android_libcpp_library': 'c++_shared', + 'android_stlport_library': 'stlport_shared', }, { - 'android_libcpp_library': 'c++_static', + 'android_stlport_library': 'stlport_static', }], ], @@ -4587,6 +4586,8 @@ 'defines': [ 'ANDROID', '__GNU_SOURCE=1', # Necessary for clone() + 'USE_STLPORT=1', + '_STLP_USE_PTR_SPECIALIZATIONS=1', 'CHROME_BUILD_ID="<(chrome_build_id)"', ], 'ldflags!': [ @@ -4660,13 +4661,12 @@ '-nostdlib', ], 'libraries': [ - '-l<(android_libcpp_library)', - '-latomic', + '-l<(android_stlport_library)', # Manually link the libgcc.a that the cross compiler uses. '