| 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" || current_cpu == "arm64") { | 8 if (current_cpu == "arm" || current_cpu == "arm64") { |
| 9 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
| 10 } | 10 } |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 "//third_party/skia/src/core/SkUtilsArm.cpp", | 310 "//third_party/skia/src/core/SkUtilsArm.cpp", |
| 311 "//third_party/skia/src/core/SkUtilsArm.h", | 311 "//third_party/skia/src/core/SkUtilsArm.h", |
| 312 ] | 312 ] |
| 313 } | 313 } |
| 314 | 314 |
| 315 # GPU | 315 # GPU |
| 316 | 316 |
| 317 sources += gypi_skia_gpu.skgpu_sources | 317 sources += gypi_skia_gpu.skgpu_sources |
| 318 sources += gypi_skia_gpu.skgpu_null_gl_sources | 318 sources += gypi_skia_gpu.skgpu_null_gl_sources |
| 319 | 319 |
| 320 # Remove unused util files include in utils.gypi | 320 # Remove various unused files. |
| 321 sources -= [ | 321 sources -= [ |
| 322 # utils: |
| 322 "//third_party/skia/include/utils/SkBoundaryPatch.h", | 323 "//third_party/skia/include/utils/SkBoundaryPatch.h", |
| 323 "//third_party/skia/include/utils/SkCamera.h", | 324 "//third_party/skia/include/utils/SkCamera.h", |
| 324 "//third_party/skia/include/utils/SkCanvasStateUtils.h", | 325 "//third_party/skia/include/utils/SkCanvasStateUtils.h", |
| 325 "//third_party/skia/include/utils/SkCubicInterval.h", | 326 "//third_party/skia/include/utils/SkCubicInterval.h", |
| 326 "//third_party/skia/include/utils/SkCullPoints.h", | 327 "//third_party/skia/include/utils/SkCullPoints.h", |
| 327 "//third_party/skia/include/utils/SkDebugUtils.h", | 328 "//third_party/skia/include/utils/SkDebugUtils.h", |
| 328 "//third_party/skia/include/utils/SkDumpCanvas.h", | 329 "//third_party/skia/include/utils/SkDumpCanvas.h", |
| 329 "//third_party/skia/include/utils/SkEventTracer.h", | 330 "//third_party/skia/include/utils/SkEventTracer.h", |
| 330 "//third_party/skia/include/utils/SkFrontBufferedStream.h", | 331 "//third_party/skia/include/utils/SkFrontBufferedStream.h", |
| 331 "//third_party/skia/include/utils/SkInterpolator.h", | 332 "//third_party/skia/include/utils/SkInterpolator.h", |
| (...skipping 12 matching lines...) Expand all Loading... |
| 344 "//third_party/skia/src/utils/SkCullPoints.cpp", | 345 "//third_party/skia/src/utils/SkCullPoints.cpp", |
| 345 "//third_party/skia/src/utils/SkDumpCanvas.cpp", | 346 "//third_party/skia/src/utils/SkDumpCanvas.cpp", |
| 346 "//third_party/skia/src/utils/SkFloatUtils.h", | 347 "//third_party/skia/src/utils/SkFloatUtils.h", |
| 347 "//third_party/skia/src/utils/SkFrontBufferedStream.cpp", | 348 "//third_party/skia/src/utils/SkFrontBufferedStream.cpp", |
| 348 "//third_party/skia/src/utils/SkInterpolator.cpp", | 349 "//third_party/skia/src/utils/SkInterpolator.cpp", |
| 349 "//third_party/skia/src/utils/SkLayer.cpp", | 350 "//third_party/skia/src/utils/SkLayer.cpp", |
| 350 "//third_party/skia/src/utils/SkMD5.cpp", | 351 "//third_party/skia/src/utils/SkMD5.cpp", |
| 351 "//third_party/skia/src/utils/SkMD5.h", | 352 "//third_party/skia/src/utils/SkMD5.h", |
| 352 "//third_party/skia/src/utils/SkMeshUtils.cpp", | 353 "//third_party/skia/src/utils/SkMeshUtils.cpp", |
| 353 "//third_party/skia/src/utils/SkNinePatch.cpp", | 354 "//third_party/skia/src/utils/SkNinePatch.cpp", |
| 354 "//third_party/skia/src/utils/SkOSFile.cpp", | |
| 355 "//third_party/skia/src/utils/SkParsePath.cpp", | 355 "//third_party/skia/src/utils/SkParsePath.cpp", |
| 356 "//third_party/skia/src/utils/SkSHA1.cpp", | 356 "//third_party/skia/src/utils/SkSHA1.cpp", |
| 357 "//third_party/skia/src/utils/SkSHA1.h", | 357 "//third_party/skia/src/utils/SkSHA1.h", |
| 358 "//third_party/skia/src/utils/SkTFitsIn.h", | 358 "//third_party/skia/src/utils/SkTFitsIn.h", |
| 359 | 359 |
| 360 #testing | 360 # fonts: |
| 361 "//third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp", |
| 361 "//third_party/skia/src/fonts/SkGScalerContext.cpp", | 362 "//third_party/skia/src/fonts/SkGScalerContext.cpp", |
| 362 "//third_party/skia/src/fonts/SkGScalerContext.h", | 363 "//third_party/skia/src/fonts/SkGScalerContext.h", |
| 364 |
| 365 # ports: |
| 366 "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp", |
| 367 "//third_party/skia/src/ports/SkFontHost_fontconfig.cpp", |
| 363 ] | 368 ] |
| 364 | 369 |
| 365 if (is_ios || is_mac || is_android) { | 370 if (is_ios || is_mac || is_android) { |
| 366 sources -= | 371 sources -= |
| 367 [ "//third_party/skia/src/gpu/gl/GrGLCreateNativeInterface_none.cpp" ] | 372 [ "//third_party/skia/src/gpu/gl/GrGLCreateNativeInterface_none.cpp" ] |
| 368 | 373 |
| 369 set_sources_assignment_filter([]) | 374 set_sources_assignment_filter([]) |
| 370 | 375 |
| 371 if (is_ios) { | 376 if (is_ios) { |
| 372 sources += [ "//third_party/skia/src/gpu/gl/iOS/GrGLCreateNativeInterface_
iOS.cpp" ] | 377 sources += [ "//third_party/skia/src/gpu/gl/iOS/GrGLCreateNativeInterface_
iOS.cpp" ] |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 sources -= [ | 451 sources -= [ |
| 447 "//third_party/skia/src/ports/SkFontMgr_android.cpp", | 452 "//third_party/skia/src/ports/SkFontMgr_android.cpp", |
| 448 "//third_party/skia/src/ports/SkFontMgr_android_factory.cpp", | 453 "//third_party/skia/src/ports/SkFontMgr_android_factory.cpp", |
| 449 "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp", | 454 "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp", |
| 450 ] | 455 ] |
| 451 } | 456 } |
| 452 if (!is_mac && !is_ios) { | 457 if (!is_mac && !is_ios) { |
| 453 sources -= [ "//third_party/skia/src/ports/SkFontHost_mac.cpp" ] | 458 sources -= [ "//third_party/skia/src/ports/SkFontHost_mac.cpp" ] |
| 454 } | 459 } |
| 455 | 460 |
| 456 if (!is_linux) { | 461 # On "Linux" (i.e., not Android), we use our a custom SkFontMgr. |
| 457 sources -= [ | 462 # TODO(vtl): We should probably do the same on Android. |
| 458 "//third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp", | 463 if (is_linux) { |
| 459 "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp", | 464 sources += [ |
| 460 "//third_party/skia/src/ports/SkFontHost_fontconfig.cpp", | 465 "//third_party/skia/src/ports/SkFontMgr_custom.cpp", |
| 466 "ports/font_mgr_factory.cc", |
| 461 ] | 467 ] |
| 462 } | 468 } |
| 463 | 469 |
| 464 if (!is_linux && !is_android) { | 470 if (!is_linux && !is_android) { |
| 465 sources -= [ | 471 sources -= [ |
| 466 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", | 472 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", |
| 467 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", | 473 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", |
| 468 ] | 474 ] |
| 469 } | 475 } |
| 470 | 476 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 501 public_configs = [ ":skia_config" ] | 507 public_configs = [ ":skia_config" ] |
| 502 | 508 |
| 503 deps = [ | 509 deps = [ |
| 504 ":skia_opts", | 510 ":skia_opts", |
| 505 "//base", | 511 "//base", |
| 506 "//base/third_party/dynamic_annotations", | 512 "//base/third_party/dynamic_annotations", |
| 507 "//third_party/zlib", | 513 "//third_party/zlib", |
| 508 ] | 514 ] |
| 509 | 515 |
| 510 if (is_linux) { | 516 if (is_linux) { |
| 511 configs += [ | 517 configs += [ "//build/config/linux:freetype2" ] |
| 512 "//build/config/linux:fontconfig", | |
| 513 "//build/config/linux:freetype2", | |
| 514 ] | |
| 515 deps += [ "//third_party/icu:icuuc" ] | 518 deps += [ "//third_party/icu:icuuc" ] |
| 516 } | 519 } |
| 517 | 520 |
| 518 if (is_android) { | 521 if (is_android) { |
| 519 set_sources_assignment_filter([]) | 522 set_sources_assignment_filter([]) |
| 520 sources += [ "ext/platform_device_linux.cc" ] | 523 sources += [ "ext/platform_device_linux.cc" ] |
| 521 set_sources_assignment_filter(sources_assignment_filter) | 524 set_sources_assignment_filter(sources_assignment_filter) |
| 522 deps += [ | 525 deps += [ |
| 523 "//third_party/expat", | 526 "//third_party/expat", |
| 524 "//third_party/freetype-android:freetype", | 527 "//third_party/freetype-android:freetype", |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 sources = [ | 658 sources = [ |
| 656 "tools/filter_fuzz_stub/filter_fuzz_stub.cc", | 659 "tools/filter_fuzz_stub/filter_fuzz_stub.cc", |
| 657 ] | 660 ] |
| 658 | 661 |
| 659 deps = [ | 662 deps = [ |
| 660 ":skia", | 663 ":skia", |
| 661 "//base", | 664 "//base", |
| 662 ] | 665 ] |
| 663 } | 666 } |
| 664 } | 667 } |
| OLD | NEW |