| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 "image/image_util.h", | 121 "image/image_util.h", |
| 122 "image/image_util_ios.mm", | 122 "image/image_util_ios.mm", |
| 123 "interpolated_transform.cc", | 123 "interpolated_transform.cc", |
| 124 "interpolated_transform.h", | 124 "interpolated_transform.h", |
| 125 "linux_font_delegate.cc", | 125 "linux_font_delegate.cc", |
| 126 "linux_font_delegate.h", | 126 "linux_font_delegate.h", |
| 127 "mac/coordinate_conversion.h", | 127 "mac/coordinate_conversion.h", |
| 128 "mac/coordinate_conversion.mm", | 128 "mac/coordinate_conversion.mm", |
| 129 "mac/scoped_ns_disable_screen_updates.h", | 129 "mac/scoped_ns_disable_screen_updates.h", |
| 130 "native_widget_types.h", | 130 "native_widget_types.h", |
| 131 "nine_image_painter.cc", | |
| 132 "nine_image_painter.h", | |
| 133 "path.cc", | 131 "path.cc", |
| 134 "path.h", | 132 "path.h", |
| 135 "path_aura.cc", | 133 "path_aura.cc", |
| 136 "path_win.cc", | 134 "path_win.cc", |
| 137 "path_win.h", | 135 "path_win.h", |
| 138 "path_x11.cc", | 136 "path_x11.cc", |
| 139 "path_x11.h", | 137 "path_x11.h", |
| 140 "platform_font.h", | 138 "platform_font.h", |
| 141 "platform_font_android.cc", | 139 "platform_font_android.cc", |
| 142 "platform_font_ios.h", | 140 "platform_font_ios.h", |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 "text_utils_skia.cc", | 235 "text_utils_skia.cc", |
| 238 ] | 236 ] |
| 239 | 237 |
| 240 # These are the "native" rendering routines, only one should apply. | 238 # These are the "native" rendering routines, only one should apply. |
| 241 if (is_win) { | 239 if (is_win) { |
| 242 sources += [ "render_text_win.cc" ] | 240 sources += [ "render_text_win.cc" ] |
| 243 } else if (is_mac) { | 241 } else if (is_mac) { |
| 244 sources += [ "render_text_mac.cc" ] | 242 sources += [ "render_text_mac.cc" ] |
| 245 } else if (use_pango) { | 243 } else if (use_pango) { |
| 246 sources += [ "render_text_pango.cc" ] | 244 sources += [ "render_text_pango.cc" ] |
| 247 } else if (use_ozone) { | |
| 248 sources += [ "render_text_ozone.cc" ] | |
| 249 } | 245 } |
| 250 } | 246 } |
| 251 | 247 |
| 252 # iOS. | 248 # iOS. |
| 253 if (is_ios) { | 249 if (is_ios) { |
| 254 sources -= [ | 250 sources -= [ |
| 255 "codec/jpeg_codec.cc", | 251 "codec/jpeg_codec.cc", |
| 256 "codec/jpeg_codec.h", | 252 "codec/jpeg_codec.h", |
| 257 ] | 253 ] |
| 258 } else { | 254 } else { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 "icon_util.cc", | 304 "icon_util.cc", |
| 309 "icon_util.h", | 305 "icon_util.h", |
| 310 ] | 306 ] |
| 311 } | 307 } |
| 312 | 308 |
| 313 # Linux. | 309 # Linux. |
| 314 if (is_linux) { | 310 if (is_linux) { |
| 315 configs += [ "//build/config/linux:fontconfig" ] | 311 configs += [ "//build/config/linux:fontconfig" ] |
| 316 } | 312 } |
| 317 | 313 |
| 318 # Ozone stuff. | |
| 319 if (use_ozone) { | |
| 320 sources += [ "platform_font_ozone.cc" ] | |
| 321 } | |
| 322 | |
| 323 if (!use_aura) { | 314 if (!use_aura) { |
| 324 sources -= [ | 315 sources -= [ |
| 325 "nine_image_painter.cc", | |
| 326 "nine_image_painter.h", | |
| 327 "path_aura.cc", | 316 "path_aura.cc", |
| 328 "screen_aura.cc", | 317 "screen_aura.cc", |
| 329 ] | 318 ] |
| 330 } | 319 } |
| 331 | 320 |
| 332 if (use_x11) { | 321 if (use_x11) { |
| 333 deps += [ "//ui/gfx/x" ] | 322 deps += [ "//ui/gfx/x" ] |
| 334 } else { | 323 } else { |
| 335 sources -= [ "path_x11.cc" ] | 324 sources -= [ "path_x11.cc" ] |
| 336 } | 325 } |
| 337 | 326 |
| 338 if (use_pango) { | 327 if (use_pango) { |
| 339 sources += [ | 328 sources += [ |
| 340 "pango_util.cc", | 329 "pango_util.cc", |
| 341 "pango_util.h", | 330 "pango_util.h", |
| 342 "platform_font_pango.cc", | 331 "platform_font_pango.cc", |
| 343 "platform_font_pango.h", | 332 "platform_font_pango.h", |
| 344 ] | 333 ] |
| 345 configs += [ "//build/config/linux:pangocairo" ] | 334 configs += [ "//build/config/linux:pangocairo" ] |
| 346 } | 335 } |
| 347 if (use_pango && use_ozone) { | |
| 348 sources -= [ "platform_font_ozone.cc" ] | |
| 349 } | |
| 350 } | 336 } |
| 351 | 337 |
| 352 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry | 338 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry |
| 353 | 339 |
| 354 source_set("test_support") { | 340 source_set("test_support") { |
| 355 testonly = true | 341 testonly = true |
| 356 sources = [ | 342 sources = [ |
| 357 "image/image_unittest_util.cc", | 343 "image/image_unittest_util.cc", |
| 358 "image/image_unittest_util.h", | 344 "image/image_unittest_util.h", |
| 359 "image/image_unittest_util_ios.mm", | 345 "image/image_unittest_util_ios.mm", |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 ] | 458 ] |
| 473 } | 459 } |
| 474 | 460 |
| 475 if (!is_mac && !is_ios) { | 461 if (!is_mac && !is_ios) { |
| 476 sources += [ | 462 sources += [ |
| 477 "transform_unittest.cc", | 463 "transform_unittest.cc", |
| 478 "interpolated_transform_unittest.cc", | 464 "interpolated_transform_unittest.cc", |
| 479 ] | 465 ] |
| 480 } | 466 } |
| 481 | 467 |
| 482 if (use_ozone && !use_pango) { | |
| 483 sources -= [ | |
| 484 "canvas_unittest.cc", | |
| 485 "font_list_unittest.cc", | |
| 486 "font_unittest.cc", | |
| 487 "render_text_unittest.cc", | |
| 488 "text_elider_unittest.cc", | |
| 489 ] | |
| 490 } | |
| 491 | |
| 492 if (is_android) { | 468 if (is_android) { |
| 493 sources -= [ | 469 sources -= [ |
| 494 # Do not run display_change_notifier_unittest.cc on Android because it | 470 # Do not run display_change_notifier_unittest.cc on Android because it |
| 495 # does not compile display_observer.cc | 471 # does not compile display_observer.cc |
| 496 "display_change_notifier_unittest.cc", | 472 "display_change_notifier_unittest.cc", |
| 497 ] | 473 ] |
| 498 | 474 |
| 499 deps += [ | 475 deps += [ |
| 500 #'../../testing/android/native_test.gyp:native_test_native_code', TODO(GYP
) | 476 #'../../testing/android/native_test.gyp:native_test_native_code', TODO(GYP
) |
| 501 ] | 477 ] |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 if (is_android) { | 513 if (is_android) { |
| 538 generate_jni("gfx_jni_headers") { | 514 generate_jni("gfx_jni_headers") { |
| 539 sources = [ | 515 sources = [ |
| 540 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", | 516 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", |
| 541 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", | 517 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", |
| 542 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", | 518 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", |
| 543 ] | 519 ] |
| 544 jni_package = "gfx" | 520 jni_package = "gfx" |
| 545 } | 521 } |
| 546 } | 522 } |
| OLD | NEW |