Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index b32ca5432b3175ac5771005c61179ad8dfa79622..0fa295aa4c4ccac8bd4c116093c8c17614a0f292 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -1667,7 +1667,7 @@ |
'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_libc++_root': '<(android_ndk_root)/sources/cxx-stl/llvm-libc++', |
'host_os%': '<(host_os)', |
'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_version)', |
@@ -1744,9 +1744,10 @@ |
'android_sdk%': '<(android_sdk)', |
'android_sdk_jar%': '<(android_sdk)/android.jar', |
- 'android_stlport_root': '<(android_stlport_root)', |
- 'android_stlport_include': '<(android_stlport_root)/stlport', |
- 'android_stlport_libs_dir': '<(android_stlport_root)/libs/<(android_app_abi)', |
+ 'android_libc++_root': '<(android_libc++_root)', |
+ 'android_libc++_include': '<(android_libc++_root)/libcxx/include', |
+ 'android_libc++_libs_dir': '<(android_libc++_root)/libs/<(android_app_abi)', |
+ |
'host_os%': '<(host_os)', |
# Location of the "objcopy" binary, used by both gyp and scripts. |
@@ -3526,6 +3527,7 @@ |
# be disabled in ~/.gyp/include.gypi on the valgrind builders. |
'variables': { |
'werror%': '-Werror', |
+ #'werror%': '', |
'libraries_for_target%': '', |
}, |
'defines': [ |
@@ -3901,6 +3903,9 @@ |
# NOTE: While these flags enable the generation of .relro |
# sections, the generated libraries can still be loaded on |
# older Android platform versions. |
+ 'cflags_cc': [ |
+ '-std=gnu++11', |
+ ], |
'ldflags': [ |
'-Wl,-z,relro', |
'-Wl,-z,now', |
@@ -4455,9 +4460,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_stlport_library': 'stlport_shared', |
+ 'android_libc++_library': 'c++_shared', |
}, { |
- 'android_stlport_library': 'stlport_static', |
+ 'android_libc++_library': 'c++_static', |
}], |
], |
@@ -4541,8 +4546,6 @@ |
'defines': [ |
'ANDROID', |
'__GNU_SOURCE=1', # Necessary for clone() |
- 'USE_STLPORT=1', |
- '_STLP_USE_PTR_SPECIALIZATIONS=1', |
'CHROME_BUILD_ID="<(chrome_build_id)"', |
], |
'ldflags!': [ |
@@ -4626,12 +4629,12 @@ |
'-nostdlib', |
], |
'libraries': [ |
- '-l<(android_stlport_library)', |
- # Manually link the libgcc.a that the cross compiler uses. |
+ '-l<(android_libc++_library)', |
+ '-latomic', |
'<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)', |
+ '-lm', |
'-lc', |
'-ldl', |
- '-lm', |
], |
}], |
['android_webview_build==1', { |
@@ -4683,7 +4686,8 @@ |
'-Wl,--icf=safe', |
], |
}], |
- # NOTE: The stlport header include paths below are specified in |
+ # TODO: delete this? |
+ # NOTE: The libc++ header include paths below are specified in |
# cflags rather than include_dirs because they need to come |
# after include_dirs. Think of them like system headers, but |
# don't use '-isystem' because the arm-linux-androideabi-4.4.3 |
@@ -4691,17 +4695,19 @@ |
# The include ordering here is important; change with caution. |
['android_webview_build==0', { |
'cflags': [ |
- '-isystem<(android_stlport_include)', |
+ '-isystem<(android_libc++_include)', |
+ '-I<(android_ndk_root)/sources/cxx-stl/llvm-libc++abi/libcxxabi/include', |
+ '-I<(android_ndk_root)/sources/android/support/include', |
], |
'ldflags': [ |
- '-L<(android_stlport_libs_dir)', |
+ '-L<(android_libc++_libs_dir)', |
], |
}, { # else: android_webview_build!=0 |
'aosp_build_settings': { |
# Specify that we want to statically link stlport from the |
# NDK. This will provide all the include and library paths |
# automatically at build time, and link the right library. |
- 'LOCAL_NDK_STL_VARIANT': 'stlport_static', |
+ 'LOCAL_NDK_STL_VARIANT': 'libc++_static', |
}, |
}], |
['target_arch=="ia32"', { |