| 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 # We don't support RenderText on these platforms. | 229 # We don't support RenderText on these platforms. |
| 230 } else { | 230 } else { |
| 231 # These text rendering files are supported everywhere text rendering is. | 231 # These text rendering files are supported everywhere text rendering is. |
| 232 sources += [ | 232 sources += [ |
| 233 "render_text.cc", | 233 "render_text.cc", |
| 234 "render_text.h", | 234 "render_text.h", |
| 235 "render_text_harfbuzz.cc", | 235 "render_text_harfbuzz.cc", |
| 236 "render_text_harfbuzz.h", | 236 "render_text_harfbuzz.h", |
| 237 "text_utils_skia.cc", | 237 "text_utils_skia.cc", |
| 238 ] | 238 ] |
| 239 |
| 239 # These are the "native" rendering routines, only one should apply. | 240 # These are the "native" rendering routines, only one should apply. |
| 240 if (is_win) { | 241 if (is_win) { |
| 241 sources += [ "render_text_win.cc" ] | 242 sources += [ "render_text_win.cc" ] |
| 242 } else if (is_mac) { | 243 } else if (is_mac) { |
| 243 sources += [ "render_text_mac.cc" ] | 244 sources += [ "render_text_mac.cc" ] |
| 244 } else if (use_pango) { | 245 } else if (use_pango) { |
| 245 sources += [ "render_text_pango.cc" ] | 246 sources += [ "render_text_pango.cc" ] |
| 246 } else if (use_ozone) { | 247 } else if (use_ozone) { |
| 247 sources += [ "render_text_ozone.cc" ] | 248 sources += [ "render_text_ozone.cc" ] |
| 248 } | 249 } |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 ] | 310 ] |
| 310 } | 311 } |
| 311 | 312 |
| 312 # Linux. | 313 # Linux. |
| 313 if (is_linux) { | 314 if (is_linux) { |
| 314 configs += [ "//build/config/linux:fontconfig" ] | 315 configs += [ "//build/config/linux:fontconfig" ] |
| 315 } | 316 } |
| 316 | 317 |
| 317 # Ozone stuff. | 318 # Ozone stuff. |
| 318 if (use_ozone) { | 319 if (use_ozone) { |
| 319 sources += [ | 320 sources += [ "platform_font_ozone.cc" ] |
| 320 "platform_font_ozone.cc", | |
| 321 ] | |
| 322 } | 321 } |
| 323 | 322 |
| 324 if (!use_aura) { | 323 if (!use_aura) { |
| 325 sources -= [ | 324 sources -= [ |
| 326 "nine_image_painter.cc", | 325 "nine_image_painter.cc", |
| 327 "nine_image_painter.h", | 326 "nine_image_painter.h", |
| 328 "path_aura.cc", | 327 "path_aura.cc", |
| 329 "screen_aura.cc", | 328 "screen_aura.cc", |
| 330 ] | 329 ] |
| 331 } | 330 } |
| 332 | 331 |
| 333 if (use_x11) { | 332 if (use_x11) { |
| 334 deps += [ | 333 deps += [ "//ui/gfx/x" ] |
| 335 "//ui/gfx/x", | |
| 336 ] | |
| 337 } else { | 334 } else { |
| 338 sources -= [ | 335 sources -= [ "path_x11.cc" ] |
| 339 "path_x11.cc", | |
| 340 ] | |
| 341 } | 336 } |
| 342 | 337 |
| 343 if (use_pango) { | 338 if (use_pango) { |
| 344 sources += [ | 339 sources += [ |
| 345 "pango_util.cc", | 340 "pango_util.cc", |
| 346 "pango_util.h", | 341 "pango_util.h", |
| 347 "platform_font_pango.cc", | 342 "platform_font_pango.cc", |
| 348 "platform_font_pango.h", | 343 "platform_font_pango.h", |
| 349 ] | 344 ] |
| 350 configs += [ "//build/config/linux:pangocairo" ] | 345 configs += [ "//build/config/linux:pangocairo" ] |
| 351 } | 346 } |
| 352 if (use_pango && use_ozone) { | 347 if (use_pango && use_ozone) { |
| 353 sources -= [ | 348 sources -= [ "platform_font_ozone.cc" ] |
| 354 "platform_font_ozone.cc", | |
| 355 ] | |
| 356 } | 349 } |
| 357 } | 350 } |
| 358 | 351 |
| 359 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry | 352 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry |
| 360 | 353 |
| 361 source_set("test_support") { | 354 source_set("test_support") { |
| 362 testonly = true | 355 testonly = true |
| 363 sources = [ | 356 sources = [ |
| 364 "image/image_unittest_util.cc", | 357 "image/image_unittest_util.cc", |
| 365 "image/image_unittest_util.h", | 358 "image/image_unittest_util.h", |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 # does not compile display_observer.cc | 495 # does not compile display_observer.cc |
| 503 "display_change_notifier_unittest.cc", | 496 "display_change_notifier_unittest.cc", |
| 504 ] | 497 ] |
| 505 | 498 |
| 506 deps += [ | 499 deps += [ |
| 507 #'../../testing/android/native_test.gyp:native_test_native_code', TODO(GYP
) | 500 #'../../testing/android/native_test.gyp:native_test_native_code', TODO(GYP
) |
| 508 ] | 501 ] |
| 509 } | 502 } |
| 510 | 503 |
| 511 if (is_android || is_ios) { | 504 if (is_android || is_ios) { |
| 512 sources -= [ | 505 sources -= [ "render_text_unittest.cc" ] |
| 513 "render_text_unittest.cc", | |
| 514 ] | |
| 515 } | 506 } |
| 516 | 507 |
| 517 if (use_aura) { | 508 if (use_aura) { |
| 518 sources -= [ | 509 sources -= [ "screen_unittest.cc" ] |
| 519 "screen_unittest.cc", | |
| 520 ] | |
| 521 } | 510 } |
| 522 | 511 |
| 523 if (is_win) { | 512 if (is_win) { |
| 524 sources += [ | 513 sources += [ |
| 525 "font_fallback_win_unittest.cc", | 514 "font_fallback_win_unittest.cc", |
| 526 "icon_util_unittest.cc", | 515 "icon_util_unittest.cc", |
| 527 "icon_util_unittests.rc", | 516 "icon_util_unittests.rc", |
| 528 "platform_font_win_unittest.cc", | 517 "platform_font_win_unittest.cc", |
| 529 ] | 518 ] |
| 530 | 519 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 548 if (is_android) { | 537 if (is_android) { |
| 549 generate_jni("gfx_jni_headers") { | 538 generate_jni("gfx_jni_headers") { |
| 550 sources = [ | 539 sources = [ |
| 551 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", | 540 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", |
| 552 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", | 541 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", |
| 553 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", | 542 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", |
| 554 ] | 543 ] |
| 555 jni_package = "gfx" | 544 jni_package = "gfx" |
| 556 } | 545 } |
| 557 } | 546 } |
| OLD | NEW |