Enable 32/64-bit gyp switch on Android
Select 32/64-bit Skia build according skia_arch_width on Android. BUG=skia: R=djsollen@google.com, mtklein@google.com Author: qiankun.miao@intel.com Review URL: https://codereview.chromium.org/369813003
This commit is contained in:
parent
0b7813b8c5
commit
d312a04ffa
@ -191,6 +191,26 @@
|
||||
'-Wno-invalid-offsetof', # GCC <4.6 is old-school strict about what is POD.
|
||||
],
|
||||
'conditions': [
|
||||
[ 'skia_os != "chromeos"', {
|
||||
'conditions': [
|
||||
[ 'skia_arch_width == 64 and skia_arch_type == "x86"', {
|
||||
'cflags': [
|
||||
'-m64',
|
||||
],
|
||||
'ldflags': [
|
||||
'-m64',
|
||||
],
|
||||
}],
|
||||
[ 'skia_arch_width == 32 and skia_arch_type == "x86"', {
|
||||
'cflags': [
|
||||
'-m32',
|
||||
],
|
||||
'ldflags': [
|
||||
'-m32',
|
||||
],
|
||||
}],
|
||||
],
|
||||
}],
|
||||
[ 'skia_android_framework==0', {
|
||||
'cflags': [
|
||||
# This flag is not supported by Android build system.
|
||||
@ -422,26 +442,6 @@
|
||||
],
|
||||
},
|
||||
}],
|
||||
[ 'skia_os != "chromeos"', {
|
||||
'conditions': [
|
||||
[ 'skia_arch_width == 64 and skia_arch_type == "x86"', {
|
||||
'cflags': [
|
||||
'-m64',
|
||||
],
|
||||
'ldflags': [
|
||||
'-m64',
|
||||
],
|
||||
}],
|
||||
[ 'skia_arch_width == 32 and skia_arch_type == "x86"', {
|
||||
'cflags': [
|
||||
'-m32',
|
||||
],
|
||||
'ldflags': [
|
||||
'-m32',
|
||||
],
|
||||
}],
|
||||
],
|
||||
}],
|
||||
# Enable asan, tsan, etc.
|
||||
[ 'skia_sanitizer', {
|
||||
'cflags': [
|
||||
|
Loading…
Reference in New Issue
Block a user