From 7d676342aef8fe7a9d64f7235086fb33bcc001c5 Mon Sep 17 00:00:00 2001 From: "ohrn@opera.com" Date: Fri, 26 Apr 2013 12:06:54 +0000 Subject: 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 --- skia/skia.gyp | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'skia') 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', -- cgit v1.1