OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 if (current_cpu == "arm") { | 8 if (current_cpu == "arm") { |
9 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
10 } | 10 } |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 | 410 |
411 if (!is_linux) { | 411 if (!is_linux) { |
412 sources -= [ | 412 sources -= [ |
413 "//third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp", | 413 "//third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp", |
414 "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp", | 414 "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp", |
415 "//third_party/skia/src/ports/SkFontConfigInterface_direct_factory.cpp", | 415 "//third_party/skia/src/ports/SkFontConfigInterface_direct_factory.cpp", |
416 "//third_party/skia/src/ports/SkFontHost_fontconfig.cpp", | 416 "//third_party/skia/src/ports/SkFontHost_fontconfig.cpp", |
417 ] | 417 ] |
418 } | 418 } |
419 | 419 |
| 420 # Add the files for the SkFontMgr_Android. This is used to emulate android |
| 421 # fonts on linux. See content/zygote/zygote_main_linux.cc |
| 422 if (is_linux) { |
| 423 sources += [ |
| 424 "//third_party/skia/src/ports/SkFontMgr_android.cpp", |
| 425 "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp", |
| 426 ] |
| 427 } |
| 428 |
420 if (!is_linux && !is_android) { | 429 if (!is_linux && !is_android) { |
421 sources -= [ | 430 sources -= [ |
422 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", | 431 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", |
423 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", | 432 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", |
424 ] | 433 ] |
425 } | 434 } |
426 | 435 |
427 # Select the right BitmapPlatformDevice. | 436 # Select the right BitmapPlatformDevice. |
428 if (is_win) { | 437 if (is_win) { |
429 sources += [ "ext/bitmap_platform_device_win.cc" ] | 438 sources += [ "ext/bitmap_platform_device_win.cc" ] |
(...skipping 27 matching lines...) Expand all Loading... |
457 "//third_party/zlib", | 466 "//third_party/zlib", |
458 ] | 467 ] |
459 | 468 |
460 if (is_linux) { | 469 if (is_linux) { |
461 if (use_pango) { | 470 if (use_pango) { |
462 configs += [ "//build/config/linux:pangocairo" ] | 471 configs += [ "//build/config/linux:pangocairo" ] |
463 } | 472 } |
464 deps += [ | 473 deps += [ |
465 "//build/linux:fontconfig", | 474 "//build/linux:fontconfig", |
466 "//build/linux:freetype2", | 475 "//build/linux:freetype2", |
| 476 "//third_party/expat", |
467 "//third_party/icu:icuuc", | 477 "//third_party/icu:icuuc", |
468 ] | 478 ] |
469 } | 479 } |
470 | 480 |
471 if (is_android) { | 481 if (is_android) { |
472 set_sources_assignment_filter([]) | 482 set_sources_assignment_filter([]) |
473 sources += [ "ext/platform_device_linux.cc" ] | 483 sources += [ "ext/platform_device_linux.cc" ] |
474 set_sources_assignment_filter(sources_assignment_filter) | 484 set_sources_assignment_filter(sources_assignment_filter) |
475 deps += [ | 485 deps += [ |
476 "//third_party/android_tools:cpu_features", | 486 "//third_party/android_tools:cpu_features", |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 ] | 719 ] |
710 | 720 |
711 deps = [ | 721 deps = [ |
712 ":skia", | 722 ":skia", |
713 "//base", | 723 "//base", |
714 "//base/test:test_support", | 724 "//base/test:test_support", |
715 "//build/config/sanitizers:deps", | 725 "//build/config/sanitizers:deps", |
716 ] | 726 ] |
717 } | 727 } |
718 } | 728 } |
OLD | NEW |