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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 "animation/linear_animation.h", | 48 "animation/linear_animation.h", |
49 "animation/multi_animation.cc", | 49 "animation/multi_animation.cc", |
50 "animation/multi_animation.h", | 50 "animation/multi_animation.h", |
51 "animation/slide_animation.cc", | 51 "animation/slide_animation.cc", |
52 "animation/slide_animation.h", | 52 "animation/slide_animation.h", |
53 "animation/throb_animation.cc", | 53 "animation/throb_animation.cc", |
54 "animation/throb_animation.h", | 54 "animation/throb_animation.h", |
55 "animation/tween.cc", | 55 "animation/tween.cc", |
56 "animation/tween.h", | 56 "animation/tween.h", |
57 "break_list.h", | 57 "break_list.h", |
58 "buffer_format_util.cc", | |
59 "buffer_format_util.h", | |
60 "codec/jpeg_codec.cc", | 58 "codec/jpeg_codec.cc", |
61 "codec/jpeg_codec.h", | 59 "codec/jpeg_codec.h", |
62 "codec/png_codec.cc", | 60 "codec/png_codec.cc", |
63 "codec/png_codec.h", | 61 "codec/png_codec.h", |
64 "color_analysis.cc", | 62 "color_analysis.cc", |
65 "color_analysis.h", | 63 "color_analysis.h", |
66 "color_palette.h", | 64 "color_palette.h", |
67 "color_profile.cc", | 65 "color_profile.cc", |
68 "color_profile.h", | 66 "color_profile.h", |
69 "color_profile_mac.mm", | 67 "color_profile_mac.mm", |
(...skipping 22 matching lines...) Expand all Loading... |
92 "font_list_impl.cc", | 90 "font_list_impl.cc", |
93 "font_list_impl.h", | 91 "font_list_impl.h", |
94 "font_render_params.cc", | 92 "font_render_params.cc", |
95 "font_render_params.h", | 93 "font_render_params.h", |
96 "font_render_params_android.cc", | 94 "font_render_params_android.cc", |
97 "font_render_params_linux.cc", | 95 "font_render_params_linux.cc", |
98 "font_render_params_mac.cc", | 96 "font_render_params_mac.cc", |
99 "font_render_params_win.cc", | 97 "font_render_params_win.cc", |
100 "gdi_util.cc", | 98 "gdi_util.cc", |
101 "gdi_util.h", | 99 "gdi_util.h", |
102 "generic_shared_memory_id.cc", | |
103 "generic_shared_memory_id.h", | |
104 "gfx_paths.cc", | 100 "gfx_paths.cc", |
105 "gfx_paths.h", | 101 "gfx_paths.h", |
106 "icon_util.cc", | 102 "icon_util.cc", |
107 "icon_util.h", | 103 "icon_util.h", |
108 "image/image.cc", | 104 "image/image.cc", |
109 "image/image.h", | 105 "image/image.h", |
110 "image/image_family.cc", | 106 "image/image_family.cc", |
111 "image/image_family.h", | 107 "image/image_family.h", |
112 "image/image_ios.mm", | 108 "image/image_ios.mm", |
113 "image/image_mac.mm", | 109 "image/image_mac.mm", |
(...skipping 14 matching lines...) Expand all Loading... |
128 "interpolated_transform.cc", | 124 "interpolated_transform.cc", |
129 "interpolated_transform.h", | 125 "interpolated_transform.h", |
130 "ios/NSString+CrStringDrawing.h", | 126 "ios/NSString+CrStringDrawing.h", |
131 "ios/NSString+CrStringDrawing.mm", | 127 "ios/NSString+CrStringDrawing.mm", |
132 "ios/uikit_util.h", | 128 "ios/uikit_util.h", |
133 "ios/uikit_util.mm", | 129 "ios/uikit_util.mm", |
134 "linux_font_delegate.cc", | 130 "linux_font_delegate.cc", |
135 "linux_font_delegate.h", | 131 "linux_font_delegate.h", |
136 "mac/coordinate_conversion.h", | 132 "mac/coordinate_conversion.h", |
137 "mac/coordinate_conversion.mm", | 133 "mac/coordinate_conversion.mm", |
138 "mac/io_surface.cc", | |
139 "mac/io_surface.h", | |
140 "mac/nswindow_frame_controls.h", | 134 "mac/nswindow_frame_controls.h", |
141 "mac/nswindow_frame_controls.mm", | 135 "mac/nswindow_frame_controls.mm", |
142 "mac/scoped_cocoa_disable_screen_updates.h", | 136 "mac/scoped_cocoa_disable_screen_updates.h", |
143 "native_widget_types.h", | |
144 "nine_image_painter.cc", | 137 "nine_image_painter.cc", |
145 "nine_image_painter.h", | 138 "nine_image_painter.h", |
146 "path.cc", | 139 "path.cc", |
147 "path.h", | 140 "path.h", |
148 "path_mac.h", | 141 "path_mac.h", |
149 "path_mac.mm", | 142 "path_mac.mm", |
150 "path_win.cc", | 143 "path_win.cc", |
151 "path_win.h", | 144 "path_win.h", |
152 "path_x11.cc", | 145 "path_x11.cc", |
153 "path_x11.h", | 146 "path_x11.h", |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 sources += [ | 233 sources += [ |
241 "blit.cc", | 234 "blit.cc", |
242 "blit.h", | 235 "blit.h", |
243 "canvas.cc", | 236 "canvas.cc", |
244 "canvas.h", | 237 "canvas.h", |
245 "canvas_notimplemented.cc", | 238 "canvas_notimplemented.cc", |
246 "canvas_paint_mac.h", | 239 "canvas_paint_mac.h", |
247 "canvas_paint_mac.mm", | 240 "canvas_paint_mac.mm", |
248 "canvas_skia.cc", | 241 "canvas_skia.cc", |
249 "canvas_skia_paint.h", | 242 "canvas_skia_paint.h", |
250 "gpu_memory_buffer.cc", | |
251 "gpu_memory_buffer.h", | |
252 "image/canvas_image_source.cc", | 243 "image/canvas_image_source.cc", |
253 "image/canvas_image_source.h", | 244 "image/canvas_image_source.h", |
254 "image/image_skia_operations.cc", | 245 "image/image_skia_operations.cc", |
255 "image/image_skia_operations.h", | 246 "image/image_skia_operations.h", |
256 "paint_throbber.cc", | 247 "paint_throbber.cc", |
257 "paint_throbber.h", | 248 "paint_throbber.h", |
258 ] | 249 ] |
259 } | 250 } |
260 | 251 |
261 configs += [ | 252 configs += [ |
262 "//build/config:precompiled_headers", | 253 "//build/config:precompiled_headers", |
263 | 254 |
264 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 255 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
265 "//build/config/compiler:no_size_t_to_int_warning", | 256 "//build/config/compiler:no_size_t_to_int_warning", |
266 ] | 257 ] |
267 | 258 |
| 259 # This is part of the gfx component in the component build. |
268 defines = [ "GFX_IMPLEMENTATION" ] | 260 defines = [ "GFX_IMPLEMENTATION" ] |
269 | 261 |
270 deps = [ | 262 deps = [ |
271 ":gfx_export", | 263 ":gfx_export", |
272 "//base", | 264 "//base", |
273 "//base:base_static", | 265 "//base:base_static", |
274 "//base:i18n", | 266 "//base:i18n", |
275 "//base/third_party/dynamic_annotations", | 267 "//base/third_party/dynamic_annotations", |
276 "//skia", | 268 "//skia", |
277 "//third_party/harfbuzz-ng", | 269 "//third_party/harfbuzz-ng", |
278 "//third_party/libpng", | 270 "//third_party/libpng", |
279 "//third_party/zlib", | 271 "//third_party/zlib", |
280 "//ui/gfx/geometry", | 272 "//ui/gfx/geometry", |
281 ] | 273 ] |
282 public_deps = [ | 274 public_deps = [ |
| 275 ":memory_buffer_sources", |
| 276 ":native_widget_types", |
283 "//base", | 277 "//base", |
284 "//skia", | 278 "//skia", |
285 "//third_party/icu", | 279 "//third_party/icu", |
286 ] | 280 ] |
287 | 281 |
288 # Text rendering conditions (complicated so separated out). | 282 # Text rendering conditions (complicated so separated out). |
289 if (use_aura || is_mac) { | 283 if (use_aura || is_mac) { |
290 # Mac doesn't use RenderTextHarfBuzz by default yet. | 284 # Mac doesn't use RenderTextHarfBuzz by default yet. |
291 sources += [ | 285 sources += [ |
292 "harfbuzz_font_skia.cc", | 286 "harfbuzz_font_skia.cc", |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 } | 415 } |
422 } | 416 } |
423 | 417 |
424 if (use_x11) { | 418 if (use_x11) { |
425 deps += [ "//ui/gfx/x" ] | 419 deps += [ "//ui/gfx/x" ] |
426 configs += [ "//build/config/linux:x11" ] | 420 configs += [ "//build/config/linux:x11" ] |
427 } else { | 421 } else { |
428 sources -= [ "path_x11.cc" ] | 422 sources -= [ "path_x11.cc" ] |
429 } | 423 } |
430 | 424 |
431 if (use_ozone) { | |
432 sources += [ "native_pixmap_handle_ozone.h" ] | |
433 } | |
434 | |
435 if (use_cairo) { | 425 if (use_cairo) { |
436 configs += [ "//build/config/linux:pangocairo" ] | 426 configs += [ "//build/config/linux:pangocairo" ] |
437 } | 427 } |
438 } | 428 } |
439 | 429 |
440 # GYP version: ui/gfx/gfx.gyp:aggregate_vector_icons | 430 # GYP version: ui/gfx/gfx.gyp:aggregate_vector_icons |
441 action("aggregate_vector_icons") { | 431 action("aggregate_vector_icons") { |
442 script = "vector_icons/aggregate_vector_icons.py" | 432 script = "vector_icons/aggregate_vector_icons.py" |
443 | 433 |
444 # TODO(estade): move all platform-specific icons into their own directories. | 434 # TODO(estade): move all platform-specific icons into their own directories. |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 # tracking since if a file is deleted, the command line will be the same | 577 # tracking since if a file is deleted, the command line will be the same |
588 # and the action will not be re-run. | 578 # and the action will not be re-run. |
589 "--working_directory=" + rebase_path("vector_icons/"), | 579 "--working_directory=" + rebase_path("vector_icons/"), |
590 "--output_cc=" + rebase_path(vector_icons_cc_file, root_build_dir), | 580 "--output_cc=" + rebase_path(vector_icons_cc_file, root_build_dir), |
591 "--output_h=" + rebase_path(vector_icons_h_file, root_build_dir), | 581 "--output_h=" + rebase_path(vector_icons_h_file, root_build_dir), |
592 ] | 582 ] |
593 } | 583 } |
594 | 584 |
595 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry | 585 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry |
596 | 586 |
| 587 # Depend on this to use native_widget_types.h without pulling in all of gfx. |
| 588 source_set("native_widget_types") { |
| 589 public = [ |
| 590 "native_widget_types.h", |
| 591 ] |
| 592 |
| 593 public_deps = [ |
| 594 "//base", |
| 595 ] |
| 596 } |
| 597 |
| 598 # The GPU memory buffer stuff is separate from "gfx" to allow GPU-related |
| 599 # things to use these files without pulling in all of gfx, which includes large |
| 600 # things like Skia. |
| 601 # |
| 602 # The structure here allows the memory buffer to be part of the gfx component |
| 603 # in the component build, but be a separate source set in a static build. |
| 604 group("memory_buffer") { |
| 605 if (is_component_build) { |
| 606 public_deps = [ |
| 607 ":gfx", |
| 608 ] |
| 609 } else { |
| 610 public_deps = [ |
| 611 ":memory_buffer_sources", |
| 612 ] |
| 613 } |
| 614 } |
| 615 source_set("memory_buffer_sources") { |
| 616 visibility = [ ":*" ] # Depend on through ":memory_buffer". |
| 617 |
| 618 # TODO(brettw) refactor this so these sources are in a coherent directory |
| 619 # structure rather than random samplings of ui/gfx and ui/gfx/mac. |
| 620 sources = [ |
| 621 "buffer_format_util.cc", |
| 622 "buffer_format_util.h", |
| 623 "buffer_types.h", |
| 624 "generic_shared_memory_id.cc", |
| 625 "generic_shared_memory_id.h", |
| 626 "gfx_export.h", |
| 627 "mac/io_surface.cc", |
| 628 "mac/io_surface.h", |
| 629 ] |
| 630 |
| 631 if (!is_ios) { |
| 632 sources += [ |
| 633 "gpu_memory_buffer.cc", |
| 634 "gpu_memory_buffer.h", |
| 635 ] |
| 636 } |
| 637 |
| 638 if (use_ozone) { |
| 639 sources += [ "native_pixmap_handle_ozone.h" ] |
| 640 } |
| 641 |
| 642 defines = [ "GFX_IMPLEMENTATION" ] |
| 643 |
| 644 deps = [ |
| 645 "//base", |
| 646 "//ui/gfx/geometry", |
| 647 ] |
| 648 } |
| 649 |
597 source_set("test_support") { | 650 source_set("test_support") { |
598 testonly = true | 651 testonly = true |
599 sources = [ | 652 sources = [ |
600 "image/image_unittest_util.cc", | 653 "image/image_unittest_util.cc", |
601 "image/image_unittest_util.h", | 654 "image/image_unittest_util.h", |
602 "image/image_unittest_util_ios.mm", | 655 "image/image_unittest_util_ios.mm", |
603 "image/image_unittest_util_mac.mm", | 656 "image/image_unittest_util_mac.mm", |
604 "test/display_util.h", | 657 "test/display_util.h", |
605 "test/fontconfig_util_linux.cc", | 658 "test/fontconfig_util_linux.cc", |
606 "test/fontconfig_util_linux.h", | 659 "test/fontconfig_util_linux.h", |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 if (is_android) { | 843 if (is_android) { |
791 generate_jni("gfx_jni_headers") { | 844 generate_jni("gfx_jni_headers") { |
792 sources = [ | 845 sources = [ |
793 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", | 846 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", |
794 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", | 847 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", |
795 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", | 848 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", |
796 ] | 849 ] |
797 jni_package = "gfx" | 850 jni_package = "gfx" |
798 } | 851 } |
799 } | 852 } |
OLD | NEW |