Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: ui/gfx/BUILD.gn

Issue 407763003: linux: Avoid using unset Fontconfig properties. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: only build font_render_params_linux_unittest.cc when using pango Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/gfx/font_render_params_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 "test/ui_cocoa_test_helper.mm", 387 "test/ui_cocoa_test_helper.mm",
388 ] 388 ]
389 } 389 }
390 if (is_linux) { 390 if (is_linux) {
391 configs += [ "//build/config/linux:fontconfig" ] 391 configs += [ "//build/config/linux:fontconfig" ]
392 } 392 }
393 } 393 }
394 394
395 test("gfx_unittests") { 395 test("gfx_unittests") {
396 sources = [ 396 sources = [
397 "font_render_params_linux_unittest.cc",
398 "geometry/box_unittest.cc", 397 "geometry/box_unittest.cc",
399 "geometry/cubic_bezier_unittest.cc", 398 "geometry/cubic_bezier_unittest.cc",
400 "geometry/insets_unittest.cc", 399 "geometry/insets_unittest.cc",
401 "geometry/matrix3_unittest.cc", 400 "geometry/matrix3_unittest.cc",
402 "geometry/point_unittest.cc", 401 "geometry/point_unittest.cc",
403 "geometry/point3_unittest.cc", 402 "geometry/point3_unittest.cc",
404 "geometry/quad_unittest.cc", 403 "geometry/quad_unittest.cc",
405 "geometry/rect_unittest.cc", 404 "geometry/rect_unittest.cc",
406 "geometry/safe_integer_conversions_unittest.cc", 405 "geometry/safe_integer_conversions_unittest.cc",
407 "geometry/size_unittest.cc", 406 "geometry/size_unittest.cc",
408 "geometry/vector2d_unittest.cc", 407 "geometry/vector2d_unittest.cc",
409 "geometry/vector3d_unittest.cc", 408 "geometry/vector3d_unittest.cc",
410 "range/range_unittest.cc", 409 "range/range_unittest.cc",
411 "test/run_all_unittests.cc", 410 "test/run_all_unittests.cc",
412 ] 411 ]
413 412
414 deps = [ 413 deps = [
415 ":gfx", 414 ":gfx",
416 ":gfx_test_support", 415 ":gfx_test_support",
417 "//base", 416 "//base",
418 "//base/test:test_support", 417 "//base/test:test_support",
419 "//testing/gtest", 418 "//testing/gtest",
420 "//ui/base", 419 "//ui/base",
421 "//ui/gfx/geometry", 420 "//ui/gfx/geometry",
422 "//ui/resources:ui_test_pak", 421 "//ui/resources:ui_test_pak",
423 ] 422 ]
424 423
425 if (use_pango) { 424 if (use_pango) {
426 sources += [ "platform_font_pango_unittest.cc" ] 425 sources += [
426 "font_render_params_linux_unittest.cc",
427 "platform_font_pango_unittest.cc",
428 ]
427 configs += [ 429 configs += [
428 "//build/config/linux:pangocairo", 430 "//build/config/linux:pangocairo",
429 "//build/config/linux:pangoft2", 431 "//build/config/linux:pangoft2",
430 ] 432 ]
431 } 433 }
432 } 434 }
433 435
434 if (is_android) { 436 if (is_android) {
435 generate_jni("gfx_jni_headers") { 437 generate_jni("gfx_jni_headers") {
436 sources = [ 438 sources = [
437 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", 439 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java",
438 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", 440 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java",
439 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", 441 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java",
440 ] 442 ]
441 jni_package = "gfx" 443 jni_package = "gfx"
442 } 444 }
443 } 445 }
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/font_render_params_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698