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

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

Issue 1964153002: Move Screen, its impls, DisplayObserver and DisplayChangeNotifier to ui/display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tabs Created 4 years, 7 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/events/events.gyp ('k') | ui/gfx/display_change_notifier.h » ('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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 "color_analysis.h", 63 "color_analysis.h",
64 "color_palette.h", 64 "color_palette.h",
65 "color_profile.cc", 65 "color_profile.cc",
66 "color_profile.h", 66 "color_profile.h",
67 "color_profile_mac.mm", 67 "color_profile_mac.mm",
68 "color_profile_win.cc", 68 "color_profile_win.cc",
69 "color_utils.cc", 69 "color_utils.cc",
70 "color_utils.h", 70 "color_utils.h",
71 "display.cc", 71 "display.cc",
72 "display.h", 72 "display.h",
73 "display_change_notifier.cc",
74 "display_change_notifier.h",
75 "display_observer.cc",
76 "display_observer.h",
77 "favicon_size.cc", 73 "favicon_size.cc",
78 "favicon_size.h", 74 "favicon_size.h",
79 "font.cc", 75 "font.cc",
80 "font.h", 76 "font.h",
81 "font_fallback.h", 77 "font_fallback.h",
82 "font_fallback_linux.cc", 78 "font_fallback_linux.cc",
83 "font_fallback_linux.h", 79 "font_fallback_linux.h",
84 "font_fallback_mac.mm", 80 "font_fallback_mac.mm",
85 "font_fallback_win.cc", 81 "font_fallback_win.cc",
86 "font_fallback_win.h", 82 "font_fallback_win.h",
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 "platform_font_mac.h", 149 "platform_font_mac.h",
154 "platform_font_mac.mm", 150 "platform_font_mac.mm",
155 "platform_font_win.cc", 151 "platform_font_win.cc",
156 "platform_font_win.h", 152 "platform_font_win.h",
157 "scoped_canvas.h", 153 "scoped_canvas.h",
158 "scoped_cg_context_save_gstate_mac.h", 154 "scoped_cg_context_save_gstate_mac.h",
159 "scoped_ns_graphics_context_save_gstate_mac.h", 155 "scoped_ns_graphics_context_save_gstate_mac.h",
160 "scoped_ns_graphics_context_save_gstate_mac.mm", 156 "scoped_ns_graphics_context_save_gstate_mac.mm",
161 "scoped_ui_graphics_push_context_ios.h", 157 "scoped_ui_graphics_push_context_ios.h",
162 "scoped_ui_graphics_push_context_ios.mm", 158 "scoped_ui_graphics_push_context_ios.mm",
163 "screen.cc",
164 "screen.h",
165 "screen_android.cc",
166 "screen_aura.cc",
167 "screen_ios.mm",
168 "screen_mac.mm",
169 "scrollbar_size.cc", 159 "scrollbar_size.cc",
170 "scrollbar_size.h", 160 "scrollbar_size.h",
171 "selection_model.cc", 161 "selection_model.cc",
172 "selection_model.h", 162 "selection_model.h",
173 "sequential_id_generator.cc", 163 "sequential_id_generator.cc",
174 "sequential_id_generator.h", 164 "sequential_id_generator.h",
175 "shadow_value.cc", 165 "shadow_value.cc",
176 "shadow_value.h", 166 "shadow_value.h",
177 "skbitmap_operations.cc", 167 "skbitmap_operations.cc",
178 "skbitmap_operations.h", 168 "skbitmap_operations.h",
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 "codec/jpeg_codec.cc", 295 "codec/jpeg_codec.cc",
306 "codec/jpeg_codec.h", 296 "codec/jpeg_codec.h",
307 ] 297 ]
308 } else { 298 } else {
309 deps += [ "//third_party:jpeg" ] 299 deps += [ "//third_party:jpeg" ]
310 } 300 }
311 301
312 # Android. 302 # Android.
313 if (is_android) { 303 if (is_android) {
314 if (use_aura) { 304 if (use_aura) {
315 sources -= [ 305 sources -= [ "canvas_notimplemented.cc" ]
316 "canvas_notimplemented.cc",
317 "screen_android.cc",
318 ]
319 sources += [ "font_fallback_android.cc" ] 306 sources += [ "font_fallback_android.cc" ]
320 } else { 307 } else {
321 sources -= [ 308 sources -= [
322 "animation/throb_animation.cc", 309 "animation/throb_animation.cc",
323 "canvas_skia.cc", 310 "canvas_skia.cc",
324 "path.cc", 311 "path.cc",
325 "selection_model.cc", 312 "selection_model.cc",
326 ] 313 ]
327 } 314 }
328 315
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 "chromeos/codec/jpeg_codec_robust_slow.h", 373 "chromeos/codec/jpeg_codec_robust_slow.h",
387 ] 374 ]
388 deps += [ "//third_party/libjpeg" ] 375 deps += [ "//third_party/libjpeg" ]
389 } 376 }
390 377
391 if (is_mac) { 378 if (is_mac) {
392 libs = [ "IOSurface.framework" ] 379 libs = [ "IOSurface.framework" ]
393 } 380 }
394 381
395 if (!use_aura) { 382 if (!use_aura) {
396 sources -= [ "screen_aura.cc" ]
397 if (!toolkit_views) { 383 if (!toolkit_views) {
398 sources -= [ 384 sources -= [
399 "nine_image_painter.cc", 385 "nine_image_painter.cc",
400 "nine_image_painter.h", 386 "nine_image_painter.h",
401 ] 387 ]
402 } 388 }
403 } 389 }
404 390
405 if (use_x11) { 391 if (use_x11) {
406 deps += [ "//ui/gfx/x" ] 392 deps += [ "//ui/gfx/x" ]
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 sources = [ 671 sources = [
686 "font_render_params_linux_unittest.cc", 672 "font_render_params_linux_unittest.cc",
687 "font_unittest.cc", 673 "font_unittest.cc",
688 "image/image_family_unittest.cc", 674 "image/image_family_unittest.cc",
689 "image/image_ios_unittest.mm", 675 "image/image_ios_unittest.mm",
690 "image/image_skia_unittest.cc", 676 "image/image_skia_unittest.cc",
691 "image/image_unittest.cc", 677 "image/image_unittest.cc",
692 "ios/NSString+CrStringDrawing_unittest.mm", 678 "ios/NSString+CrStringDrawing_unittest.mm",
693 "ios/uikit_util_unittest.mm", 679 "ios/uikit_util_unittest.mm",
694 "platform_font_linux_unittest.cc", 680 "platform_font_linux_unittest.cc",
695 "screen_unittest.cc",
696 "test/run_all_unittests.cc", 681 "test/run_all_unittests.cc",
697 "text_elider_unittest.cc", 682 "text_elider_unittest.cc",
698 "text_utils_unittest.cc", 683 "text_utils_unittest.cc",
699 ] 684 ]
700 685
701 data = [ 686 data = [
702 "test/data/", 687 "test/data/",
703 "$root_out_dir/ui_test.pak", 688 "$root_out_dir/ui_test.pak",
704 ] 689 ]
705 690
706 if (!is_ios) { 691 if (!is_ios) {
707 sources += [ 692 sources += [
708 "animation/animation_container_unittest.cc", 693 "animation/animation_container_unittest.cc",
709 "animation/animation_unittest.cc", 694 "animation/animation_unittest.cc",
710 "animation/multi_animation_unittest.cc", 695 "animation/multi_animation_unittest.cc",
711 "animation/slide_animation_unittest.cc", 696 "animation/slide_animation_unittest.cc",
712 "animation/tween_unittest.cc", 697 "animation/tween_unittest.cc",
713 "blit_unittest.cc", 698 "blit_unittest.cc",
714 "break_list_unittest.cc", 699 "break_list_unittest.cc",
715 "canvas_unittest.cc", 700 "canvas_unittest.cc",
716 "canvas_unittest_mac.mm", 701 "canvas_unittest_mac.mm",
717 "codec/jpeg_codec_unittest.cc", 702 "codec/jpeg_codec_unittest.cc",
718 "codec/png_codec_unittest.cc", 703 "codec/png_codec_unittest.cc",
719 "color_analysis_unittest.cc", 704 "color_analysis_unittest.cc",
720 "color_profile_mac_unittest.mm", 705 "color_profile_mac_unittest.mm",
721 "color_utils_unittest.cc", 706 "color_utils_unittest.cc",
722 "display_change_notifier_unittest.cc",
723 "display_unittest.cc",
724 "font_fallback_mac_unittest.cc", 707 "font_fallback_mac_unittest.cc",
725 "font_list_unittest.cc", 708 "font_list_unittest.cc",
726 "geometry/box_unittest.cc", 709 "geometry/box_unittest.cc",
727 "geometry/cubic_bezier_unittest.cc", 710 "geometry/cubic_bezier_unittest.cc",
728 "geometry/insets_unittest.cc", 711 "geometry/insets_unittest.cc",
729 "geometry/matrix3_unittest.cc", 712 "geometry/matrix3_unittest.cc",
730 "geometry/point3_unittest.cc", 713 "geometry/point3_unittest.cc",
731 "geometry/point_unittest.cc", 714 "geometry/point_unittest.cc",
732 "geometry/quad_unittest.cc", 715 "geometry/quad_unittest.cc",
733 "geometry/rect_unittest.cc", 716 "geometry/rect_unittest.cc",
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 766
784 if (!is_mac && !is_ios) { 767 if (!is_mac && !is_ios) {
785 sources += [ 768 sources += [
786 "interpolated_transform_unittest.cc", 769 "interpolated_transform_unittest.cc",
787 "transform_unittest.cc", 770 "transform_unittest.cc",
788 ] 771 ]
789 } 772 }
790 773
791 if (is_android) { 774 if (is_android) {
792 deps += [ "//ui/android:ui_java" ] 775 deps += [ "//ui/android:ui_java" ]
793
794 sources -= [
795 # Do not run display_change_notifier_unittest.cc on Android because it
796 # does not compile display_observer.cc
797 "display_change_notifier_unittest.cc",
798 ]
799 } 776 }
800 777
801 if (use_aura) { 778 if (!use_aura && !is_ios) {
802 sources -= [ "screen_unittest.cc" ]
803 } else if (!is_ios) {
804 sources -= [ "nine_image_painter_unittest.cc" ] 779 sources -= [ "nine_image_painter_unittest.cc" ]
805 } 780 }
806 781
807 if (is_chromeos) { 782 if (is_chromeos) {
808 sources += [ "chromeos/codec/jpeg_codec_robust_slow_unittest.cc" ] 783 sources += [ "chromeos/codec/jpeg_codec_robust_slow_unittest.cc" ]
809 } 784 }
810 785
811 if (is_win) { 786 if (is_win) {
812 sources += [ 787 sources += [
813 "color_profile_win_unittest.cc", 788 "color_profile_win_unittest.cc",
(...skipping 21 matching lines...) Expand all
835 if (is_android) { 810 if (is_android) {
836 generate_jni("gfx_jni_headers") { 811 generate_jni("gfx_jni_headers") {
837 sources = [ 812 sources = [
838 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", 813 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java",
839 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", 814 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java",
840 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", 815 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java",
841 ] 816 ]
842 jni_package = "gfx" 817 jni_package = "gfx"
843 } 818 }
844 } 819 }
OLDNEW
« no previous file with comments | « ui/events/events.gyp ('k') | ui/gfx/display_change_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698