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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 "platform_font_pango.h", | 353 "platform_font_pango.h", |
354 ] | 354 ] |
355 configs += [ "//build/config/linux:pangocairo" ] | 355 configs += [ "//build/config/linux:pangocairo" ] |
356 } | 356 } |
357 } | 357 } |
358 | 358 |
359 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry | 359 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry |
360 | 360 |
361 source_set("gfx_test_support") { | 361 source_set("gfx_test_support") { |
362 sources = [ | 362 sources = [ |
| 363 "test/fontconfig_util_linux.cc", |
| 364 "test/fontconfig_util_linux.h", |
363 "test/gfx_util.cc", | 365 "test/gfx_util.cc", |
364 "test/gfx_util.h", | 366 "test/gfx_util.h", |
365 "test/ui_cocoa_test_helper.h", | 367 "test/ui_cocoa_test_helper.h", |
366 "test/ui_cocoa_test_helper.mm", | 368 "test/ui_cocoa_test_helper.mm", |
367 ] | 369 ] |
368 | 370 |
369 deps = [ | 371 deps = [ |
370 "//base", | 372 "//base", |
371 "//base/test:test_support", | 373 "//base/test:test_support", |
372 "//skia", | 374 "//skia", |
373 "//testing/gtest", | 375 "//testing/gtest", |
374 ] | 376 ] |
375 | 377 |
376 if (is_ios) { | 378 if (is_ios) { |
377 # The cocoa files don't apply to iOS. | 379 # The cocoa files don't apply to iOS. |
378 sources -= [ | 380 sources -= [ |
379 "test/ui_cocoa_test_helper.h", | 381 "test/ui_cocoa_test_helper.h", |
380 "test/ui_cocoa_test_helper.mm", | 382 "test/ui_cocoa_test_helper.mm", |
381 ] | 383 ] |
382 } | 384 } |
| 385 if (is_linux) { |
| 386 configs += [ "//build/config/linux:fontconfig" ] |
| 387 } |
383 } | 388 } |
384 | 389 |
385 test("gfx_unittests") { | 390 test("gfx_unittests") { |
386 sources = [ | 391 sources = [ |
| 392 "font_render_params_linux_unittest.cc", |
387 "geometry/box_unittest.cc", | 393 "geometry/box_unittest.cc", |
388 "geometry/cubic_bezier_unittest.cc", | 394 "geometry/cubic_bezier_unittest.cc", |
389 "geometry/insets_unittest.cc", | 395 "geometry/insets_unittest.cc", |
390 "geometry/matrix3_unittest.cc", | 396 "geometry/matrix3_unittest.cc", |
391 "geometry/point_unittest.cc", | 397 "geometry/point_unittest.cc", |
392 "geometry/point3_unittest.cc", | 398 "geometry/point3_unittest.cc", |
393 "geometry/quad_unittest.cc", | 399 "geometry/quad_unittest.cc", |
394 "geometry/rect_unittest.cc", | 400 "geometry/rect_unittest.cc", |
395 "geometry/safe_integer_conversions_unittest.cc", | 401 "geometry/safe_integer_conversions_unittest.cc", |
396 "geometry/size_unittest.cc", | 402 "geometry/size_unittest.cc", |
397 "geometry/vector2d_unittest.cc", | 403 "geometry/vector2d_unittest.cc", |
398 "geometry/vector3d_unittest.cc", | 404 "geometry/vector3d_unittest.cc", |
399 "range/range_unittest.cc", | 405 "range/range_unittest.cc", |
400 "test/run_all_unittests.cc", | 406 "test/run_all_unittests.cc", |
401 ] | 407 ] |
402 | 408 |
403 deps = [ | 409 deps = [ |
404 ":gfx", | 410 ":gfx", |
405 ":gfx_test_support", | 411 ":gfx_test_support", |
406 "//base", | 412 "//base", |
407 "//base/test:test_support", | 413 "//base/test:test_support", |
408 "//testing/gtest", | 414 "//testing/gtest", |
409 "//ui/base", | 415 "//ui/base", |
410 "//ui/gfx/geometry", | 416 "//ui/gfx/geometry", |
411 ] | 417 ] |
| 418 |
| 419 if (use_pango) { |
| 420 sources += [ "platform_font_pango_unittest.cc" ] |
| 421 configs += [ |
| 422 "//build/config/linux:pangocairo", |
| 423 "//build/config/linux:pangoft2", |
| 424 ] |
| 425 } |
412 } | 426 } |
413 | 427 |
414 if (is_android) { | 428 if (is_android) { |
415 generate_jni("gfx_jni_headers") { | 429 generate_jni("gfx_jni_headers") { |
416 sources = [ | 430 sources = [ |
417 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", | 431 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", |
418 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", | 432 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", |
419 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", | 433 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", |
420 ] | 434 ] |
421 jni_package = "gfx" | 435 jni_package = "gfx" |
422 } | 436 } |
423 } | 437 } |
OLD | NEW |