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 22 matching lines...) Expand all Loading... |
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 '../third_party/skia/src/utils', | 38 '../third_party/skia/src/utils', |
39 ], | 39 ], |
40 'conditions': [ | 40 'conditions': [ |
41 [ 'os_posix == 1 and OS != "mac" and OS != "android" and \ | 41 [ 'os_posix == 1 and OS != "mac" and OS != "android" and \ |
42 target_arch != "arm" and target_arch != "arm64" and \ | 42 target_arch != "arm" and target_arch != "arm64" and \ |
43 target_arch != "mipsel"', { | 43 target_arch != "mipsel" and target_arch != "mips64el"', { |
44 'cflags': [ | 44 'cflags': [ |
45 '-msse2', | 45 '-msse2', |
46 ], | 46 ], |
47 }], | 47 }], |
48 [ 'target_arch != "arm" and target_arch != "mipsel" and \ | 48 [ 'target_arch != "arm" and target_arch != "mipsel" and \ |
49 target_arch != "arm64"', { | 49 target_arch != "arm64" and target_arch != "mips64el"', { |
50 'sources': [ | 50 'sources': [ |
51 '../third_party/skia/src/opts/SkBitmapFilter_opts_SSE2.cpp', | 51 '../third_party/skia/src/opts/SkBitmapFilter_opts_SSE2.cpp', |
52 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSE2.cpp', | 52 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSE2.cpp', |
53 '../third_party/skia/src/opts/SkBlitRect_opts_SSE2.cpp', | 53 '../third_party/skia/src/opts/SkBlitRect_opts_SSE2.cpp', |
54 '../third_party/skia/src/opts/SkBlitRow_opts_SSE2.cpp', | 54 '../third_party/skia/src/opts/SkBlitRow_opts_SSE2.cpp', |
55 '../third_party/skia/src/opts/SkBlurImage_opts_SSE2.cpp', | 55 '../third_party/skia/src/opts/SkBlurImage_opts_SSE2.cpp', |
56 '../third_party/skia/src/opts/SkMorphology_opts_SSE2.cpp', | 56 '../third_party/skia/src/opts/SkMorphology_opts_SSE2.cpp', |
57 '../third_party/skia/src/opts/SkTextureCompression_opts_none.cpp', | 57 '../third_party/skia/src/opts/SkTextureCompression_opts_none.cpp', |
58 '../third_party/skia/src/opts/SkUtils_opts_SSE2.cpp', | 58 '../third_party/skia/src/opts/SkUtils_opts_SSE2.cpp', |
59 '../third_party/skia/src/opts/SkXfermode_opts_SSE2.cpp', | 59 '../third_party/skia/src/opts/SkXfermode_opts_SSE2.cpp', |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 '../third_party/skia/src/opts/SkBlitMask_opts_arm.cpp', | 125 '../third_party/skia/src/opts/SkBlitMask_opts_arm.cpp', |
126 '../third_party/skia/src/opts/SkBlitRow_opts_arm.cpp', | 126 '../third_party/skia/src/opts/SkBlitRow_opts_arm.cpp', |
127 '../third_party/skia/src/opts/SkBlitRow_opts_arm.h', | 127 '../third_party/skia/src/opts/SkBlitRow_opts_arm.h', |
128 '../third_party/skia/src/opts/SkBlurImage_opts_arm.cpp', | 128 '../third_party/skia/src/opts/SkBlurImage_opts_arm.cpp', |
129 '../third_party/skia/src/opts/SkMorphology_opts_arm.cpp', | 129 '../third_party/skia/src/opts/SkMorphology_opts_arm.cpp', |
130 '../third_party/skia/src/opts/SkTextureCompression_opts_arm.cpp', | 130 '../third_party/skia/src/opts/SkTextureCompression_opts_arm.cpp', |
131 '../third_party/skia/src/opts/SkUtils_opts_arm.cpp', | 131 '../third_party/skia/src/opts/SkUtils_opts_arm.cpp', |
132 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp', | 132 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp', |
133 ], | 133 ], |
134 }], | 134 }], |
135 [ 'target_arch == "mipsel"',{ | 135 [ 'target_arch == "mipsel" or target_arch == "mips64el"',{ |
136 'cflags': [ | 136 'cflags': [ |
137 '-fomit-frame-pointer', | 137 '-fomit-frame-pointer', |
138 ], | 138 ], |
139 'sources': [ | 139 'sources': [ |
140 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', | 140 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', |
141 '../third_party/skia/src/opts/SkBlitMask_opts_none.cpp', | 141 '../third_party/skia/src/opts/SkBlitMask_opts_none.cpp', |
142 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', | 142 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', |
143 '../third_party/skia/src/opts/SkBlurImage_opts_none.cpp', | 143 '../third_party/skia/src/opts/SkBlurImage_opts_none.cpp', |
144 '../third_party/skia/src/opts/SkMorphology_opts_none.cpp', | 144 '../third_party/skia/src/opts/SkMorphology_opts_none.cpp', |
145 '../third_party/skia/src/opts/SkTextureCompression_opts_none.cpp', | 145 '../third_party/skia/src/opts/SkTextureCompression_opts_none.cpp', |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 'direct_dependent_settings': { | 201 'direct_dependent_settings': { |
202 'include_dirs': [ | 202 'include_dirs': [ |
203 'config/win', | 203 'config/win', |
204 ], | 204 ], |
205 }, | 205 }, |
206 'defines' : [ | 206 'defines' : [ |
207 'SK_CPU_SSE_LEVEL=31' | 207 'SK_CPU_SSE_LEVEL=31' |
208 ], | 208 ], |
209 }], | 209 }], |
210 [ 'target_arch != "arm" and target_arch != "arm64" and \ | 210 [ 'target_arch != "arm" and target_arch != "arm64" and \ |
211 target_arch != "mipsel"', { | 211 target_arch != "mipsel" and target_arch != "mips64el"', { |
212 'sources': [ | 212 'sources': [ |
213 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSSE3.cpp', | 213 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSSE3.cpp', |
214 ], | 214 ], |
215 }], | 215 }], |
216 ], | 216 ], |
217 }, | 217 }, |
218 # For the same lame reasons as what is done for skia_opts, we also have to | 218 # For the same lame reasons as what is done for skia_opts, we also have to |
219 # create another target specifically for SSE4 code as we would not want | 219 # create another target specifically for SSE4 code as we would not want |
220 # to compile the SSE2 code with -msse4 which would potentially allow | 220 # to compile the SSE2 code with -msse4 which would potentially allow |
221 # gcc to generate SSE4 code. | 221 # gcc to generate SSE4 code. |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 'defines': [ | 342 'defines': [ |
343 '__ARM_HAVE_OPTIONAL_NEON_SUPPORT', | 343 '__ARM_HAVE_OPTIONAL_NEON_SUPPORT', |
344 ], | 344 ], |
345 }], | 345 }], |
346 ], | 346 ], |
347 }, | 347 }, |
348 ], | 348 ], |
349 }], | 349 }], |
350 ], | 350 ], |
351 } | 351 } |
OLD | NEW |