| 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 if (cpu_arch == "arm") { | 7 if (cpu_arch == "arm") { |
| 8 import("//build/config/arm.gni") | 8 import("//build/config/arm.gni") |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 "ext/vector_platform_device_skia.h", | 303 "ext/vector_platform_device_skia.h", |
| 304 ] | 304 ] |
| 305 | 305 |
| 306 # The skia gypi values are relative to the skia_dir, so we need to rebase. | 306 # The skia gypi values are relative to the skia_dir, so we need to rebase. |
| 307 sources += gypi_skia_core.sources | 307 sources += gypi_skia_core.sources |
| 308 sources += gypi_skia_effects.sources | 308 sources += gypi_skia_effects.sources |
| 309 sources += gypi_skia_utils.sources | 309 sources += gypi_skia_utils.sources |
| 310 sources += gypi_skia_pdf.sources | 310 sources += gypi_skia_pdf.sources |
| 311 sources += gypi_values.skia_library_sources | 311 sources += gypi_values.skia_library_sources |
| 312 | 312 |
| 313 if (cpu_arch == "arm") { |
| 314 sources += [ |
| 315 "//third_party/skia/src/core/SkUtilsArm.cpp", |
| 316 "//third_party/skia/src/core/SkUtilsArm.h", |
| 317 ] |
| 318 } |
| 319 |
| 313 # GPU | 320 # GPU |
| 314 if (skia_support_gpu) { | 321 if (skia_support_gpu) { |
| 315 sources += gypi_skia_gpu.skgpu_sources | 322 sources += gypi_skia_gpu.skgpu_sources |
| 316 sources += gypi_skia_gpu.skgpu_null_gl_sources | 323 sources += gypi_skia_gpu.skgpu_null_gl_sources |
| 317 } | 324 } |
| 318 | 325 |
| 319 # Remove unused util files include in utils.gypi | 326 # Remove unused util files include in utils.gypi |
| 320 sources -= [ | 327 sources -= [ |
| 321 "//third_party/skia/include/utils/SkCondVar.h", | 328 "//third_party/skia/include/utils/SkCondVar.h", |
| 322 "//third_party/skia/include/utils/SkRunnable.h", | 329 "//third_party/skia/include/utils/SkRunnable.h", |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 if (!is_mac) { | 451 if (!is_mac) { |
| 445 sources -= [ | 452 sources -= [ |
| 446 "//third_party/skia/src/ports/SkFontHost_mac.cpp", | 453 "//third_party/skia/src/ports/SkFontHost_mac.cpp", |
| 447 ] | 454 ] |
| 448 } | 455 } |
| 449 | 456 |
| 450 if (!is_linux) { | 457 if (!is_linux) { |
| 451 sources -= [ | 458 sources -= [ |
| 452 "//third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp", | 459 "//third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp", |
| 453 "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp", | 460 "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp", |
| 461 ] |
| 462 } |
| 463 |
| 464 if (!is_linux && !is_android) { |
| 465 sources -= [ |
| 454 "//third_party/skia/src/ports/SkFontHost_fontconfig.cpp", | 466 "//third_party/skia/src/ports/SkFontHost_fontconfig.cpp", |
| 455 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", | 467 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", |
| 456 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", | 468 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", |
| 457 ] | 469 ] |
| 458 } | 470 } |
| 459 | 471 |
| 460 if (!use_cairo) { | 472 if (!use_cairo) { |
| 461 sources -= [ | 473 sources -= [ |
| 462 "ext/bitmap_platform_device_cairo.cc", | 474 "ext/bitmap_platform_device_cairo.cc", |
| 463 "ext/bitmap_platform_device_cairo.h", | 475 "ext/bitmap_platform_device_cairo.h", |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 "//build/config/linux:fontconfig", | 514 "//build/config/linux:fontconfig", |
| 503 "//build/config/linux:freetype2", | 515 "//build/config/linux:freetype2", |
| 504 "//build/config/linux:pangocairo", | 516 "//build/config/linux:pangocairo", |
| 505 ] | 517 ] |
| 506 deps += [ | 518 deps += [ |
| 507 "//third_party/icu:icuuc", | 519 "//third_party/icu:icuuc", |
| 508 ] | 520 ] |
| 509 } | 521 } |
| 510 | 522 |
| 511 if (is_android) { | 523 if (is_android) { |
| 524 set_sources_assignment_filter([]) |
| 525 sources += [ |
| 526 "ext/platform_device_linux.cc", |
| 527 ] |
| 528 set_sources_assignment_filter(sources_assignment_filter) |
| 512 deps += [ | 529 deps += [ |
| 513 "//third_party/expat", | 530 "//third_party/expat", |
| 514 "//third_party/freetype", | 531 "//third_party/freetype", |
| 532 "//third_party/android_tools:cpu_features", |
| 515 ] | 533 ] |
| 516 } | 534 } |
| 517 | 535 |
| 518 if (skia_support_pdf) { | 536 if (skia_support_pdf) { |
| 519 deps += [ "//third_party/sfntly" ] | 537 deps += [ "//third_party/sfntly" ] |
| 520 } | 538 } |
| 521 } | 539 } |
| 522 | 540 |
| 523 # Separated out so it can be compiled with different flags for SSE. | 541 # Separated out so it can be compiled with different flags for SSE. |
| 524 source_set("skia_opts") { | 542 source_set("skia_opts") { |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 ":skia_config", | 674 ":skia_config", |
| 657 "//build/config/compiler:no_chromium_code" | 675 "//build/config/compiler:no_chromium_code" |
| 658 ] | 676 ] |
| 659 | 677 |
| 660 deps = [ | 678 deps = [ |
| 661 "//base", | 679 "//base", |
| 662 ] | 680 ] |
| 663 | 681 |
| 664 visibility = ":skia" | 682 visibility = ":skia" |
| 665 } | 683 } |
| OLD | NEW |