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

Unified Diff: gyp/common_conditions.gypi

Issue 18243007: ARM Skia NEON patches - 10 - ARM build (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp/common_conditions.gypi
diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi
index 4aa503d7575266aa11ebd0b3420fcbf0d14b2fc6..1598bde8ef653e9e3c07a65db920ffb1f76d3dab 100644
--- a/gyp/common_conditions.gypi
+++ b/gyp/common_conditions.gypi
@@ -17,6 +17,7 @@
],
},
],
+
[ 'skia_os == "win"',
{
'defines': [
@@ -126,6 +127,56 @@
},
],
+ # The following section is common to linux + derivatives and android
+ [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos"] or skia_os == "android"',
borenet 2013/07/10 13:37:37 Just adding "android" to the list would be cleaner
+ {
+ 'conditions': [
+ [ 'skia_warnings_as_errors', {
+ 'cflags': [
+ '-Werror',
+ ],
+ }],
+ [ 'skia_arch_type == "arm" and arm_thumb == 1', {
+ 'cflags': [
+ '-mthumb',
+ ],
+ }],
+ [ 'skia_arch_type == "arm" and armv7 == 1', {
+ 'variables': {
+ 'arm_neon_optional%': 0,
+ },
+ 'defines': [
+ '__ARM_ARCH__=7',
+ ],
+ 'cflags': [
+ '-march=armv7-a',
+ '-mfloat-abi=softfp',
+ ],
+ 'conditions': [
+ [ 'arm_neon == 1', {
+ 'defines': [
+ '__ARM_HAVE_NEON',
+ ],
+ 'cflags': [
+ '-mfpu=neon',
+ ],
+ 'ldflags': [
+ '-march=armv7-a',
+ '-Wl,--fix-cortex-a8',
+ ],
+ }],
+ [ 'arm_neon_optional == 1', {
+ 'defines': [
+ '__ARM_HAVE_OPTIONAL_NEON_SUPPORT',
+ ],
+ }],
+ ],
+ }],
+ ],
+ },
+ ],
+
+
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos"]',
{
'defines': [
@@ -163,11 +214,6 @@
'SKIA_IMPLEMENTATION=1',
],
}],
- [ 'skia_warnings_as_errors', {
- 'cflags': [
- '-Werror',
- ],
- }],
[ 'skia_os == "nacl"', {
'defines': [
'SK_BUILD_FOR_NACL',
@@ -192,7 +238,7 @@
],
}, {
'conditions': [
- [ 'skia_arch_width == 64', {
+ [ 'skia_arch_width == 64 and skia_arch_type == "x86"', {
'cflags': [
'-m64',
],
@@ -200,7 +246,7 @@
'-m64',
],
}],
- [ 'skia_arch_width == 32', {
+ [ 'skia_arch_width == 32 and skia_arch_type == "x86"', {
'cflags': [
'-m32',
],
@@ -365,61 +411,9 @@
'-fno-rtti',
],
'conditions': [
- [ 'skia_warnings_as_errors', {
- 'cflags': [
- '-Werror',
- ],
- }],
[ 'skia_profile_enabled == 1', {
'cflags': ['-g', '-fno-omit-frame-pointer', '-marm', '-mapcs'],
}],
- [ 'skia_shared_lib', {
djsollen 2013/07/10 13:24:17 why was the condition for skia_shared_lib deleted?
kevin.petit.not.used.account 2013/07/10 13:27:47 This is a mistake. It probably happened when I las
- 'cflags': [
- '-fPIC',
- ],
- 'defines': [
- 'GR_DLL=1',
- 'GR_IMPLEMENTATION=1',
- 'SKIA_DLL',
- 'SKIA_IMPLEMENTATION=1',
- ],
- }],
- [ 'skia_arch_type == "arm" and arm_thumb == 1', {
- 'cflags': [
- '-mthumb',
- ],
- }],
- [ 'skia_arch_type == "arm" and armv7 == 1', {
- 'variables': {
- 'arm_neon_optional%': 0,
- },
- 'defines': [
- '__ARM_ARCH__=7',
- ],
- 'cflags': [
- '-march=armv7-a',
- '-mfloat-abi=softfp',
- ],
- 'conditions': [
- [ 'arm_neon == 1', {
- 'defines': [
- '__ARM_HAVE_NEON',
- ],
- 'cflags': [
- '-mfpu=neon',
- ],
- 'ldflags': [
- '-march=armv7-a',
- '-Wl,--fix-cortex-a8',
- ],
- }],
- [ 'arm_neon_optional == 1', {
- 'defines': [
- '__ARM_HAVE_OPTIONAL_NEON_SUPPORT',
- ],
- }],
- ],
- }],
],
},
],
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698