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 11 matching lines...) Expand all Loading... |
22 # else). However, to keep the .gyp file simple and avoid platform-specific | 22 # else). However, to keep the .gyp file simple and avoid platform-specific |
23 # build breakage, we do this on all platforms. | 23 # build breakage, we do this on all platforms. |
24 | 24 |
25 # For about the same reason, we need to compile the ARM opts files | 25 # For about the same reason, we need to compile the ARM opts files |
26 # separately as well. | 26 # separately as well. |
27 { | 27 { |
28 'target_name': 'skia_opts', | 28 'target_name': 'skia_opts', |
29 'type': 'static_library', | 29 'type': 'static_library', |
30 'includes': [ | 30 'includes': [ |
31 'skia_common.gypi', | 31 'skia_common.gypi', |
| 32 '../build/android/increase_size_for_speed.gypi', |
32 ], | 33 ], |
33 'include_dirs': [ | 34 'include_dirs': [ |
34 '../third_party/skia/include/core', | 35 '../third_party/skia/include/core', |
35 '../third_party/skia/include/effects', | 36 '../third_party/skia/include/effects', |
36 '../third_party/skia/src/core', | 37 '../third_party/skia/src/core', |
37 '../third_party/skia/src/opts', | 38 '../third_party/skia/src/opts', |
38 '../third_party/skia/src/utils', | 39 '../third_party/skia/src/utils', |
39 ], | 40 ], |
40 'conditions': [ | 41 'conditions': [ |
41 [ 'os_posix == 1 and OS != "mac" and OS != "android" and \ | 42 [ 'os_posix == 1 and OS != "mac" and OS != "android" and \ |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 }, | 154 }, |
154 # For the same lame reasons as what is done for skia_opts, we have to | 155 # For the same lame reasons as what is done for skia_opts, we have to |
155 # create another target specifically for SSSE3 code as we would not want | 156 # create another target specifically for SSSE3 code as we would not want |
156 # to compile the SSE2 code with -mssse3 which would potentially allow | 157 # to compile the SSE2 code with -mssse3 which would potentially allow |
157 # gcc to generate SSSE3 code. | 158 # gcc to generate SSSE3 code. |
158 { | 159 { |
159 'target_name': 'skia_opts_ssse3', | 160 'target_name': 'skia_opts_ssse3', |
160 'type': 'static_library', | 161 'type': 'static_library', |
161 'includes': [ | 162 'includes': [ |
162 'skia_common.gypi', | 163 'skia_common.gypi', |
| 164 '../build/android/increase_size_for_speed.gypi', |
163 ], | 165 ], |
164 'include_dirs': [ | 166 'include_dirs': [ |
165 '../third_party/skia/include/core', | 167 '../third_party/skia/include/core', |
166 '../third_party/skia/include/effects', | 168 '../third_party/skia/include/effects', |
167 '../third_party/skia/src/core', | 169 '../third_party/skia/src/core', |
168 ], | 170 ], |
169 'conditions': [ | 171 'conditions': [ |
170 [ 'OS in ["linux", "freebsd", "openbsd", "solaris", "android"]', { | 172 [ 'OS in ["linux", "freebsd", "openbsd", "solaris", "android"]', { |
171 'cflags': [ | 173 'cflags': [ |
172 '-mssse3', | 174 '-mssse3', |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 }, | 209 }, |
208 # For the same lame reasons as what is done for skia_opts, we also have to | 210 # For the same lame reasons as what is done for skia_opts, we also have to |
209 # create another target specifically for SSE4 code as we would not want | 211 # create another target specifically for SSE4 code as we would not want |
210 # to compile the SSE2 code with -msse4 which would potentially allow | 212 # to compile the SSE2 code with -msse4 which would potentially allow |
211 # gcc to generate SSE4 code. | 213 # gcc to generate SSE4 code. |
212 { | 214 { |
213 'target_name': 'skia_opts_sse4', | 215 'target_name': 'skia_opts_sse4', |
214 'type': 'static_library', | 216 'type': 'static_library', |
215 'includes': [ | 217 'includes': [ |
216 'skia_common.gypi', | 218 'skia_common.gypi', |
| 219 '../build/android/increase_size_for_speed.gypi', |
217 ], | 220 ], |
218 'include_dirs': [ | 221 'include_dirs': [ |
219 '../third_party/skia/include/core', | 222 '../third_party/skia/include/core', |
220 '../third_party/skia/src/core', | 223 '../third_party/skia/src/core', |
221 ], | 224 ], |
222 'sources': [ | 225 'sources': [ |
223 '../third_party/skia/src/opts/SkBlurImage_opts_SSE4.cpp', | 226 '../third_party/skia/src/opts/SkBlurImage_opts_SSE4.cpp', |
224 ], | 227 ], |
225 'conditions': [ | 228 'conditions': [ |
226 [ 'OS in ["linux", "freebsd", "openbsd", "solaris", "android"]', { | 229 [ 'OS in ["linux", "freebsd", "openbsd", "solaris", "android"]', { |
(...skipping 20 matching lines...) Expand all Loading... |
247 }], | 250 }], |
248 [ 'target_arch == "x64"', { | 251 [ 'target_arch == "x64"', { |
249 'sources': [ | 252 'sources': [ |
250 '../third_party/skia/src/opts/SkBlitRow_opts_SSE4_x64_asm.S', | 253 '../third_party/skia/src/opts/SkBlitRow_opts_SSE4_x64_asm.S', |
251 ], | 254 ], |
252 }], | 255 }], |
253 [ 'target_arch == "ia32"', { | 256 [ 'target_arch == "ia32"', { |
254 'sources': [ | 257 'sources': [ |
255 '../third_party/skia/src/opts/SkBlitRow_opts_SSE4_asm.S', | 258 '../third_party/skia/src/opts/SkBlitRow_opts_SSE4_asm.S', |
256 ], | 259 ], |
257 }], | 260 }], |
258 ], | 261 ], |
259 }, | 262 }, |
260 { | 263 { |
261 'target_name': 'skia_opts_none', | 264 'target_name': 'skia_opts_none', |
262 'type': 'static_library', | 265 'type': 'static_library', |
263 'includes': [ | 266 'includes': [ |
264 'skia_common.gypi', | 267 'skia_common.gypi', |
| 268 '../build/android/increase_size_for_speed.gypi', |
265 ], | 269 ], |
266 'include_dirs': [ | 270 'include_dirs': [ |
267 '../third_party/skia/include/core', | 271 '../third_party/skia/include/core', |
268 '../third_party/skia/include/effects', | 272 '../third_party/skia/include/effects', |
269 '../third_party/skia/src/core', | 273 '../third_party/skia/src/core', |
270 '../third_party/skia/src/utils', | 274 '../third_party/skia/src/utils', |
271 ], | 275 ], |
272 'sources': [ | 276 'sources': [ |
273 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', | 277 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', |
274 '../third_party/skia/src/opts/SkBlitMask_opts_none.cpp', | 278 '../third_party/skia/src/opts/SkBlitMask_opts_none.cpp', |
(...skipping 11 matching lines...) Expand all Loading... |
286 # code. To support dynamic NEON code paths, we need to build all | 290 # code. To support dynamic NEON code paths, we need to build all |
287 # NEON-specific sources in a separate static library. The situation | 291 # NEON-specific sources in a separate static library. The situation |
288 # is very similar to the SSSE3 one. | 292 # is very similar to the SSSE3 one. |
289 ['target_arch == "arm" and (arm_neon == 1 or arm_neon_optional == 1)', { | 293 ['target_arch == "arm" and (arm_neon == 1 or arm_neon_optional == 1)', { |
290 'targets': [ | 294 'targets': [ |
291 { | 295 { |
292 'target_name': 'skia_opts_neon', | 296 'target_name': 'skia_opts_neon', |
293 'type': 'static_library', | 297 'type': 'static_library', |
294 'includes': [ | 298 'includes': [ |
295 'skia_common.gypi', | 299 'skia_common.gypi', |
| 300 '../build/android/increase_size_for_speed.gypi', |
296 ], | 301 ], |
297 'include_dirs': [ | 302 'include_dirs': [ |
298 '../third_party/skia/include/core', | 303 '../third_party/skia/include/core', |
299 '../third_party/skia/include/effects', | 304 '../third_party/skia/include/effects', |
300 '../third_party/skia/src/core', | 305 '../third_party/skia/src/core', |
301 '../third_party/skia/src/opts', | 306 '../third_party/skia/src/opts', |
302 '../third_party/skia/src/utils', | 307 '../third_party/skia/src/utils', |
303 ], | 308 ], |
304 'cflags!': [ | 309 'cflags!': [ |
305 '-fno-omit-frame-pointer', | 310 '-fno-omit-frame-pointer', |
(...skipping 21 matching lines...) Expand all Loading... |
327 '../third_party/skia/src/opts/SkTextureCompression_opts_neon.cpp', | 332 '../third_party/skia/src/opts/SkTextureCompression_opts_neon.cpp', |
328 '../third_party/skia/src/opts/SkXfermode_opts_arm_neon.cpp', | 333 '../third_party/skia/src/opts/SkXfermode_opts_arm_neon.cpp', |
329 '../third_party/skia/src/opts/memset16_neon.S', | 334 '../third_party/skia/src/opts/memset16_neon.S', |
330 '../third_party/skia/src/opts/memset32_neon.S', | 335 '../third_party/skia/src/opts/memset32_neon.S', |
331 ], | 336 ], |
332 }, | 337 }, |
333 ], | 338 ], |
334 }], | 339 }], |
335 ], | 340 ], |
336 } | 341 } |
OLD | NEW |