| 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 # We don't support RenderText on these platforms. | 241 # We don't support RenderText on these platforms. |
| 242 } else { | 242 } else { |
| 243 # These text rendering files are supported everywhere text rendering is. | 243 # These text rendering files are supported everywhere text rendering is. |
| 244 sources += [ | 244 sources += [ |
| 245 "render_text.cc", | 245 "render_text.cc", |
| 246 "render_text.h", | 246 "render_text.h", |
| 247 "render_text_harfbuzz.cc", | 247 "render_text_harfbuzz.cc", |
| 248 "render_text_harfbuzz.h", | 248 "render_text_harfbuzz.h", |
| 249 "text_utils_skia.cc", | 249 "text_utils_skia.cc", |
| 250 ] | 250 ] |
| 251 |
| 251 # These are the "native" rendering routines, only one should apply. | 252 # These are the "native" rendering routines, only one should apply. |
| 252 if (is_win) { | 253 if (is_win) { |
| 253 sources += [ "render_text_win.cc" ] | 254 sources += [ "render_text_win.cc" ] |
| 254 } else if (is_mac) { | 255 } else if (is_mac) { |
| 255 sources += [ "render_text_mac.cc" ] | 256 sources += [ "render_text_mac.cc" ] |
| 256 } else if (use_pango) { | 257 } else if (use_pango) { |
| 257 sources += [ "render_text_pango.cc" ] | 258 sources += [ "render_text_pango.cc" ] |
| 258 } else if (use_ozone) { | 259 } else if (use_ozone) { |
| 259 sources += [ "render_text_ozone.cc" ] | 260 sources += [ "render_text_ozone.cc" ] |
| 260 } | 261 } |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 ] | 320 ] |
| 320 } | 321 } |
| 321 | 322 |
| 322 # Linux. | 323 # Linux. |
| 323 if (is_linux) { | 324 if (is_linux) { |
| 324 configs += [ "//build/config/linux:fontconfig" ] | 325 configs += [ "//build/config/linux:fontconfig" ] |
| 325 } | 326 } |
| 326 | 327 |
| 327 # Ozone stuff. | 328 # Ozone stuff. |
| 328 if (use_ozone) { | 329 if (use_ozone) { |
| 329 sources += [ | 330 sources += [ "platform_font_ozone.cc" ] |
| 330 "platform_font_ozone.cc", | |
| 331 ] | |
| 332 } | 331 } |
| 333 | 332 |
| 334 if (!use_aura) { | 333 if (!use_aura) { |
| 335 sources -= [ | 334 sources -= [ |
| 336 "nine_image_painter.cc", | 335 "nine_image_painter.cc", |
| 337 "nine_image_painter.h", | 336 "nine_image_painter.h", |
| 338 "path_aura.cc", | 337 "path_aura.cc", |
| 339 "screen_aura.cc", | 338 "screen_aura.cc", |
| 340 ] | 339 ] |
| 341 } | 340 } |
| 342 | 341 |
| 343 if (use_x11) { | 342 if (use_x11) { |
| 344 deps += [ | 343 deps += [ "//ui/gfx/x" ] |
| 345 "//ui/gfx/x", | 344 configs += [ "//build/config/linux:x11" ] |
| 346 ] | |
| 347 configs += [ | |
| 348 "//build/config/linux:x11", | |
| 349 ] | |
| 350 } else { | 345 } else { |
| 351 sources -= [ | 346 sources -= [ "path_x11.cc" ] |
| 352 "path_x11.cc", | |
| 353 ] | |
| 354 } | 347 } |
| 355 | 348 |
| 356 if (use_pango) { | 349 if (use_pango) { |
| 357 sources += [ | 350 sources += [ |
| 358 "pango_util.cc", | 351 "pango_util.cc", |
| 359 "pango_util.h", | 352 "pango_util.h", |
| 360 "platform_font_pango.cc", | 353 "platform_font_pango.cc", |
| 361 "platform_font_pango.h", | 354 "platform_font_pango.h", |
| 362 ] | 355 ] |
| 363 configs += [ "//build/config/linux:pangocairo" ] | 356 configs += [ "//build/config/linux:pangocairo" ] |
| 364 } | 357 } |
| 365 if (use_pango && use_ozone) { | 358 if (use_pango && use_ozone) { |
| 366 sources -= [ | 359 sources -= [ "platform_font_ozone.cc" ] |
| 367 "platform_font_ozone.cc", | |
| 368 ] | |
| 369 } | 360 } |
| 370 } | 361 } |
| 371 | 362 |
| 372 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry | 363 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry |
| 373 | 364 |
| 374 source_set("test_support") { | 365 source_set("test_support") { |
| 375 testonly = true | 366 testonly = true |
| 376 sources = [ | 367 sources = [ |
| 377 "image/image_unittest_util.cc", | 368 "image/image_unittest_util.cc", |
| 378 "image/image_unittest_util.h", | 369 "image/image_unittest_util.h", |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 # does not compile display_observer.cc | 509 # does not compile display_observer.cc |
| 519 "display_change_notifier_unittest.cc", | 510 "display_change_notifier_unittest.cc", |
| 520 ] | 511 ] |
| 521 | 512 |
| 522 deps += [ | 513 deps += [ |
| 523 #'../../testing/android/native_test.gyp:native_test_native_code', TODO(GYP
) | 514 #'../../testing/android/native_test.gyp:native_test_native_code', TODO(GYP
) |
| 524 ] | 515 ] |
| 525 } | 516 } |
| 526 | 517 |
| 527 if (is_android || is_ios) { | 518 if (is_android || is_ios) { |
| 528 sources -= [ | 519 sources -= [ "render_text_unittest.cc" ] |
| 529 "render_text_unittest.cc", | |
| 530 ] | |
| 531 } | 520 } |
| 532 | 521 |
| 533 if (use_aura) { | 522 if (use_aura) { |
| 534 sources -= [ | 523 sources -= [ "screen_unittest.cc" ] |
| 535 "screen_unittest.cc", | |
| 536 ] | |
| 537 } | 524 } |
| 538 | 525 |
| 539 if (is_win) { | 526 if (is_win) { |
| 540 sources += [ | 527 sources += [ |
| 541 "color_profile_win_unittest.cc", | 528 "color_profile_win_unittest.cc", |
| 542 "font_fallback_win_unittest.cc", | 529 "font_fallback_win_unittest.cc", |
| 543 "icon_util_unittest.cc", | 530 "icon_util_unittest.cc", |
| 544 "icon_util_unittests.rc", | 531 "icon_util_unittests.rc", |
| 545 "platform_font_win_unittest.cc", | 532 "platform_font_win_unittest.cc", |
| 546 ] | 533 ] |
| (...skipping 18 matching lines...) Expand all Loading... |
| 565 if (is_android) { | 552 if (is_android) { |
| 566 generate_jni("gfx_jni_headers") { | 553 generate_jni("gfx_jni_headers") { |
| 567 sources = [ | 554 sources = [ |
| 568 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", | 555 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", |
| 569 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", | 556 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", |
| 570 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", | 557 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", |
| 571 ] | 558 ] |
| 572 jni_package = "gfx" | 559 jni_package = "gfx" |
| 573 } | 560 } |
| 574 } | 561 } |
| OLD | NEW |