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

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: Fix mistake in the android case + clean list of OSs 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..bf30de6f6a1bb6ae97d09fee145e93dae61b23bf 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", "android"]',
+ {
+ '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,14 +411,6 @@
'-fno-rtti',
],
'conditions': [
- [ 'skia_warnings_as_errors', {
- 'cflags': [
- '-Werror',
- ],
- }],
- [ 'skia_profile_enabled == 1', {
- 'cflags': ['-g', '-fno-omit-frame-pointer', '-marm', '-mapcs'],
- }],
[ 'skia_shared_lib', {
'cflags': [
'-fPIC',
@@ -384,42 +422,9 @@
'SKIA_IMPLEMENTATION=1',
],
}],
- [ 'skia_arch_type == "arm" and arm_thumb == 1', {
- 'cflags': [
- '-mthumb',
- ],
+ [ 'skia_profile_enabled == 1', {
+ 'cflags': ['-g', '-fno-omit-frame-pointer', '-marm', '-mapcs'],
}],
- [ '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