diff options
author | ohrn@opera.com <ohrn@opera.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-26 12:06:54 +0000 |
---|---|---|
committer | ohrn@opera.com <ohrn@opera.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-26 12:06:54 +0000 |
commit | 7d676342aef8fe7a9d64f7235086fb33bcc001c5 (patch) | |
tree | be7668c6627dec407edbf2c6e5416b924c05bd55 /skia/skia.gyp | |
parent | 3b8aa2807a49d795154ada600b0ec8b28c40dc6e (diff) | |
download | chromium_src-7d676342aef8fe7a9d64f7235086fb33bcc001c5.zip chromium_src-7d676342aef8fe7a9d64f7235086fb33bcc001c5.tar.gz chromium_src-7d676342aef8fe7a9d64f7235086fb33bcc001c5.tar.bz2 |
Introduce arm_version to allow building for armv5, v6 or v7.
This patch deprecates armv7 and adds arm_version that takes an integer
value representing the ARM architecture level.
In addition arm_arch, arm_tune, arm_fpu, arm_float_abi and arm_thumb can
be set to fine tune CPU related compiler flags, defaults are provided for
ARM versions 5 to 7.
BUG=234135
Review URL: https://chromiumcodereview.appspot.com/14065005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196702 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/skia.gyp')
-rw-r--r-- | skia/skia.gyp | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/skia/skia.gyp b/skia/skia.gyp index 2af2377..011e34d 100644 --- a/skia/skia.gyp +++ b/skia/skia.gyp @@ -343,12 +343,7 @@ [ 'OS != "win"', { 'sources/': [ ['exclude', '_win\\.(cc|cpp)$'] ], }], - [ 'armv7 == 1', { - 'defines': [ - '__ARM_ARCH__=7', - ], - }], - [ 'armv7 == 1 and arm_neon == 1', { + [ 'target_arch == "arm" and arm_version >= 7 and arm_neon == 1', { 'defines': [ '__ARM_HAVE_NEON', ], @@ -674,12 +669,7 @@ }], [ 'target_arch == "arm"', { 'conditions': [ - [ 'armv7 == 1', { - 'defines': [ - '__ARM_ARCH__=7', - ], - }], - [ 'armv7 == 1 and arm_neon == 1', { + [ 'arm_version >= 7 and arm_neon == 1', { 'defines': [ '__ARM_HAVE_NEON', ], @@ -708,12 +698,12 @@ '../third_party/skia/src/opts/SkBitmapProcState_opts_arm.cpp', ], }], - [ 'armv7 == 1 and arm_neon == 0', { + [ 'target_arch == "arm" and (arm_version < 7 or arm_neon == 0)', { 'sources': [ '../third_party/skia/src/opts/memset.arm.S', ], }], - [ 'armv7 == 1 and arm_neon == 1', { + [ 'target_arch == "arm" and arm_version >= 7 and arm_neon == 1', { 'sources': [ '../third_party/skia/src/opts/memset16_neon.S', '../third_party/skia/src/opts/memset32_neon.S', @@ -724,13 +714,13 @@ '../third_party/skia/src/opts/SkBlitRow_opts_arm_neon.cpp', ], }], - [ 'target_arch == "arm" and armv7 == 0', { + [ 'target_arch == "arm" and arm_version < 6', { 'sources': [ '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', '../third_party/skia/src/opts/SkUtils_opts_none.cpp', ], }], - [ 'target_arch == "arm" and armv7 == 1', { + [ 'target_arch == "arm" and arm_version >= 6', { 'sources': [ '../third_party/skia/src/opts/SkBlitRow_opts_arm.cpp', '../third_party/skia/src/opts/SkBlitRow_opts_arm.h', |