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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 sources -= [ | 620 sources -= [ |
621 "test/ui_cocoa_test_helper.h", | 621 "test/ui_cocoa_test_helper.h", |
622 "test/ui_cocoa_test_helper.mm", | 622 "test/ui_cocoa_test_helper.mm", |
623 ] | 623 ] |
624 } | 624 } |
625 if (is_linux) { | 625 if (is_linux) { |
626 deps += [ "//build/linux:fontconfig" ] | 626 deps += [ "//build/linux:fontconfig" ] |
627 } | 627 } |
628 } | 628 } |
629 | 629 |
| 630 # TODO(GYP): Delete this after we've converted everything to GN. |
| 631 # The _run targets exist only for compatibility w/ GYP. |
| 632 group("gfx_unittests_run") { |
| 633 testonly = true |
| 634 deps = [ |
| 635 ":gfx_unittests", |
| 636 ] |
| 637 } |
| 638 |
630 test("gfx_unittests") { | 639 test("gfx_unittests") { |
631 sources = [ | 640 sources = [ |
632 "font_render_params_linux_unittest.cc", | 641 "font_render_params_linux_unittest.cc", |
633 "font_unittest.cc", | 642 "font_unittest.cc", |
634 "image/image_family_unittest.cc", | 643 "image/image_family_unittest.cc", |
635 "image/image_ios_unittest.mm", | 644 "image/image_ios_unittest.mm", |
636 "image/image_skia_unittest.cc", | 645 "image/image_skia_unittest.cc", |
637 "image/image_unittest.cc", | 646 "image/image_unittest.cc", |
638 "ios/NSString+CrStringDrawing_unittest.mm", | 647 "ios/NSString+CrStringDrawing_unittest.mm", |
639 "ios/uikit_util_unittest.mm", | 648 "ios/uikit_util_unittest.mm", |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
779 if (is_android) { | 788 if (is_android) { |
780 generate_jni("gfx_jni_headers") { | 789 generate_jni("gfx_jni_headers") { |
781 sources = [ | 790 sources = [ |
782 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", | 791 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", |
783 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", | 792 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", |
784 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", | 793 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", |
785 ] | 794 ] |
786 jni_package = "gfx" | 795 jni_package = "gfx" |
787 } | 796 } |
788 } | 797 } |
OLD | NEW |