Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1151)

Side by Side Diff: ui/gfx/BUILD.gn

Issue 1806033002: [iOS] Define bundle_data target for //ui unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@google_apis
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/resources/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 sources -= [ 629 sources -= [
630 "test/ui_cocoa_test_helper.h", 630 "test/ui_cocoa_test_helper.h",
631 "test/ui_cocoa_test_helper.mm", 631 "test/ui_cocoa_test_helper.mm",
632 ] 632 ]
633 } 633 }
634 if (is_linux) { 634 if (is_linux) {
635 deps += [ "//build/linux:fontconfig" ] 635 deps += [ "//build/linux:fontconfig" ]
636 } 636 }
637 } 637 }
638 638
639 bundle_data("gfx_unittests_bundle_data") {
640 sources = [
641 "test/data",
Dirk Pranke 2016/03/16 22:06:05 nit: trailing slash
sdefresne 2016/03/17 09:37:19 No, adding a trailing slash will cause an error as
642 ]
643 outputs = [
644 "{{bundle_resources_dir}}/" +
645 "{{source_root_relative_dir}}/{{source_file_part}}",
646 ]
647 }
648
639 test("gfx_unittests") { 649 test("gfx_unittests") {
640 sources = [ 650 sources = [
641 "font_render_params_linux_unittest.cc", 651 "font_render_params_linux_unittest.cc",
642 "font_unittest.cc", 652 "font_unittest.cc",
643 "image/image_family_unittest.cc", 653 "image/image_family_unittest.cc",
644 "image/image_ios_unittest.mm", 654 "image/image_ios_unittest.mm",
645 "image/image_skia_unittest.cc", 655 "image/image_skia_unittest.cc",
646 "image/image_unittest.cc", 656 "image/image_unittest.cc",
647 "ios/NSString+CrStringDrawing_unittest.mm", 657 "ios/NSString+CrStringDrawing_unittest.mm",
648 "ios/uikit_util_unittest.mm", 658 "ios/uikit_util_unittest.mm",
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 722
713 if (!is_android && !is_ios) { 723 if (!is_android && !is_ios) {
714 sources += [ "render_text_unittest.cc" ] 724 sources += [ "render_text_unittest.cc" ]
715 } 725 }
716 726
717 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 727 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
718 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 728 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
719 729
720 deps = [ 730 deps = [
721 ":gfx", 731 ":gfx",
732 ":gfx_unittests_bundle_data",
722 ":test_support", 733 ":test_support",
723 "//base", 734 "//base",
724 "//base/test:test_support", 735 "//base/test:test_support",
725 "//skia", 736 "//skia",
726 "//testing/gtest", 737 "//testing/gtest",
727 "//third_party/icu:icuuc", 738 "//third_party/icu:icuuc",
728 "//third_party/libpng", 739 "//third_party/libpng",
729 "//third_party/zlib", 740 "//third_party/zlib",
730 "//ui/base", 741 "//ui/base",
731 "//ui/gfx/geometry", 742 "//ui/gfx/geometry",
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 if (is_android) { 801 if (is_android) {
791 generate_jni("gfx_jni_headers") { 802 generate_jni("gfx_jni_headers") {
792 sources = [ 803 sources = [
793 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", 804 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java",
794 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", 805 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java",
795 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", 806 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java",
796 ] 807 ]
797 jni_package = "gfx" 808 jni_package = "gfx"
798 } 809 }
799 } 810 }
OLDNEW
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/resources/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698