| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 # This gyp file contains the platform-specific optimizations for Skia | 6 # This gyp file contains the platform-specific optimizations for Skia |
| 7 { | 7 { |
| 8 'targets': [ | 8 'targets': [ |
| 9 # Due to an unfortunate intersection of lameness between gcc and gyp, | 9 # Due to an unfortunate intersection of lameness between gcc and gyp, |
| 10 # we have to build the *_SSE2.cpp files in a separate target. The | 10 # we have to build the *_SSE2.cpp files in a separate target. The |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 'skia_common.gypi', | 31 'skia_common.gypi', |
| 32 ], | 32 ], |
| 33 'include_dirs': [ | 33 'include_dirs': [ |
| 34 '../third_party/skia/include/core', | 34 '../third_party/skia/include/core', |
| 35 '../third_party/skia/include/effects', | 35 '../third_party/skia/include/effects', |
| 36 '../third_party/skia/src/core', | 36 '../third_party/skia/src/core', |
| 37 '../third_party/skia/src/opts', | 37 '../third_party/skia/src/opts', |
| 38 ], | 38 ], |
| 39 'conditions': [ | 39 'conditions': [ |
| 40 [ 'os_posix == 1 and OS != "mac" and OS != "android" and \ | 40 [ 'os_posix == 1 and OS != "mac" and OS != "android" and \ |
| 41 target_arch != "arm" and target_arch != "mipsel"', { | 41 target_arch != "arm" and target_arch != "arm64" and \ |
| 42 target_arch != "mipsel"', { |
| 42 'cflags': [ | 43 'cflags': [ |
| 43 '-msse2', | 44 '-msse2', |
| 44 ], | 45 ], |
| 45 }], | 46 }], |
| 46 [ 'target_arch != "arm" and target_arch != "mipsel"', { | 47 [ 'target_arch != "arm" and target_arch != "mipsel" and \ |
| 48 target_arch != "arm64"', { |
| 47 'sources': [ | 49 'sources': [ |
| 48 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSE2.cpp', | 50 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSE2.cpp', |
| 49 '../third_party/skia/src/opts/SkBlitRect_opts_SSE2.cpp', | 51 '../third_party/skia/src/opts/SkBlitRect_opts_SSE2.cpp', |
| 50 '../third_party/skia/src/opts/SkBlitRow_opts_SSE2.cpp', | 52 '../third_party/skia/src/opts/SkBlitRow_opts_SSE2.cpp', |
| 51 '../third_party/skia/src/opts/SkUtils_opts_SSE2.cpp', | 53 '../third_party/skia/src/opts/SkUtils_opts_SSE2.cpp', |
| 52 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp', | 54 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp', |
| 53 '../third_party/skia/src/opts/SkBitmapFilter_opts_SSE2.cpp', | 55 '../third_party/skia/src/opts/SkBitmapFilter_opts_SSE2.cpp', |
| 54 '../third_party/skia/src/opts/SkMorphology_opts_SSE2.cpp', | 56 '../third_party/skia/src/opts/SkMorphology_opts_SSE2.cpp', |
| 55 '../third_party/skia/src/opts/SkBlurImage_opts_SSE2.cpp', | 57 '../third_party/skia/src/opts/SkBlurImage_opts_SSE2.cpp', |
| 56 ], | 58 ], |
| 57 'dependencies': [ | 59 'dependencies': [ |
| 58 'skia_opts_ssse3', | 60 'skia_opts_ssse3', |
| 59 ], | 61 ], |
| 60 }], | 62 }], |
| 63 # TODO(rmcilroy): Add neon support for arm64 - http://crbug.com/354405 |
| 61 [ 'target_arch == "arm"', { | 64 [ 'target_arch == "arm"', { |
| 62 'conditions': [ | 65 'conditions': [ |
| 63 [ 'arm_version >= 7 and arm_neon == 1', { | 66 [ 'arm_version >= 7 and arm_neon == 1', { |
| 64 'defines': [ | 67 'defines': [ |
| 65 '__ARM_HAVE_NEON', | 68 '__ARM_HAVE_NEON', |
| 66 ], | 69 ], |
| 67 }], | 70 }], |
| 68 [ 'arm_version >= 7 and arm_neon_optional == 1', { | 71 [ 'arm_version >= 7 and arm_neon_optional == 1', { |
| 69 'defines': [ | 72 'defines': [ |
| 70 '__ARM_HAVE_OPTIONAL_NEON_SUPPORT', | 73 '__ARM_HAVE_OPTIONAL_NEON_SUPPORT', |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 [ 'OS == "win"', { | 173 [ 'OS == "win"', { |
| 171 'include_dirs': [ | 174 'include_dirs': [ |
| 172 'config/win', | 175 'config/win', |
| 173 ], | 176 ], |
| 174 'direct_dependent_settings': { | 177 'direct_dependent_settings': { |
| 175 'include_dirs': [ | 178 'include_dirs': [ |
| 176 'config/win', | 179 'config/win', |
| 177 ], | 180 ], |
| 178 }, | 181 }, |
| 179 }], | 182 }], |
| 180 [ 'target_arch != "arm" and target_arch != "mipsel"', { | 183 [ 'target_arch != "arm" and target_arch != "arm64" and \ |
| 184 target_arch != "mipsel"', { |
| 181 'sources': [ | 185 'sources': [ |
| 182 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSSE3.cpp', | 186 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSSE3.cpp', |
| 183 ], | 187 ], |
| 184 }], | 188 }], |
| 185 ], | 189 ], |
| 186 }, | 190 }, |
| 187 { | 191 { |
| 188 'target_name': 'skia_opts_none', | 192 'target_name': 'skia_opts_none', |
| 189 'type': 'static_library', | 193 'type': 'static_library', |
| 190 'includes': [ | 194 'includes': [ |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 'defines': [ | 266 'defines': [ |
| 263 '__ARM_HAVE_OPTIONAL_NEON_SUPPORT', | 267 '__ARM_HAVE_OPTIONAL_NEON_SUPPORT', |
| 264 ], | 268 ], |
| 265 }], | 269 }], |
| 266 ], | 270 ], |
| 267 }, | 271 }, |
| 268 ], | 272 ], |
| 269 }], | 273 }], |
| 270 ], | 274 ], |
| 271 } | 275 } |
| OLD | NEW |