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

Unified Diff: build/common.gypi

Issue 10198027: enable android x86 build (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years, 8 months 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/envsetup.sh ('k') | skia/skia.gyp » ('j') | skia/skia.gyp » ('J')
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 db5bf662d30735af777d891a9887c975e5aea19a..f7a5070af3c1f67850561e318de6b7fb095ba293 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -802,14 +802,19 @@
'variables': {
'variables': {
'android_ndk_root%': '<!(/bin/echo -n $ANDROID_NDK_ROOT)',
- 'target_arch%': 'arm', # target_arch in android terms.
+ 'platform_arch%': 'arm',
John Grabowski 2012/04/26 21:53:08 Might prefer a gyp style if/else (e.g. conditions
+ 'conditions': [
+ ['target_arch == "ia32"', {
+ 'platform_arch%': 'x86',
+ }],
+ ],
# Switch between different build types, currently only '0' is
# supported.
'android_build_type%': 0,
},
'android_ndk_root%': '<(android_ndk_root)',
- 'android_ndk_sysroot': '<(android_ndk_root)/platforms/android-9/arch-<(target_arch)',
+ 'android_ndk_sysroot': '<(android_ndk_root)/platforms/android-9/arch-<(platform_arch)',
'android_build_type%': '<(android_build_type)',
},
'android_ndk_root%': '<(android_ndk_root)',
@@ -957,7 +962,7 @@
],
}],
- ['os_posix==1 and chromeos==0 and target_arch!="arm"', {
+ ['os_posix==1 and chromeos==0 and OS!="android"', {
'use_cups%': 1,
}, {
'use_cups%': 0,
@@ -2365,10 +2370,16 @@
'ldflags': [
'-nostdlib',
'-Wl,--no-undefined',
- '-Wl,--icf=safe', # Enable identical code folding to reduce size
# Don't export symbols from statically linked libraries.
'-Wl,--exclude-libs=ALL',
],
+ 'conditions': [
+ ['target_arch == "arm"', {
+ 'ldflags': [
+ '-Wl, --icf=safe', # Enable identical code folding to reduce size.
John Grabowski 2012/04/26 21:53:08 >80
+ ],
+ }],
+ ],
'libraries': [
'-l<(android_stlport_library)',
# Manually link the libgcc.a that the cross compiler uses.
« no previous file with comments | « build/android/envsetup.sh ('k') | skia/skia.gyp » ('j') | skia/skia.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698