| 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 29 matching lines...) Expand all Loading... |
| 40 'cflags': [ | 40 'cflags': [ |
| 41 '-msse2', | 41 '-msse2', |
| 42 ], | 42 ], |
| 43 }], | 43 }], |
| 44 [ 'target_arch != "arm" and target_arch != "mipsel"', { | 44 [ 'target_arch != "arm" and target_arch != "mipsel"', { |
| 45 'sources': [ | 45 'sources': [ |
| 46 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSE2.cpp', | 46 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSE2.cpp', |
| 47 '../third_party/skia/src/opts/SkBlitRect_opts_SSE2.cpp', | 47 '../third_party/skia/src/opts/SkBlitRect_opts_SSE2.cpp', |
| 48 '../third_party/skia/src/opts/SkBlitRow_opts_SSE2.cpp', | 48 '../third_party/skia/src/opts/SkBlitRow_opts_SSE2.cpp', |
| 49 '../third_party/skia/src/opts/SkUtils_opts_SSE2.cpp', | 49 '../third_party/skia/src/opts/SkUtils_opts_SSE2.cpp', |
| 50 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp', |
| 50 '../third_party/skia/src/opts/SkBitmapFilter_opts_SSE2.cpp', | 51 '../third_party/skia/src/opts/SkBitmapFilter_opts_SSE2.cpp', |
| 51 ], | 52 ], |
| 52 'dependencies': [ | 53 'dependencies': [ |
| 53 'skia_opts_ssse3', | 54 'skia_opts_ssse3', |
| 54 ], | 55 ], |
| 55 }], | 56 }], |
| 56 [ 'target_arch == "arm"', { | 57 [ 'target_arch == "arm"', { |
| 57 'conditions': [ | 58 'conditions': [ |
| 58 [ 'arm_version >= 7 and arm_neon == 1', { | 59 [ 'arm_version >= 7 and arm_neon == 1', { |
| 59 'defines': [ | 60 'defines': [ |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 [ 'target_arch == "arm" and (arm_version < 7 or (arm_neon == 0 and arm_n
eon_optional == 1))', { | 98 [ 'target_arch == "arm" and (arm_version < 7 or (arm_neon == 0 and arm_n
eon_optional == 1))', { |
| 98 'sources': [ | 99 'sources': [ |
| 99 '../third_party/skia/src/opts/memset.arm.S', | 100 '../third_party/skia/src/opts/memset.arm.S', |
| 100 ], | 101 ], |
| 101 }], | 102 }], |
| 102 [ 'target_arch == "arm" and arm_version < 6', { | 103 [ 'target_arch == "arm" and arm_version < 6', { |
| 103 'sources': [ | 104 'sources': [ |
| 104 '../third_party/skia/src/opts/SkBlitMask_opts_none.cpp', | 105 '../third_party/skia/src/opts/SkBlitMask_opts_none.cpp', |
| 105 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', | 106 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', |
| 106 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', | 107 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', |
| 108 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp', |
| 107 ], | 109 ], |
| 108 }], | 110 }], |
| 109 [ 'target_arch == "arm" and arm_version >= 6', { | 111 [ 'target_arch == "arm" and arm_version >= 6', { |
| 110 'sources': [ | 112 'sources': [ |
| 111 '../third_party/skia/src/opts/SkBlitMask_opts_arm.cpp', | 113 '../third_party/skia/src/opts/SkBlitMask_opts_arm.cpp', |
| 112 '../third_party/skia/src/opts/SkBlitRow_opts_arm.cpp', | 114 '../third_party/skia/src/opts/SkBlitRow_opts_arm.cpp', |
| 113 '../third_party/skia/src/opts/SkBlitRow_opts_arm.h', | 115 '../third_party/skia/src/opts/SkBlitRow_opts_arm.h', |
| 114 '../third_party/skia/src/opts/opts_check_arm.cpp', | 116 '../third_party/skia/src/opts/opts_check_arm.cpp', |
| 117 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp', |
| 115 ], | 118 ], |
| 116 }], | 119 }], |
| 117 [ 'target_arch == "mipsel"',{ | 120 [ 'target_arch == "mipsel"',{ |
| 118 'cflags': [ | 121 'cflags': [ |
| 119 '-fomit-frame-pointer', | 122 '-fomit-frame-pointer', |
| 120 ], | 123 ], |
| 121 'sources': [ | 124 'sources': [ |
| 122 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', | 125 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', |
| 123 '../third_party/skia/src/opts/SkBlitMask_opts_none.cpp', | 126 '../third_party/skia/src/opts/SkBlitMask_opts_none.cpp', |
| 124 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', | 127 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', |
| 125 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', | 128 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', |
| 129 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp', |
| 126 ], | 130 ], |
| 127 }], | 131 }], |
| 128 ], | 132 ], |
| 129 }, | 133 }, |
| 130 # For the same lame reasons as what is done for skia_opts, we have to | 134 # For the same lame reasons as what is done for skia_opts, we have to |
| 131 # create another target specifically for SSSE3 code as we would not want | 135 # create another target specifically for SSSE3 code as we would not want |
| 132 # to compile the SSE2 code with -mssse3 which would potentially allow | 136 # to compile the SSE2 code with -mssse3 which would potentially allow |
| 133 # gcc to generate SSSE3 code. | 137 # gcc to generate SSSE3 code. |
| 134 { | 138 { |
| 135 'target_name': 'skia_opts_ssse3', | 139 'target_name': 'skia_opts_ssse3', |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 'config', | 181 'config', |
| 178 '../third_party/skia/include/config', | 182 '../third_party/skia/include/config', |
| 179 '../third_party/skia/include/core', | 183 '../third_party/skia/include/core', |
| 180 '../third_party/skia/src/core', | 184 '../third_party/skia/src/core', |
| 181 ], | 185 ], |
| 182 'sources': [ | 186 'sources': [ |
| 183 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', | 187 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', |
| 184 '../third_party/skia/src/opts/SkBlitMask_opts_none.cpp', | 188 '../third_party/skia/src/opts/SkBlitMask_opts_none.cpp', |
| 185 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', | 189 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', |
| 186 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', | 190 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', |
| 191 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp', |
| 187 ], | 192 ], |
| 188 }, | 193 }, |
| 189 ], | 194 ], |
| 190 'conditions': [ | 195 'conditions': [ |
| 191 # NEON code must be compiled with -mfpu=neon which also affects scalar | 196 # NEON code must be compiled with -mfpu=neon which also affects scalar |
| 192 # code. To support dynamic NEON code paths, we need to build all | 197 # code. To support dynamic NEON code paths, we need to build all |
| 193 # NEON-specific sources in a separate static library. The situation | 198 # NEON-specific sources in a separate static library. The situation |
| 194 # is very similar to the SSSE3 one. | 199 # is very similar to the SSSE3 one. |
| 195 ['target_arch == "arm" and (arm_neon == 1 or arm_neon_optional == 1)', { | 200 ['target_arch == "arm" and (arm_neon == 1 or arm_neon_optional == 1)', { |
| 196 'targets': [ | 201 'targets': [ |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 'defines': [ | 242 'defines': [ |
| 238 '__ARM_HAVE_OPTIONAL_NEON_SUPPORT', | 243 '__ARM_HAVE_OPTIONAL_NEON_SUPPORT', |
| 239 ], | 244 ], |
| 240 }], | 245 }], |
| 241 ], | 246 ], |
| 242 }, | 247 }, |
| 243 ], | 248 ], |
| 244 }], | 249 }], |
| 245 ], | 250 ], |
| 246 } | 251 } |
| OLD | NEW |