OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 if (is_android) { | 8 if (is_android) { |
9 import("//build/config/android/config.gni") | 9 import("//build/config/android/config.gni") |
10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 sources -= [ | 445 sources -= [ |
446 "test/ui_cocoa_test_helper.h", | 446 "test/ui_cocoa_test_helper.h", |
447 "test/ui_cocoa_test_helper.mm", | 447 "test/ui_cocoa_test_helper.mm", |
448 ] | 448 ] |
449 } | 449 } |
450 if (is_linux) { | 450 if (is_linux) { |
451 configs += [ "//build/config/linux:fontconfig" ] | 451 configs += [ "//build/config/linux:fontconfig" ] |
452 } | 452 } |
453 } | 453 } |
454 | 454 |
| 455 # TODO(GYP): Delete this after we've converted everything to GN. |
| 456 # The _run targets exist only for compatibility w/ GYP. |
| 457 group("gfx_unittests_run") { |
| 458 testonly = true |
| 459 deps = [ |
| 460 ":gfx_unittests", |
| 461 ] |
| 462 } |
| 463 |
455 test("gfx_unittests") { | 464 test("gfx_unittests") { |
456 sources = [ | 465 sources = [ |
457 "font_render_params_linux_unittest.cc", | 466 "font_render_params_linux_unittest.cc", |
458 "font_unittest.cc", | 467 "font_unittest.cc", |
459 "image/image_family_unittest.cc", | 468 "image/image_family_unittest.cc", |
460 "image/image_ios_unittest.mm", | 469 "image/image_ios_unittest.mm", |
461 "image/image_skia_unittest.cc", | 470 "image/image_skia_unittest.cc", |
462 "image/image_unittest.cc", | 471 "image/image_unittest.cc", |
463 "platform_font_linux_unittest.cc", | 472 "platform_font_linux_unittest.cc", |
464 "screen_unittest.cc", | 473 "screen_unittest.cc", |
465 "test/run_all_unittests.cc", | 474 "test/run_all_unittests.cc", |
466 "text_elider_unittest.cc", | 475 "text_elider_unittest.cc", |
467 "text_utils_unittest.cc", | 476 "text_utils_unittest.cc", |
468 ] | 477 ] |
469 | 478 |
| 479 data = [ |
| 480 "test/data/", |
| 481 "$root_out_dir/ui_test.pak", |
| 482 ] |
| 483 |
470 if (!is_ios) { | 484 if (!is_ios) { |
471 sources += [ | 485 sources += [ |
472 "animation/animation_container_unittest.cc", | 486 "animation/animation_container_unittest.cc", |
473 "animation/animation_unittest.cc", | 487 "animation/animation_unittest.cc", |
474 "animation/multi_animation_unittest.cc", | 488 "animation/multi_animation_unittest.cc", |
475 "animation/slide_animation_unittest.cc", | 489 "animation/slide_animation_unittest.cc", |
476 "animation/tween_unittest.cc", | 490 "animation/tween_unittest.cc", |
477 "blit_unittest.cc", | 491 "blit_unittest.cc", |
478 "break_list_unittest.cc", | 492 "break_list_unittest.cc", |
479 "canvas_unittest.cc", | 493 "canvas_unittest.cc", |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 "//skia", | 543 "//skia", |
530 "//third_party/icu:icuuc", | 544 "//third_party/icu:icuuc", |
531 "//third_party/libpng", | 545 "//third_party/libpng", |
532 "//third_party/zlib", | 546 "//third_party/zlib", |
533 "//testing/gtest", | 547 "//testing/gtest", |
534 "//ui/base", | 548 "//ui/base", |
535 "//ui/gfx/geometry", | 549 "//ui/gfx/geometry", |
536 "//ui/resources:ui_test_pak", | 550 "//ui/resources:ui_test_pak", |
537 ] | 551 ] |
538 | 552 |
| 553 data_deps = [ "//ui/resources:ui_test_pak" ] |
| 554 |
539 if (!is_mac && !is_ios) { | 555 if (!is_mac && !is_ios) { |
540 sources += [ | 556 sources += [ |
541 "interpolated_transform_unittest.cc", | 557 "interpolated_transform_unittest.cc", |
542 "transform_unittest.cc", | 558 "transform_unittest.cc", |
543 ] | 559 ] |
544 } | 560 } |
545 | 561 |
546 if (is_android) { | 562 if (is_android) { |
547 sources -= [ | 563 sources -= [ |
548 # Do not run display_change_notifier_unittest.cc on Android because it | 564 # Do not run display_change_notifier_unittest.cc on Android because it |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 if (is_android) { | 608 if (is_android) { |
593 generate_jni("gfx_jni_headers") { | 609 generate_jni("gfx_jni_headers") { |
594 sources = [ | 610 sources = [ |
595 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", | 611 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", |
596 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", | 612 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", |
597 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", | 613 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", |
598 ] | 614 ] |
599 jni_package = "gfx" | 615 jni_package = "gfx" |
600 } | 616 } |
601 } | 617 } |
OLD | NEW |