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 if (is_android) { | 6 if (is_android) { |
7 import("//build/config/android/config.gni") | 7 import("//build/config/android/config.gni") |
8 } | 8 } |
9 | 9 |
| 10 # Several targets want to include this header file, and some of them are |
| 11 # child dependencies of "gfx". Therefore, we separate it out here so multiple |
| 12 # targets can all have a dependency for header checking purposes without |
| 13 # creating circular dependencies. |
| 14 source_set("gfx_export") { |
| 15 sources = [ |
| 16 "gfx_export.h", |
| 17 ] |
| 18 } |
| 19 |
10 component("gfx") { | 20 component("gfx") { |
11 sources = [ | 21 sources = [ |
12 "android/device_display_info.cc", | 22 "android/device_display_info.cc", |
13 "android/device_display_info.h", | 23 "android/device_display_info.h", |
14 "android/gfx_jni_registrar.cc", | 24 "android/gfx_jni_registrar.cc", |
15 "android/gfx_jni_registrar.h", | 25 "android/gfx_jni_registrar.h", |
16 "android/java_bitmap.cc", | 26 "android/java_bitmap.cc", |
17 "android/java_bitmap.h", | 27 "android/java_bitmap.h", |
18 "android/scroller.cc", | 28 "android/scroller.cc", |
19 "android/scroller.h", | 29 "android/scroller.h", |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 "font_list_impl.cc", | 87 "font_list_impl.cc", |
78 "font_list_impl.h", | 88 "font_list_impl.h", |
79 "font_render_params_android.cc", | 89 "font_render_params_android.cc", |
80 "font_render_params_linux.cc", | 90 "font_render_params_linux.cc", |
81 "font_render_params_linux.h", | 91 "font_render_params_linux.h", |
82 "font_smoothing_win.cc", | 92 "font_smoothing_win.cc", |
83 "font_smoothing_win.h", | 93 "font_smoothing_win.h", |
84 "frame_time.h", | 94 "frame_time.h", |
85 "gdi_util.cc", | 95 "gdi_util.cc", |
86 "gdi_util.h", | 96 "gdi_util.h", |
87 "gfx_export.h", | |
88 "gfx_paths.cc", | 97 "gfx_paths.cc", |
89 "gfx_paths.h", | 98 "gfx_paths.h", |
90 "gpu_memory_buffer.cc", | 99 "gpu_memory_buffer.cc", |
91 "gpu_memory_buffer.h", | 100 "gpu_memory_buffer.h", |
92 "icon_util.cc", | 101 "icon_util.cc", |
93 "icon_util.h", | 102 "icon_util.h", |
94 "image/canvas_image_source.cc", | 103 "image/canvas_image_source.cc", |
95 "image/canvas_image_source.h", | 104 "image/canvas_image_source.h", |
96 "image/image.cc", | 105 "image/image.cc", |
97 "image/image.h", | 106 "image/image.h", |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 "win/scoped_set_map_mode.h", | 237 "win/scoped_set_map_mode.h", |
229 "win/singleton_hwnd.cc", | 238 "win/singleton_hwnd.cc", |
230 "win/singleton_hwnd.h", | 239 "win/singleton_hwnd.h", |
231 "win/window_impl.cc", | 240 "win/window_impl.cc", |
232 "win/window_impl.h", | 241 "win/window_impl.h", |
233 ] | 242 ] |
234 | 243 |
235 defines = [ "GFX_IMPLEMENTATION" ] | 244 defines = [ "GFX_IMPLEMENTATION" ] |
236 | 245 |
237 deps = [ | 246 deps = [ |
| 247 ":gfx_export", |
238 "//base", | 248 "//base", |
239 "//base:i18n", | 249 "//base:i18n", |
240 "//base:base_static", | 250 "//base:base_static", |
241 "//base/third_party/dynamic_annotations", | 251 "//base/third_party/dynamic_annotations", |
242 "//skia", | 252 "//skia", |
243 "//third_party/icu:icui18n", | 253 "//third_party/icu:icui18n", |
244 "//third_party/icu:icuuc", | 254 "//third_party/icu:icuuc", |
245 "//third_party/libpng", | 255 "//third_party/libpng", |
246 "//third_party/zlib", | 256 "//third_party/zlib", |
247 "//ui/gfx/geometry", | 257 "//ui/gfx/geometry", |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 source_set("gfx_test_support") { | 392 source_set("gfx_test_support") { |
383 sources = [ | 393 sources = [ |
384 "test/gfx_util.cc", | 394 "test/gfx_util.cc", |
385 "test/gfx_util.h", | 395 "test/gfx_util.h", |
386 "test/ui_cocoa_test_helper.h", | 396 "test/ui_cocoa_test_helper.h", |
387 "test/ui_cocoa_test_helper.mm", | 397 "test/ui_cocoa_test_helper.mm", |
388 ] | 398 ] |
389 | 399 |
390 deps = [ | 400 deps = [ |
391 "//base", | 401 "//base", |
| 402 "//base/test:test_support", |
392 "//skia", | 403 "//skia", |
393 "//testing/gtest", | 404 "//testing/gtest", |
394 ] | 405 ] |
395 | 406 |
396 if (is_ios) { | 407 if (is_ios) { |
397 # The cocoa files don't apply to iOS. | 408 # The cocoa files don't apply to iOS. |
398 sources -= [ | 409 sources -= [ |
399 "test/ui_cocoa_test_helper.h", | 410 "test/ui_cocoa_test_helper.h", |
400 "test/ui_cocoa_test_helper.mm", | 411 "test/ui_cocoa_test_helper.mm", |
401 ] | 412 ] |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 "x/x11_atom_cache.h", | 451 "x/x11_atom_cache.h", |
441 "x/x11_error_tracker.cc", | 452 "x/x11_error_tracker.cc", |
442 "x/x11_error_tracker.h", | 453 "x/x11_error_tracker.h", |
443 "x/x11_types.cc", | 454 "x/x11_types.cc", |
444 "x/x11_types.h", | 455 "x/x11_types.h", |
445 ] | 456 ] |
446 | 457 |
447 configs += [ "//build/config/linux:x11" ] | 458 configs += [ "//build/config/linux:x11" ] |
448 } | 459 } |
449 } | 460 } |
OLD | NEW |