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 import("//testing/libfuzzer/fuzzer_test.gni") | 7 import("//testing/libfuzzer/fuzzer_test.gni") |
8 | 8 |
9 if (is_android) { | 9 if (is_android) { |
10 import("//build/config/android/config.gni") | 10 import("//build/config/android/config.gni") |
(...skipping 26 matching lines...) Expand all Loading... |
37 "animation/animation.h", | 37 "animation/animation.h", |
38 "animation/animation_container.cc", | 38 "animation/animation_container.cc", |
39 "animation/animation_container.h", | 39 "animation/animation_container.h", |
40 "animation/animation_container_element.h", | 40 "animation/animation_container_element.h", |
41 "animation/animation_container_observer.h", | 41 "animation/animation_container_observer.h", |
42 "animation/animation_delegate.h", | 42 "animation/animation_delegate.h", |
43 "animation/animation_mac.mm", | 43 "animation/animation_mac.mm", |
44 "animation/animation_win.cc", | 44 "animation/animation_win.cc", |
45 "animation/linear_animation.cc", | 45 "animation/linear_animation.cc", |
46 "animation/linear_animation.h", | 46 "animation/linear_animation.h", |
47 "animation/multi_animation.cc", | |
48 "animation/multi_animation.h", | |
49 "animation/slide_animation.cc", | 47 "animation/slide_animation.cc", |
50 "animation/slide_animation.h", | 48 "animation/slide_animation.h", |
51 "animation/throb_animation.cc", | |
52 "animation/throb_animation.h", | |
53 "animation/tween.cc", | 49 "animation/tween.cc", |
54 "animation/tween.h", | 50 "animation/tween.h", |
55 "break_list.h", | 51 "break_list.h", |
56 "codec/jpeg_codec.cc", | 52 "codec/jpeg_codec.cc", |
57 "codec/jpeg_codec.h", | 53 "codec/jpeg_codec.h", |
58 "codec/png_codec.cc", | 54 "codec/png_codec.cc", |
59 "codec/png_codec.h", | 55 "codec/png_codec.h", |
60 "color_analysis.cc", | 56 "color_analysis.cc", |
61 "color_analysis.h", | 57 "color_analysis.h", |
62 "color_palette.h", | 58 "color_palette.h", |
63 "color_space.cc", | 59 "color_space.cc", |
64 "color_space.h", | 60 "color_space.h", |
65 "color_space_win.cc", | 61 "color_space_win.cc", |
66 "color_space_win.h", | 62 "color_space_win.h", |
67 "color_transform.cc", | 63 "color_transform.cc", |
68 "color_transform.h", | 64 "color_transform.h", |
69 "color_utils.cc", | 65 "color_utils.cc", |
70 "color_utils.h", | 66 "color_utils.h", |
71 "decorated_text.cc", | |
72 "decorated_text.h", | |
73 "favicon_size.cc", | 67 "favicon_size.cc", |
74 "favicon_size.h", | 68 "favicon_size.h", |
75 "font.cc", | 69 "font.cc", |
76 "font.h", | 70 "font.h", |
77 "font_fallback.h", | 71 "font_fallback.h", |
78 "font_fallback_linux.cc", | 72 "font_fallback_linux.cc", |
79 "font_fallback_linux.h", | 73 "font_fallback_linux.h", |
80 "font_fallback_mac.mm", | 74 "font_fallback_mac.mm", |
81 "font_fallback_win.cc", | 75 "font_fallback_win.cc", |
82 "font_fallback_win.h", | 76 "font_fallback_win.h", |
83 "font_list.cc", | 77 "font_list.cc", |
84 "font_list.h", | 78 "font_list.h", |
85 "font_list_impl.cc", | 79 "font_list_impl.cc", |
86 "font_list_impl.h", | 80 "font_list_impl.h", |
87 "font_render_params.cc", | 81 "font_render_params.cc", |
88 "font_render_params.h", | 82 "font_render_params.h", |
89 "font_render_params_android.cc", | 83 "font_render_params_android.cc", |
90 "font_render_params_linux.cc", | 84 "font_render_params_linux.cc", |
91 "font_render_params_mac.cc", | 85 "font_render_params_mac.cc", |
92 "font_render_params_win.cc", | 86 "font_render_params_win.cc", |
93 "gdi_util.cc", | 87 "gdi_util.cc", |
94 "gdi_util.h", | 88 "gdi_util.h", |
95 "gfx_paths.cc", | |
96 "gfx_paths.h", | |
97 "icc_profile.cc", | 89 "icc_profile.cc", |
98 "icc_profile.h", | 90 "icc_profile.h", |
99 "icc_profile_mac.mm", | 91 "icc_profile_mac.mm", |
100 "icc_profile_win.cc", | 92 "icc_profile_win.cc", |
101 "icc_profile_x11.cc", | 93 "icc_profile_x11.cc", |
102 "icon_util.cc", | 94 "icon_util.cc", |
103 "icon_util.h", | 95 "icon_util.h", |
104 "image/image.cc", | 96 "image/image.cc", |
105 "image/image.h", | 97 "image/image.h", |
106 "image/image_family.cc", | |
107 "image/image_family.h", | |
108 "image/image_ios.mm", | 98 "image/image_ios.mm", |
109 "image/image_mac.mm", | 99 "image/image_mac.mm", |
110 "image/image_png_rep.cc", | 100 "image/image_png_rep.cc", |
111 "image/image_png_rep.h", | 101 "image/image_png_rep.h", |
112 "image/image_skia.cc", | 102 "image/image_skia.cc", |
113 "image/image_skia.h", | 103 "image/image_skia.h", |
114 "image/image_skia_rep.cc", | 104 "image/image_skia_rep.cc", |
115 "image/image_skia_rep.h", | 105 "image/image_skia_rep.h", |
116 "image/image_skia_source.cc", | 106 "image/image_skia_source.cc", |
117 "image/image_skia_source.h", | 107 "image/image_skia_source.h", |
118 "image/image_skia_util_ios.h", | 108 "image/image_skia_util_ios.h", |
119 "image/image_skia_util_ios.mm", | 109 "image/image_skia_util_ios.mm", |
120 "image/image_skia_util_mac.h", | 110 "image/image_skia_util_mac.h", |
121 "image/image_skia_util_mac.mm", | 111 "image/image_skia_util_mac.mm", |
122 "image/image_util.cc", | 112 "image/image_util.cc", |
123 "image/image_util.h", | 113 "image/image_util.h", |
124 "image/image_util_ios.mm", | 114 "image/image_util_ios.mm", |
125 "interpolated_transform.cc", | |
126 "interpolated_transform.h", | |
127 "ios/NSString+CrStringDrawing.h", | 115 "ios/NSString+CrStringDrawing.h", |
128 "ios/NSString+CrStringDrawing.mm", | 116 "ios/NSString+CrStringDrawing.mm", |
129 "ios/uikit_util.h", | 117 "ios/uikit_util.h", |
130 "ios/uikit_util.mm", | 118 "ios/uikit_util.mm", |
131 "linux_font_delegate.cc", | |
132 "linux_font_delegate.h", | |
133 "mac/coordinate_conversion.h", | 119 "mac/coordinate_conversion.h", |
134 "mac/coordinate_conversion.mm", | 120 "mac/coordinate_conversion.mm", |
135 "mac/nswindow_frame_controls.h", | 121 "mac/nswindow_frame_controls.h", |
136 "mac/nswindow_frame_controls.mm", | 122 "mac/nswindow_frame_controls.mm", |
137 "mac/scoped_cocoa_disable_screen_updates.h", | 123 "mac/scoped_cocoa_disable_screen_updates.h", |
138 "nine_image_painter.cc", | 124 "nine_image_painter.cc", |
139 "nine_image_painter.h", | 125 "nine_image_painter.h", |
140 "path.cc", | |
141 "path.h", | |
142 "path_mac.h", | |
143 "path_mac.mm", | |
144 "path_win.cc", | |
145 "path_win.h", | |
146 "path_x11.cc", | 126 "path_x11.cc", |
147 "path_x11.h", | 127 "path_x11.h", |
148 "platform_font.h", | 128 "platform_font.h", |
149 "platform_font_android.cc", | 129 "platform_font_android.cc", |
150 "platform_font_ios.h", | 130 "platform_font_ios.h", |
151 "platform_font_ios.mm", | 131 "platform_font_ios.mm", |
152 "platform_font_linux.cc", | 132 "platform_font_linux.cc", |
153 "platform_font_linux.h", | 133 "platform_font_linux.h", |
154 "platform_font_mac.h", | 134 "platform_font_mac.h", |
155 "platform_font_mac.mm", | 135 "platform_font_mac.mm", |
156 "platform_font_win.cc", | 136 "platform_font_win.cc", |
157 "platform_font_win.h", | 137 "platform_font_win.h", |
158 "scoped_cg_context_save_gstate_mac.h", | |
159 "scoped_ns_graphics_context_save_gstate_mac.h", | |
160 "scoped_ns_graphics_context_save_gstate_mac.mm", | |
161 "scoped_ui_graphics_push_context_ios.h", | 138 "scoped_ui_graphics_push_context_ios.h", |
162 "scoped_ui_graphics_push_context_ios.mm", | 139 "scoped_ui_graphics_push_context_ios.mm", |
163 "scrollbar_size.cc", | |
164 "scrollbar_size.h", | |
165 "selection_model.cc", | |
166 "selection_model.h", | |
167 "sequential_id_generator.cc", | |
168 "sequential_id_generator.h", | |
169 "shadow_value.cc", | |
170 "shadow_value.h", | |
171 "skbitmap_operations.cc", | |
172 "skbitmap_operations.h", | |
173 "skia_util.cc", | 140 "skia_util.cc", |
174 "skia_util.h", | 141 "skia_util.h", |
175 "switches.cc", | |
176 "switches.h", | |
177 "sys_color_change_listener.cc", | 142 "sys_color_change_listener.cc", |
178 "sys_color_change_listener.h", | 143 "sys_color_change_listener.h", |
179 "text_constants.h", | 144 "text_constants.h", |
180 "text_elider.cc", | 145 "text_elider.cc", |
181 "text_elider.h", | 146 "text_elider.h", |
182 "text_utils.cc", | 147 "text_utils.cc", |
183 "text_utils.h", | 148 "text_utils.h", |
184 "text_utils_android.cc", | 149 "text_utils_android.cc", |
185 "text_utils_ios.mm", | 150 "text_utils_ios.mm", |
186 "transform.cc", | 151 "transform.cc", |
187 "transform.h", | 152 "transform.h", |
188 "transform_util.cc", | 153 "transform_util.cc", |
189 "transform_util.h", | 154 "transform_util.h", |
190 "ui_gfx_exports.cc", | |
191 "utf16_indexing.cc", | |
192 "utf16_indexing.h", | |
193 "vsync_provider.cc", | |
194 "vsync_provider.h", | |
195 "win/direct_manipulation.cc", | 155 "win/direct_manipulation.cc", |
196 "win/direct_manipulation.h", | 156 "win/direct_manipulation.h", |
197 "win/direct_write.cc", | 157 "win/direct_write.cc", |
198 "win/direct_write.h", | 158 "win/direct_write.h", |
199 "win/hwnd_util.cc", | 159 "win/hwnd_util.cc", |
200 "win/hwnd_util.h", | 160 "win/hwnd_util.h", |
201 "win/physical_size.cc", | 161 "win/physical_size.cc", |
202 "win/physical_size.h", | 162 "win/physical_size.h", |
203 "win/rendering_window_manager.cc", | 163 "win/rendering_window_manager.cc", |
204 "win/rendering_window_manager.h", | 164 "win/rendering_window_manager.h", |
205 "win/scoped_set_map_mode.h", | 165 "win/scoped_set_map_mode.h", |
206 "win/singleton_hwnd.cc", | 166 "win/singleton_hwnd.cc", |
207 "win/singleton_hwnd.h", | 167 "win/singleton_hwnd.h", |
208 "win/singleton_hwnd_observer.cc", | 168 "win/singleton_hwnd_observer.cc", |
209 "win/singleton_hwnd_observer.h", | 169 "win/singleton_hwnd_observer.h", |
210 "win/text_analysis_source.cc", | 170 "win/text_analysis_source.cc", |
211 "win/text_analysis_source.h", | 171 "win/text_analysis_source.h", |
212 "win/window_impl.cc", | 172 "win/window_impl.cc", |
213 "win/window_impl.h", | 173 "win/window_impl.h", |
214 ] | 174 ] |
215 if (!is_ios) { | 175 if (!is_ios) { |
216 sources += [ | 176 sources += [ |
| 177 "animation/multi_animation.cc", |
| 178 "animation/multi_animation.h", |
| 179 "animation/throb_animation.cc", |
| 180 "animation/throb_animation.h", |
217 "blit.cc", | 181 "blit.cc", |
218 "blit.h", | 182 "blit.h", |
219 "canvas.cc", | 183 "canvas.cc", |
220 "canvas.h", | 184 "canvas.h", |
221 "canvas_notimplemented.cc", | 185 "canvas_notimplemented.cc", |
222 "canvas_paint_mac.h", | 186 "canvas_paint_mac.h", |
223 "canvas_paint_mac.mm", | 187 "canvas_paint_mac.mm", |
224 "canvas_skia.cc", | 188 "canvas_skia.cc", |
225 "canvas_skia_paint.h", | 189 "canvas_skia_paint.h", |
| 190 "decorated_text.cc", |
| 191 "decorated_text.h", |
| 192 "gfx_paths.cc", |
| 193 "gfx_paths.h", |
226 "image/canvas_image_source.cc", | 194 "image/canvas_image_source.cc", |
227 "image/canvas_image_source.h", | 195 "image/canvas_image_source.h", |
| 196 "image/image_family.cc", |
| 197 "image/image_family.h", |
228 "image/image_skia_operations.cc", | 198 "image/image_skia_operations.cc", |
229 "image/image_skia_operations.h", | 199 "image/image_skia_operations.h", |
| 200 "interpolated_transform.cc", |
| 201 "interpolated_transform.h", |
| 202 "linux_font_delegate.cc", |
| 203 "linux_font_delegate.h", |
230 "paint_throbber.cc", | 204 "paint_throbber.cc", |
231 "paint_throbber.h", | 205 "paint_throbber.h", |
| 206 "path.cc", |
| 207 "path.h", |
| 208 "path_mac.h", |
| 209 "path_mac.mm", |
| 210 "path_win.cc", |
| 211 "path_win.h", |
232 "scoped_canvas.cc", | 212 "scoped_canvas.cc", |
233 "scoped_canvas.h", | 213 "scoped_canvas.h", |
| 214 "scoped_cg_context_save_gstate_mac.h", |
| 215 "scoped_ns_graphics_context_save_gstate_mac.h", |
| 216 "scoped_ns_graphics_context_save_gstate_mac.mm", |
| 217 "scrollbar_size.cc", |
| 218 "scrollbar_size.h", |
| 219 "selection_model.cc", |
| 220 "selection_model.h", |
| 221 "sequential_id_generator.cc", |
| 222 "sequential_id_generator.h", |
| 223 "shadow_value.cc", |
| 224 "shadow_value.h", |
| 225 "skbitmap_operations.cc", |
| 226 "skbitmap_operations.h", |
| 227 "switches.cc", |
| 228 "switches.h", |
| 229 "ui_gfx_exports.cc", |
| 230 "utf16_indexing.cc", |
| 231 "utf16_indexing.h", |
| 232 "vsync_provider.cc", |
| 233 "vsync_provider.h", |
234 ] | 234 ] |
235 } | 235 } |
236 | 236 |
237 configs += [ | 237 configs += [ |
238 "//build/config:precompiled_headers", | 238 "//build/config:precompiled_headers", |
239 | 239 |
240 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 240 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
241 "//build/config/compiler:no_size_t_to_int_warning", | 241 "//build/config/compiler:no_size_t_to_int_warning", |
242 ] | 242 ] |
243 | 243 |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 # Cannot be a static_library in component builds due to exported functions | 484 # Cannot be a static_library in component builds due to exported functions |
485 source_set("memory_buffer_sources") { | 485 source_set("memory_buffer_sources") { |
486 visibility = [ ":*" ] # Depend on through ":memory_buffer". | 486 visibility = [ ":*" ] # Depend on through ":memory_buffer". |
487 | 487 |
488 # TODO(brettw) refactor this so these sources are in a coherent directory | 488 # TODO(brettw) refactor this so these sources are in a coherent directory |
489 # structure rather than random samplings of ui/gfx and ui/gfx/mac. | 489 # structure rather than random samplings of ui/gfx and ui/gfx/mac. |
490 sources = [ | 490 sources = [ |
491 "buffer_format_util.cc", | 491 "buffer_format_util.cc", |
492 "buffer_format_util.h", | 492 "buffer_format_util.h", |
493 "buffer_types.h", | 493 "buffer_types.h", |
494 "generic_shared_memory_id.cc", | |
495 "generic_shared_memory_id.h", | |
496 "gfx_export.h", | 494 "gfx_export.h", |
497 "mac/io_surface.cc", | 495 "mac/io_surface.cc", |
498 "mac/io_surface.h", | 496 "mac/io_surface.h", |
499 "native_pixmap_handle.cc", | |
500 "native_pixmap_handle.h", | |
501 ] | 497 ] |
502 | 498 |
503 if (!is_ios) { | 499 if (!is_ios) { |
504 sources += [ | 500 sources += [ |
| 501 "generic_shared_memory_id.cc", |
| 502 "generic_shared_memory_id.h", |
505 "gpu_memory_buffer.cc", | 503 "gpu_memory_buffer.cc", |
506 "gpu_memory_buffer.h", | 504 "gpu_memory_buffer.h", |
507 "gpu_memory_buffer_tracing.cc", | 505 "gpu_memory_buffer_tracing.cc", |
508 "gpu_memory_buffer_tracing.h", | 506 "gpu_memory_buffer_tracing.h", |
| 507 "native_pixmap_handle.cc", |
| 508 "native_pixmap_handle.h", |
509 ] | 509 ] |
510 } | 510 } |
511 | 511 |
512 defines = [ "GFX_IMPLEMENTATION" ] | 512 defines = [ "GFX_IMPLEMENTATION" ] |
513 | 513 |
514 deps = [ | 514 deps = [ |
515 "//base", | 515 "//base", |
516 "//ui/gfx/geometry", | 516 "//ui/gfx/geometry", |
517 ] | 517 ] |
518 } | 518 } |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 deps += [ "//build/linux:fontconfig" ] | 555 deps += [ "//build/linux:fontconfig" ] |
556 } | 556 } |
557 } | 557 } |
558 | 558 |
559 test("gfx_unittests") { | 559 test("gfx_unittests") { |
560 sources = [ | 560 sources = [ |
561 "font_names_testing.cc", | 561 "font_names_testing.cc", |
562 "font_names_testing.h", | 562 "font_names_testing.h", |
563 "font_render_params_linux_unittest.cc", | 563 "font_render_params_linux_unittest.cc", |
564 "font_unittest.cc", | 564 "font_unittest.cc", |
565 "image/image_family_unittest.cc", | |
566 "image/image_ios_unittest.mm", | 565 "image/image_ios_unittest.mm", |
567 "image/image_skia_unittest.cc", | 566 "image/image_skia_unittest.cc", |
568 "image/image_unittest.cc", | 567 "image/image_unittest.cc", |
569 "ios/NSString+CrStringDrawing_unittest.mm", | 568 "ios/NSString+CrStringDrawing_unittest.mm", |
570 "ios/uikit_util_unittest.mm", | 569 "ios/uikit_util_unittest.mm", |
571 "platform_font_linux_unittest.cc", | 570 "platform_font_linux_unittest.cc", |
572 "test/run_all_unittests.cc", | 571 "test/run_all_unittests.cc", |
573 "text_elider_unittest.cc", | 572 "text_elider_unittest.cc", |
574 "text_utils_unittest.cc", | 573 "text_utils_unittest.cc", |
575 ] | 574 ] |
(...skipping 27 matching lines...) Expand all Loading... |
603 "geometry/matrix3_unittest.cc", | 602 "geometry/matrix3_unittest.cc", |
604 "geometry/point3_unittest.cc", | 603 "geometry/point3_unittest.cc", |
605 "geometry/point_unittest.cc", | 604 "geometry/point_unittest.cc", |
606 "geometry/quad_unittest.cc", | 605 "geometry/quad_unittest.cc", |
607 "geometry/rect_unittest.cc", | 606 "geometry/rect_unittest.cc", |
608 "geometry/safe_integer_conversions_unittest.cc", | 607 "geometry/safe_integer_conversions_unittest.cc", |
609 "geometry/scroll_offset_unittest.cc", | 608 "geometry/scroll_offset_unittest.cc", |
610 "geometry/size_unittest.cc", | 609 "geometry/size_unittest.cc", |
611 "geometry/vector2d_unittest.cc", | 610 "geometry/vector2d_unittest.cc", |
612 "geometry/vector3d_unittest.cc", | 611 "geometry/vector3d_unittest.cc", |
| 612 "image/image_family_unittest.cc", |
613 "image/image_mac_unittest.mm", | 613 "image/image_mac_unittest.mm", |
614 "image/image_util_unittest.cc", | 614 "image/image_util_unittest.cc", |
615 "mac/coordinate_conversion_unittest.mm", | 615 "mac/coordinate_conversion_unittest.mm", |
616 "mojo/struct_traits_unittest.cc", | 616 "mojo/struct_traits_unittest.cc", |
617 "nine_image_painter_unittest.cc", | 617 "nine_image_painter_unittest.cc", |
618 "path_mac_unittest.mm", | 618 "path_mac_unittest.mm", |
619 "platform_font_mac_unittest.mm", | 619 "platform_font_mac_unittest.mm", |
620 "range/range_mac_unittest.mm", | 620 "range/range_mac_unittest.mm", |
621 "range/range_unittest.cc", | 621 "range/range_unittest.cc", |
622 "range/range_win_unittest.cc", | 622 "range/range_win_unittest.cc", |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 | 724 |
725 fuzzer_test("color_transform_fuzztest") { | 725 fuzzer_test("color_transform_fuzztest") { |
726 sources = [ | 726 sources = [ |
727 "color_transform_fuzzer.cc", | 727 "color_transform_fuzzer.cc", |
728 ] | 728 ] |
729 deps = [ | 729 deps = [ |
730 ":gfx", | 730 ":gfx", |
731 ] | 731 ] |
732 libfuzzer_options = [ "max_len=1024" ] | 732 libfuzzer_options = [ "max_len=1024" ] |
733 } | 733 } |
OLD | NEW |