OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 if (current_cpu == "arm" || current_cpu == "arm64") { | 8 if (current_cpu == "arm" || current_cpu == "arm64") { |
9 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
10 } | 10 } |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 "SK_GAMMA_EXPONENT=1.2", | 184 "SK_GAMMA_EXPONENT=1.2", |
185 "SK_GAMMA_CONTRAST=0.2", | 185 "SK_GAMMA_CONTRAST=0.2", |
186 "SK_HIGH_QUALITY_IS_LANCZOS", | 186 "SK_HIGH_QUALITY_IS_LANCZOS", |
187 ] | 187 ] |
188 } else if (is_android) { | 188 } else if (is_android) { |
189 defines += [ | 189 defines += [ |
190 "SK_GAMMA_APPLY_TO_A8", | 190 "SK_GAMMA_APPLY_TO_A8", |
191 "SK_GAMMA_EXPONENT=1.4", | 191 "SK_GAMMA_EXPONENT=1.4", |
192 "SK_GAMMA_CONTRAST=0.0", | 192 "SK_GAMMA_CONTRAST=0.0", |
193 ] | 193 ] |
194 } else if (is_win) { | |
195 defines += [ | |
196 "SK_GAMMA_SRGB", | |
197 "SK_GAMMA_CONTRAST=0.5", | |
198 "SK_HIGH_QUALITY_IS_LANCZOS", | |
199 ] | |
200 } else if (is_mac) { | 194 } else if (is_mac) { |
201 defines += [ | 195 defines += [ |
202 "SK_GAMMA_SRGB", | 196 "SK_GAMMA_SRGB", |
203 "SK_GAMMA_CONTRAST=0.0", | 197 "SK_GAMMA_CONTRAST=0.0", |
204 "SK_HIGH_QUALITY_IS_LANCZOS", | 198 "SK_HIGH_QUALITY_IS_LANCZOS", |
205 ] | 199 ] |
206 } | 200 } |
207 | 201 |
208 if (is_android) { | 202 if (is_android) { |
209 defines += [ | 203 defines += [ |
210 # Android devices are typically more memory constrained, so default to a | 204 # Android devices are typically more memory constrained, so default to a |
211 # smaller glyph cache (it may be overriden at runtime when the renderer | 205 # smaller glyph cache (it may be overriden at runtime when the renderer |
212 # starts up, depending on the actual device memory). | 206 # starts up, depending on the actual device memory). |
213 "SK_DEFAULT_FONT_CACHE_LIMIT=1048576", # 1024 * 1024 | 207 "SK_DEFAULT_FONT_CACHE_LIMIT=1048576", # 1024 * 1024 |
214 ] | 208 ] |
215 } else { | 209 } else { |
216 defines += [ "SK_DEFAULT_FONT_CACHE_LIMIT=20971520" ] # 20 * 1024 * 1024 | 210 defines += [ "SK_DEFAULT_FONT_CACHE_LIMIT=20971520" ] # 20 * 1024 * 1024 |
217 } | 211 } |
218 | 212 |
219 if (is_win) { | |
220 include_dirs += [ | |
221 "//third_party/skia/include/utils/win", | |
222 "//third_party/skia/src/utils/win", | |
223 ] | |
224 | |
225 defines += [ | |
226 # On windows, GDI handles are a scarse system-wide resource so we have to | |
227 # keep the glyph cache, which holds up to 4 GDI handles per entry, to a | |
228 # fairly small size. http://crbug.com/314387 | |
229 "SK_DEFAULT_FONT_CACHE_COUNT_LIMIT=256", | |
230 ] | |
231 | |
232 cflags = [ | |
233 "/wd4244", # conversion from 'type1( __int64)' to 'type2 (unsigned int)' | |
234 "/wd4267", # conversion from 'size_t' (64 bit) to 'type'(32 bit). | |
235 "/wd4341", # signed value is out of range for enum constant. | |
236 "/wd4345", # Object is default-initialized if initialization is omitted. | |
237 "/wd4390", # ';'empty statement found in looping;is it what was intended? | |
238 "/wd4554", # 'operator' : check operator precedence for possible error | |
239 "/wd4748", # compiler will disable optimizations if a function has inline | |
240 # assembly code contains flow control(jmp or jcc) statements. | |
241 | |
242 "/wd4800", # forcing value to bool 'true/false'(assigning int to bool). | |
243 ] | |
244 } | |
245 | |
246 if (is_ios) { | 213 if (is_ios) { |
247 cflags = [ | 214 cflags = [ |
248 # Skia uses routines deprecated in iOS 7 and above | 215 # Skia uses routines deprecated in iOS 7 and above |
249 "-Wno-deprecated-declarations", | 216 "-Wno-deprecated-declarations", |
250 ] | 217 ] |
251 | 218 |
252 libs = [ "ImageIO.framework" ] | 219 libs = [ "ImageIO.framework" ] |
253 } | 220 } |
254 } | 221 } |
255 | 222 |
256 component("skia") { | 223 component("skia") { |
257 sources = [ | 224 sources = [ |
258 # Chrome sources. | 225 # Chrome sources. |
259 "config/SkUserConfig.h", | 226 "config/SkUserConfig.h", |
260 "ext/SkDiscardableMemory_chrome.cc", | 227 "ext/SkDiscardableMemory_chrome.cc", |
261 "ext/SkDiscardableMemory_chrome.h", | 228 "ext/SkDiscardableMemory_chrome.h", |
262 "ext/SkMemory_new_handler.cpp", | 229 "ext/SkMemory_new_handler.cpp", |
263 "ext/analysis_canvas.cc", | |
264 "ext/analysis_canvas.h", | |
265 "ext/bitmap_platform_device.h", | 230 "ext/bitmap_platform_device.h", |
266 "ext/convolver.cc", | |
267 "ext/convolver.h", | |
268 "ext/event_tracer_impl.cc", | 231 "ext/event_tracer_impl.cc", |
269 "ext/event_tracer_impl.h", | 232 "ext/event_tracer_impl.h", |
270 "ext/fontmgr_default_win.cc", | |
271 "ext/fontmgr_default_win.h", | |
272 "ext/google_logging.cc", | 233 "ext/google_logging.cc", |
273 "ext/image_operations.cc", | |
274 "ext/image_operations.h", | |
275 "ext/opacity_draw_filter.cc", | 234 "ext/opacity_draw_filter.cc", |
276 "ext/opacity_draw_filter.h", | 235 "ext/opacity_draw_filter.h", |
277 "ext/pixel_ref_utils.cc", | |
278 "ext/pixel_ref_utils.h", | |
279 "ext/platform_canvas.cc", | 236 "ext/platform_canvas.cc", |
280 "ext/platform_canvas.h", | 237 "ext/platform_canvas.h", |
281 "ext/platform_device.cc", | 238 "ext/platform_device.cc", |
282 "ext/platform_device.h", | 239 "ext/platform_device.h", |
283 "ext/platform_device_linux.cc", | 240 "ext/platform_device_linux.cc", |
284 "ext/platform_device_mac.cc", | 241 "ext/platform_device_mac.cc", |
285 "ext/platform_device_win.cc", | |
286 "ext/recursive_gaussian_convolution.cc", | |
287 "ext/recursive_gaussian_convolution.h", | |
288 "ext/refptr.h", | 242 "ext/refptr.h", |
289 "ext/skia_utils_base.cc", | 243 "ext/skia_utils_base.cc", |
290 "ext/skia_utils_base.h", | 244 "ext/skia_utils_base.h", |
291 "ext/skia_utils_ios.h", | 245 "ext/skia_utils_ios.h", |
292 "ext/skia_utils_ios.mm", | 246 "ext/skia_utils_ios.mm", |
293 "ext/skia_utils_mac.h", | 247 "ext/skia_utils_mac.h", |
294 "ext/skia_utils_mac.mm", | 248 "ext/skia_utils_mac.mm", |
295 "ext/skia_utils_win.cc", | |
296 "ext/skia_utils_win.h", | |
297 ] | 249 ] |
298 | 250 |
299 # The skia gypi values are relative to the skia_dir, so we need to rebase. | 251 # The skia gypi values are relative to the skia_dir, so we need to rebase. |
300 sources += gypi_skia_core.sources | 252 sources += gypi_skia_core.sources |
301 sources += gypi_skia_effects.sources | 253 sources += gypi_skia_effects.sources |
302 sources += gypi_skia_utils.sources | 254 sources += gypi_skia_utils.sources |
303 sources += gypi_values.skia_library_sources | 255 sources += gypi_values.skia_library_sources |
304 | 256 |
305 # This and skia_opts are really the same conceptual target so share headers. | 257 # This and skia_opts are really the same conceptual target so share headers. |
306 allow_circular_includes_from = [ ":skia_opts" ] | 258 allow_circular_includes_from = [ ":skia_opts" ] |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 sources += [ "//third_party/skia/src/gpu/gl/iOS/GrGLCreateNativeInterface_
iOS.cpp" ] | 329 sources += [ "//third_party/skia/src/gpu/gl/iOS/GrGLCreateNativeInterface_
iOS.cpp" ] |
378 } else if (is_mac) { | 330 } else if (is_mac) { |
379 sources += [ "//third_party/skia/src/gpu/gl/mac/GrGLCreateNativeInterface_
mac.cpp" ] | 331 sources += [ "//third_party/skia/src/gpu/gl/mac/GrGLCreateNativeInterface_
mac.cpp" ] |
380 } else if (is_android) { | 332 } else if (is_android) { |
381 sources += [ "//third_party/skia/src/gpu/gl/android/GrGLCreateNativeInterf
ace_android.cpp" ] | 333 sources += [ "//third_party/skia/src/gpu/gl/android/GrGLCreateNativeInterf
ace_android.cpp" ] |
382 } | 334 } |
383 | 335 |
384 set_sources_assignment_filter(sources_assignment_filter) | 336 set_sources_assignment_filter(sources_assignment_filter) |
385 } | 337 } |
386 | 338 |
387 if (is_win) { | |
388 sources -= [ | |
389 # Keeping _win.cpp | |
390 "//third_party/skia/src/utils/SkThreadUtils_pthread.cpp", | |
391 "//third_party/skia/src/utils/SkThreadUtils_pthread_other.cpp", | |
392 ] | |
393 } else { | |
394 sources -= [ | |
395 # Keeping _pthread.cpp and _pthread_other.cpp. | |
396 "//third_party/skia/src/utils/SkThreadUtils_win.cpp", | |
397 ] | |
398 } | |
399 | |
400 # need separate win section to handle chromes auto gn filter | |
401 # (build/config/BUILDCONFIG.gn) | |
402 if (is_win) { | |
403 sources -= [ | |
404 #windows | |
405 "//third_party/skia/include/utils/win/SkAutoCoInitialize.h", | |
406 "//third_party/skia/include/utils/win/SkHRESULT.h", | |
407 "//third_party/skia/include/utils/win/SkIStream.h", | |
408 "//third_party/skia/include/utils/win/SkTScopedComPtr.h", | |
409 "//third_party/skia/src/utils/win/SkAutoCoInitialize.cpp", | |
410 "//third_party/skia/src/utils/win/SkIStream.cpp", | |
411 "//third_party/skia/src/utils/win/SkWGL_win.cpp", | |
412 ] | |
413 } | |
414 | |
415 if (is_ios) { | 339 if (is_ios) { |
416 set_sources_assignment_filter([]) | 340 set_sources_assignment_filter([]) |
417 | 341 |
418 sources += [ | 342 sources += [ |
419 "//third_party/skia/src/utils/mac/SkCreateCGImageRef.cpp", | 343 "//third_party/skia/src/utils/mac/SkCreateCGImageRef.cpp", |
420 "//third_party/skia/src/utils/mac/SkStream_mac.cpp", | 344 "//third_party/skia/src/utils/mac/SkStream_mac.cpp", |
421 ] | 345 ] |
422 | 346 |
423 set_sources_assignment_filter(sources_assignment_filter) | 347 set_sources_assignment_filter(sources_assignment_filter) |
424 } | 348 } |
425 | 349 |
426 if (is_android) { | 350 if (is_android) { |
427 sources -= [ "ext/skia_utils_base.cc" ] | 351 sources -= [ "ext/skia_utils_base.cc" ] |
428 } | 352 } |
429 | 353 |
430 # Fixup skia library sources. | 354 # Fixup skia library sources. |
431 if (is_win) { | 355 sources -= [ |
432 sources -= [ | 356 "//third_party/skia/src/ports/SkFontHost_win.cpp", |
433 "//third_party/skia/src/ports/SkOSFile_posix.cpp", | 357 "//third_party/skia/src/ports/SkFontMgr_win_dw.cpp", |
434 "//third_party/skia/src/ports/SkTLS_pthread.cpp", | 358 "//third_party/skia/src/ports/SkOSFile_win.cpp", |
435 "//third_party/skia/src/ports/SkTime_Unix.cpp", | 359 "//third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp", |
436 ] | 360 "//third_party/skia/src/ports/SkScalerContext_win_dw.cpp", |
437 } else { | 361 "//third_party/skia/src/ports/SkScalerContext_win_dw.h", |
438 sources -= [ | 362 "//third_party/skia/src/ports/SkTLS_win.cpp", |
439 "//third_party/skia/src/ports/SkFontHost_win.cpp", | 363 "//third_party/skia/src/ports/SkTypeface_win_dw.cpp", |
440 "//third_party/skia/src/ports/SkFontMgr_win_dw.cpp", | 364 "//third_party/skia/src/ports/SkTypeface_win_dw.h", |
441 "//third_party/skia/src/ports/SkOSFile_win.cpp", | 365 "//third_party/skia/src/utils/SkThreadUtils_win.cpp", |
442 "//third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp", | 366 ] |
443 "//third_party/skia/src/ports/SkScalerContext_win_dw.cpp", | |
444 "//third_party/skia/src/ports/SkScalerContext_win_dw.h", | |
445 "//third_party/skia/src/ports/SkTLS_win.cpp", | |
446 "//third_party/skia/src/ports/SkTypeface_win_dw.cpp", | |
447 "//third_party/skia/src/ports/SkTypeface_win_dw.h", | |
448 ] | |
449 } | |
450 if (!is_android) { | 367 if (!is_android) { |
451 sources -= [ | 368 sources -= [ |
452 "//third_party/skia/src/ports/SkFontMgr_android.cpp", | 369 "//third_party/skia/src/ports/SkFontMgr_android.cpp", |
453 "//third_party/skia/src/ports/SkFontMgr_android_factory.cpp", | 370 "//third_party/skia/src/ports/SkFontMgr_android_factory.cpp", |
454 "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp", | 371 "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp", |
455 ] | 372 ] |
456 } | 373 } |
457 if (!is_mac && !is_ios) { | 374 if (!is_mac && !is_ios) { |
458 sources -= [ "//third_party/skia/src/ports/SkFontHost_mac.cpp" ] | 375 sources -= [ "//third_party/skia/src/ports/SkFontHost_mac.cpp" ] |
459 } | 376 } |
460 | 377 |
461 # On "Linux" (i.e., not Android), we use our a custom SkFontMgr. | 378 # On "Linux" (i.e., not Android), we use our a custom SkFontMgr. |
462 # TODO(vtl): We should probably do the same on Android. | 379 # TODO(vtl): We should probably do the same on Android. |
463 if (is_linux) { | 380 if (is_linux) { |
464 sources += [ | 381 sources += [ |
465 "//third_party/skia/src/ports/SkFontMgr_custom.cpp", | 382 "//third_party/skia/src/ports/SkFontMgr_custom.cpp", |
466 "ports/font_mgr_factory.cc", | 383 "ports/font_mgr_factory.cc", |
467 ] | 384 ] |
468 } | 385 } |
469 | 386 |
470 if (!is_linux && !is_android) { | 387 if (!is_linux && !is_android) { |
471 sources -= [ | 388 sources -= [ |
472 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", | 389 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", |
473 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", | 390 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", |
474 ] | 391 ] |
475 } | 392 } |
476 | 393 |
477 # Select the right BitmapPlatformDevice. | 394 # Select the right BitmapPlatformDevice. |
478 if (is_win) { | 395 if (is_mac || is_ios) { |
479 sources += [ | |
480 "ext/bitmap_platform_device_win.cc", | |
481 "ext/bitmap_platform_device_win.h", | |
482 ] | |
483 } else if (is_mac || is_ios) { | |
484 sources += [ | 396 sources += [ |
485 "ext/bitmap_platform_device_mac.cc", | 397 "ext/bitmap_platform_device_mac.cc", |
486 "ext/bitmap_platform_device_mac.h", | 398 "ext/bitmap_platform_device_mac.h", |
487 ] | 399 ] |
488 } else { | 400 } else { |
489 sources += [ | 401 sources += [ |
490 "ext/bitmap_platform_device_skia.cc", | 402 "ext/bitmap_platform_device_skia.cc", |
491 "ext/bitmap_platform_device_skia.h", | 403 "ext/bitmap_platform_device_skia.h", |
492 ] | 404 ] |
493 } | 405 } |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 } | 447 } |
536 } | 448 } |
537 | 449 |
538 # Separated out so it can be compiled with different flags for SSE. | 450 # Separated out so it can be compiled with different flags for SSE. |
539 source_set("skia_opts") { | 451 source_set("skia_opts") { |
540 cflags = [] | 452 cflags = [] |
541 defines = [] | 453 defines = [] |
542 | 454 |
543 if (current_cpu == "x86" || current_cpu == "x64") { | 455 if (current_cpu == "x86" || current_cpu == "x64") { |
544 sources = gypi_skia_opts.sse2_sources + gypi_skia_opts.ssse3_sources + | 456 sources = gypi_skia_opts.sse2_sources + gypi_skia_opts.ssse3_sources + |
545 gypi_skia_opts.sse41_sources + | 457 gypi_skia_opts.sse41_sources |
546 [ | |
547 # Chrome-specific. | |
548 "ext/convolver_SSE2.cc", | |
549 "ext/convolver_SSE2.h", | |
550 ] | |
551 | |
552 if (is_linux || is_mac) { | 458 if (is_linux || is_mac) { |
553 cflags += [ "-msse4.1" ] | 459 cflags += [ "-msse4.1" ] |
554 } | 460 } |
555 } else if (current_cpu == "arm") { | 461 } else if (current_cpu == "arm") { |
556 # The assembly uses the frame pointer register (r7 in Thumb/r11 in | 462 # The assembly uses the frame pointer register (r7 in Thumb/r11 in |
557 # ARM), the compiler doesn't like that. | 463 # ARM), the compiler doesn't like that. |
558 cflags += [ "-fomit-frame-pointer" ] | 464 cflags += [ "-fomit-frame-pointer" ] |
559 if (arm_version >= 7 && (arm_use_neon || arm_optionally_use_neon)) { | 465 if (arm_version >= 7 && (arm_use_neon || arm_optionally_use_neon)) { |
560 sources = gypi_skia_opts.armv7_sources | 466 sources = gypi_skia_opts.armv7_sources |
561 if (arm_use_neon || arm_optionally_use_neon) { | 467 if (arm_use_neon || arm_optionally_use_neon) { |
562 sources += gypi_skia_opts.neon_sources | 468 sources += gypi_skia_opts.neon_sources |
563 | 469 |
564 # Root build config sets -mfpu=$arm_fpu, which we expect to be neon | 470 # Root build config sets -mfpu=$arm_fpu, which we expect to be neon |
565 # when running this. | 471 # when running this. |
566 if (!arm_use_neon) { | 472 if (!arm_use_neon) { |
567 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] | 473 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] |
568 cflags += [ "-mfpu=neon" ] | 474 cflags += [ "-mfpu=neon" ] |
569 } | 475 } |
570 } | 476 } |
571 } else { | 477 } else { |
572 sources = gypi_skia_opts.none_sources | 478 sources = gypi_skia_opts.none_sources |
573 } | 479 } |
574 } else if (current_cpu == "arm64") { | 480 } else if (current_cpu == "arm64") { |
575 # TODO(1841): NEON sources are not currently used on arm64. | 481 # TODO(1841): NEON sources are not currently used on arm64. |
576 sources = gypi_skia_opts.none_sources | 482 sources = gypi_skia_opts.none_sources |
577 } else if (current_cpu == "mipsel") { | 483 } else if (current_cpu == "mipsel") { |
578 cflags += [ "-fomit-frame-pointer" ] | 484 cflags += [ "-fomit-frame-pointer" ] |
579 | 485 |
580 if (mips_dsp_rev >= 1) { | 486 sources = gypi_skia_opts.none_sources |
581 sources = gypi_skia_opts.mips_dsp_sources | |
582 if (mips_dsp_rev >= 2) { | |
583 sources += [ | |
584 # Chrome-specific. | |
585 "ext/convolver_mips_dspr2.cc", | |
586 "ext/convolver_mips_dspr2.h", | |
587 ] | |
588 } | |
589 } else { | |
590 sources = gypi_skia_opts.none_sources | |
591 } | |
592 } else { | 487 } else { |
593 assert(false, "Need to port cpu specific stuff from skia_library_opts.gyp") | 488 assert(false, "Need to port cpu specific stuff from skia_library_opts.gyp") |
594 } | 489 } |
595 | 490 |
596 if (is_android && !is_debug) { | 491 if (is_android && !is_debug) { |
597 configs -= [ "//build/config/compiler:optimize" ] | 492 configs -= [ "//build/config/compiler:optimize" ] |
598 configs += [ "//build/config/compiler:optimize_max" ] | 493 configs += [ "//build/config/compiler:optimize_max" ] |
599 } | 494 } |
600 | 495 |
601 configs -= [ "//build/config/compiler:chromium_code" ] | 496 configs -= [ "//build/config/compiler:chromium_code" ] |
602 configs += [ | 497 configs += [ |
603 ":skia_config", | 498 ":skia_config", |
604 ":skia_library_config", | 499 ":skia_library_config", |
605 "//build/config/compiler:no_chromium_code", | 500 "//build/config/compiler:no_chromium_code", |
606 ] | 501 ] |
607 | 502 |
608 deps = [ | 503 deps = [ |
609 "//base", | 504 "//base", |
610 ] | 505 ] |
611 | 506 |
612 visibility = [ ":skia" ] | 507 visibility = [ ":skia" ] |
613 } | 508 } |
614 | 509 |
615 test("skia_unittests") { | 510 test("skia_unittests") { |
616 sources = [ | 511 sources = [ |
617 "ext/analysis_canvas_unittest.cc", | |
618 "ext/bitmap_platform_device_mac_unittest.cc", | 512 "ext/bitmap_platform_device_mac_unittest.cc", |
619 "ext/convolver_unittest.cc", | |
620 "ext/image_operations_unittest.cc", | |
621 "ext/pixel_ref_utils_unittest.cc", | |
622 "ext/platform_canvas_unittest.cc", | 513 "ext/platform_canvas_unittest.cc", |
623 "ext/recursive_gaussian_convolution_unittest.cc", | |
624 "ext/refptr_unittest.cc", | 514 "ext/refptr_unittest.cc", |
625 "ext/skia_utils_ios_unittest.mm", | 515 "ext/skia_utils_ios_unittest.mm", |
626 "ext/skia_utils_mac_unittest.mm", | 516 "ext/skia_utils_mac_unittest.mm", |
627 ] | 517 ] |
628 | 518 |
629 if (!is_win && !is_mac) { | 519 if (!is_mac) { |
630 sources -= [ "ext/platform_canvas_unittest.cc" ] | 520 sources -= [ "ext/platform_canvas_unittest.cc" ] |
631 } | 521 } |
632 | 522 |
633 deps = [ | 523 deps = [ |
634 ":skia", | 524 ":skia", |
635 "//base", | 525 "//base", |
636 "//base/test:run_all_unittests", | 526 "//base/test:run_all_unittests", |
637 "//cc:test_support", # TODO: Fix this test to not depend on cc. | 527 "//cc:test_support", # TODO: Fix this test to not depend on cc. |
638 "//testing/gtest", | 528 "//testing/gtest", |
639 "//ui/gfx", | 529 "//ui/gfx", |
640 "//ui/gfx/geometry", | 530 "//ui/gfx/geometry", |
641 ] | 531 ] |
642 } | 532 } |
643 | 533 |
644 if (is_linux) { | 534 if (is_linux) { |
645 # TODO(GYP): Figure out which of these work and are needed on other platforms. | |
646 executable("image_operations_bench") { | |
647 sources = [ | |
648 "ext/image_operations_bench.cc", | |
649 ] | |
650 | |
651 deps = [ | |
652 ":skia", | |
653 "//base", | |
654 ] | |
655 } | |
656 | |
657 executable("filter_fuzz_stub") { | 535 executable("filter_fuzz_stub") { |
658 sources = [ | 536 sources = [ |
659 "tools/filter_fuzz_stub/filter_fuzz_stub.cc", | 537 "tools/filter_fuzz_stub/filter_fuzz_stub.cc", |
660 ] | 538 ] |
661 | 539 |
662 deps = [ | 540 deps = [ |
663 ":skia", | 541 ":skia", |
664 "//base", | 542 "//base", |
665 ] | 543 ] |
666 } | 544 } |
667 } | 545 } |
OLD | NEW |