Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(906)

Unified Diff: build/common.gypi

Issue 695333003: Use thumb versions of external libraries with ARMv7. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/setup.gyp ('k') | build/config/android/config.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index b8a87e09c707e3b6bc7cf47fcd41bbcdd8499e9a..2da419a61530b280d7daccd5d2130e6f8b7dfa60 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -4632,13 +4632,26 @@
'--sysroot=<(android_ndk_sysroot)',
'-nostdlib',
],
- 'libraries': [
- '-l<(android_stlport_library)',
- # Manually link the libgcc.a that the cross compiler uses.
- '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)',
- '-lc',
- '-ldl',
- '-lm',
+ 'conditions': [
+ ['target_arch=="arm" and arm_thumb==1', {
+ 'libraries': [
+ '-l<(android_stlport_library)',
+ # Manually link the libgcc.a that the cross compiler uses.
+ '<!(<(android_toolchain)/*-gcc -mthumb -print-libgcc-file-name)',
pasko 2014/11/03 16:47:15 I suspect we can expand a variable here to be eith
Fabrice (no longer in Chrome) 2014/11/03 18:00:41 Done.
+ '-lc',
+ '-ldl',
+ '-lm',
+ ],
+ }, {
+ 'libraries': [
+ '-l<(android_stlport_library)',
+ # Manually link the libgcc.a that the cross compiler uses.
+ '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)',
+ '-lc',
+ '-ldl',
+ '-lm',
+ ],
+ }],
],
}],
['android_webview_build==1', {
@@ -4700,8 +4713,12 @@
'cflags': [
'-isystem<(android_stlport_include)',
],
- 'ldflags': [
- '-L<(android_stlport_libs_dir)',
+ 'conditions': [
+ ['target_arch=="arm" and arm_thumb==1', {
+ 'ldflags': [ '-L<(android_stlport_libs_dir)/thumb' ]
+ }, {
+ 'ldflags': [ '-L<(android_stlport_libs_dir)' ]
+ }],
],
}, { # else: android_webview_build!=0
'aosp_build_settings': {
« no previous file with comments | « build/android/setup.gyp ('k') | build/config/android/config.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698