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 | 6 |
7 if (is_android) { | 7 if (is_android) { |
8 import("//build/config/android/config.gni") | 8 import("//build/config/android/config.gni") |
9 import("//build/config/android/rules.gni") | 9 import("//build/config/android/rules.gni") |
10 } | 10 } |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 "image/image_util.h", | 130 "image/image_util.h", |
131 "image/image_util_ios.mm", | 131 "image/image_util_ios.mm", |
132 "interpolated_transform.cc", | 132 "interpolated_transform.cc", |
133 "interpolated_transform.h", | 133 "interpolated_transform.h", |
134 "linux_font_delegate.cc", | 134 "linux_font_delegate.cc", |
135 "linux_font_delegate.h", | 135 "linux_font_delegate.h", |
136 "mac/scoped_ns_disable_screen_updates.h", | 136 "mac/scoped_ns_disable_screen_updates.h", |
137 "native_widget_types.h", | 137 "native_widget_types.h", |
138 "nine_image_painter.cc", | 138 "nine_image_painter.cc", |
139 "nine_image_painter.h", | 139 "nine_image_painter.h", |
140 "ozone/dri/dri_skbitmap.cc", | |
141 "ozone/dri/dri_skbitmap.h", | |
142 "ozone/dri/dri_surface.cc", | |
143 "ozone/dri/dri_surface.h", | |
144 "ozone/dri/dri_surface_factory.cc", | |
145 "ozone/dri/dri_surface_factory.h", | |
146 "ozone/dri/dri_vsync_provider.cc", | |
147 "ozone/dri/dri_vsync_provider.h", | |
148 "ozone/dri/dri_wrapper.cc", | |
149 "ozone/dri/dri_wrapper.h", | |
150 "ozone/dri/hardware_display_controller.cc", | |
151 "ozone/dri/hardware_display_controller.h", | |
152 "ozone/impl/file_surface_factory.cc", | |
153 "ozone/impl/file_surface_factory.h", | |
154 "ozone/surface_factory_ozone.cc", | |
155 "ozone/surface_factory_ozone.h", | |
156 "ozone/surface_ozone.h", | |
157 "ozone/overlay_candidates_ozone.cc", | |
158 "ozone/overlay_candidates_ozone.h", | |
159 "pango_util.cc", | |
160 "pango_util.h", | |
161 "path.cc", | 140 "path.cc", |
162 "path.h", | 141 "path.h", |
163 "path_aura.cc", | 142 "path_aura.cc", |
164 "path_win.cc", | 143 "path_win.cc", |
165 "path_win.h", | 144 "path_win.h", |
166 "path_x11.cc", | 145 "path_x11.cc", |
167 "path_x11.h", | 146 "path_x11.h", |
168 "platform_font.h", | 147 "platform_font.h", |
169 "platform_font_android.cc", | 148 "platform_font_android.cc", |
170 "platform_font_ios.h", | 149 "platform_font_ios.h", |
171 "platform_font_ios.mm", | 150 "platform_font_ios.mm", |
172 "platform_font_mac.h", | 151 "platform_font_mac.h", |
173 "platform_font_mac.mm", | 152 "platform_font_mac.mm", |
174 "platform_font_ozone.cc", | |
175 "platform_font_pango.cc", | |
176 "platform_font_pango.h", | |
177 "platform_font_win.cc", | 153 "platform_font_win.cc", |
178 "platform_font_win.h", | 154 "platform_font_win.h", |
179 "range/range.cc", | 155 "range/range.cc", |
180 "range/range.h", | 156 "range/range.h", |
181 "range/range_mac.mm", | 157 "range/range_mac.mm", |
182 "range/range_win.cc", | 158 "range/range_win.cc", |
183 "render_text.cc", | 159 "render_text.cc", |
184 "render_text.h", | 160 "render_text.h", |
185 "render_text_mac.cc", | 161 "render_text_mac.cc", |
186 "render_text_mac.h", | 162 "render_text_mac.h", |
187 "render_text_ozone.cc", | |
188 "render_text_pango.cc", | |
189 "render_text_pango.h", | |
190 "render_text_win.cc", | 163 "render_text_win.cc", |
191 "render_text_win.h", | 164 "render_text_win.h", |
192 "scoped_canvas.h", | 165 "scoped_canvas.h", |
193 "scoped_cg_context_save_gstate_mac.h", | 166 "scoped_cg_context_save_gstate_mac.h", |
194 "scoped_ns_graphics_context_save_gstate_mac.h", | 167 "scoped_ns_graphics_context_save_gstate_mac.h", |
195 "scoped_ns_graphics_context_save_gstate_mac.mm", | 168 "scoped_ns_graphics_context_save_gstate_mac.mm", |
196 "scoped_ui_graphics_push_context_ios.h", | 169 "scoped_ui_graphics_push_context_ios.h", |
197 "scoped_ui_graphics_push_context_ios.mm", | 170 "scoped_ui_graphics_push_context_ios.mm", |
198 "screen.cc", | 171 "screen.cc", |
199 "screen.h", | 172 "screen.h", |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 "icon_util.h", | 294 "icon_util.h", |
322 ] | 295 ] |
323 } | 296 } |
324 | 297 |
325 # Linux. | 298 # Linux. |
326 if (is_linux) { | 299 if (is_linux) { |
327 configs += [ "//build/config/linux:fontconfig" ] | 300 configs += [ "//build/config/linux:fontconfig" ] |
328 } | 301 } |
329 | 302 |
330 # Ozone stuff. | 303 # Ozone stuff. |
331 if (!use_ozone) { | 304 if (use_ozone) { |
332 sources -= [ | 305 sources += [ |
| 306 "platform_font_ozone.cc", |
| 307 "render_text_ozone.cc", |
333 "ozone/impl/file_surface_factory.cc", | 308 "ozone/impl/file_surface_factory.cc", |
334 "ozone/impl/file_surface_factory.h", | 309 "ozone/impl/file_surface_factory.h", |
335 "ozone/surface_factory_ozone.cc", | 310 "ozone/surface_factory_ozone.cc", |
336 "ozone/surface_factory_ozone.h", | 311 "ozone/surface_factory_ozone.h", |
337 "ozone/surface_ozone.h", | 312 "ozone/surface_ozone.h", |
338 "ozone/overlay_candidates_ozone.cc", | 313 "ozone/overlay_candidates_ozone.cc", |
339 "ozone/overlay_candidates_ozone.h", | 314 "ozone/overlay_candidates_ozone.h", |
340 ] | 315 ] |
341 } | 316 } |
342 if (use_ozone && ozone_platform_dri) { | 317 if (use_ozone && ozone_platform_dri) { |
343 configs += [ "//build/config/linux:dridrm" ] | 318 sources += [ |
344 } else { | |
345 sources -= [ | |
346 "ozone/dri/dri_skbitmap.cc", | 319 "ozone/dri/dri_skbitmap.cc", |
347 "ozone/dri/dri_skbitmap.h", | 320 "ozone/dri/dri_skbitmap.h", |
348 "ozone/dri/dri_surface.cc", | 321 "ozone/dri/dri_surface.cc", |
349 "ozone/dri/dri_surface.h", | 322 "ozone/dri/dri_surface.h", |
350 "ozone/dri/dri_surface_factory.cc", | 323 "ozone/dri/dri_surface_factory.cc", |
351 "ozone/dri/dri_surface_factory.h", | 324 "ozone/dri/dri_surface_factory.h", |
352 "ozone/dri/dri_vsync_provider.cc", | 325 "ozone/dri/dri_vsync_provider.cc", |
353 "ozone/dri/dri_vsync_provider.h", | 326 "ozone/dri/dri_vsync_provider.h", |
354 "ozone/dri/dri_wrapper.cc", | 327 "ozone/dri/dri_wrapper.cc", |
355 "ozone/dri/dri_wrapper.h", | 328 "ozone/dri/dri_wrapper.h", |
356 "ozone/dri/hardware_display_controller.cc", | 329 "ozone/dri/hardware_display_controller.cc", |
357 "ozone/dri/hardware_display_controller.h", | 330 "ozone/dri/hardware_display_controller.h", |
358 ] | 331 ] |
| 332 configs += [ "//build/config/linux:dridrm" ] |
359 } | 333 } |
360 | 334 |
361 if (!use_aura) { | 335 if (!use_aura) { |
362 sources -= [ | 336 sources -= [ |
363 "nine_image_painter.cc", | 337 "nine_image_painter.cc", |
364 "nine_image_painter.h", | 338 "nine_image_painter.h", |
365 "path_aura.cc", | 339 "path_aura.cc", |
366 ] | 340 ] |
367 } | 341 } |
368 | 342 |
369 if (use_x11) { | 343 if (use_x11) { |
370 deps += [ | 344 deps += [ |
371 ":gfx_x11", | 345 ":gfx_x11", |
372 ] | 346 ] |
373 } else { | 347 } else { |
374 sources -= [ | 348 sources -= [ |
375 "path_x11.cc", | 349 "path_x11.cc", |
376 ] | 350 ] |
377 } | 351 } |
378 | 352 |
379 if (use_pango) { | 353 if (use_pango) { |
380 sources -= [ | 354 sources += [ |
381 "platform_font_ozone.cc", | |
382 "render_text_ozone.cc", | |
383 ] | |
384 configs += [ "//build/config/linux:pangocairo" ] | |
385 } else { | |
386 sources -= [ | |
387 "pango_util.cc", | 355 "pango_util.cc", |
388 "pango_util.h", | 356 "pango_util.h", |
389 "platform_font_pango.cc", | 357 "platform_font_pango.cc", |
390 "platform_font_pango.h", | 358 "platform_font_pango.h", |
391 "render_text_pango.cc", | 359 "render_text_pango.cc", |
392 "render_text_pango.h", | 360 "render_text_pango.h", |
393 ] | 361 ] |
| 362 configs += [ "//build/config/linux:pangocairo" ] |
394 } | 363 } |
395 } | 364 } |
396 | 365 |
397 component("gfx_geometry") { | 366 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry |
398 sources = [ | |
399 "geometry/box_f.cc", | |
400 "geometry/box_f.h", | |
401 "geometry/cubic_bezier.h", | |
402 "geometry/cubic_bezier.cc", | |
403 "geometry/insets.cc", | |
404 "geometry/insets.h", | |
405 "geometry/insets_base.h", | |
406 "geometry/insets_f.cc", | |
407 "geometry/insets_f.h", | |
408 "geometry/matrix3_f.cc", | |
409 "geometry/matrix3_f.h", | |
410 "geometry/point.cc", | |
411 "geometry/point.h", | |
412 "geometry/point3_f.cc", | |
413 "geometry/point3_f.h", | |
414 "geometry/point_base.h", | |
415 "geometry/point_conversions.cc", | |
416 "geometry/point_conversions.h", | |
417 "geometry/point_f.cc", | |
418 "geometry/point_f.h", | |
419 "geometry/quad_f.cc", | |
420 "geometry/quad_f.h", | |
421 "geometry/rect.cc", | |
422 "geometry/rect.h", | |
423 "geometry/rect_base.h", | |
424 "geometry/rect_base_impl.h", | |
425 "geometry/rect_conversions.cc", | |
426 "geometry/rect_conversions.h", | |
427 "geometry/rect_f.cc", | |
428 "geometry/rect_f.h", | |
429 "geometry/r_tree.cc", | |
430 "geometry/r_tree.h", | |
431 "geometry/safe_integer_conversions.h", | |
432 "geometry/size.cc", | |
433 "geometry/size.h", | |
434 "geometry/size_base.h", | |
435 "geometry/size_conversions.cc", | |
436 "geometry/size_conversions.h", | |
437 "geometry/size_f.cc", | |
438 "geometry/size_f.h", | |
439 "geometry/vector2d.cc", | |
440 "geometry/vector2d.h", | |
441 "geometry/vector2d_conversions.cc", | |
442 "geometry/vector2d_conversions.h", | |
443 "geometry/vector2d_f.cc", | |
444 "geometry/vector2d_f.h", | |
445 "geometry/vector3d_f.cc", | |
446 "geometry/vector3d_f.h", | |
447 ] | |
448 defines = [ "GFX_IMPLEMENTATION" ] | |
449 deps = [ "//base" ] | |
450 } | |
451 | 367 |
452 source_set("gfx_test_support") { | 368 source_set("gfx_test_support") { |
453 sources = [ | 369 sources = [ |
454 "test/gfx_util.cc", | 370 "test/gfx_util.cc", |
455 "test/gfx_util.h", | 371 "test/gfx_util.h", |
456 "test/ui_cocoa_test_helper.h", | 372 "test/ui_cocoa_test_helper.h", |
457 "test/ui_cocoa_test_helper.mm", | 373 "test/ui_cocoa_test_helper.mm", |
458 ] | 374 ] |
459 | 375 |
460 deps = [ | 376 deps = [ |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 ] | 439 ] |
524 | 440 |
525 configs += [ "//build/config/linux:x11" ] | 441 configs += [ "//build/config/linux:x11" ] |
526 | 442 |
527 deps = [ | 443 deps = [ |
528 ":gfx_export", | 444 ":gfx_export", |
529 "//base" | 445 "//base" |
530 ] | 446 ] |
531 } | 447 } |
532 } | 448 } |
OLD | NEW |