Chromium Code Reviews| 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', |
| - ], |
| - }], |
| - ], |
| - }], |
| ], |
| }, |
| ], |