| 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/freetype/freetype.gni") | 6 import("//build/config/freetype/freetype.gni") |
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 import("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
| 9 import("//printing/features/features.gni") | 9 import("//printing/features/features.gni") |
| 10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 "//third_party/skia/include/images", | 38 "//third_party/skia/include/images", |
| 39 "//third_party/skia/include/lazy", | 39 "//third_party/skia/include/lazy", |
| 40 "//third_party/skia/include/pathops", | 40 "//third_party/skia/include/pathops", |
| 41 "//third_party/skia/include/pdf", | 41 "//third_party/skia/include/pdf", |
| 42 "//third_party/skia/include/pipe", | 42 "//third_party/skia/include/pipe", |
| 43 "//third_party/skia/include/ports", | 43 "//third_party/skia/include/ports", |
| 44 "//third_party/skia/include/utils", | 44 "//third_party/skia/include/utils", |
| 45 "//third_party/skia/third_party/vulkan", | 45 "//third_party/skia/third_party/vulkan", |
| 46 ] | 46 ] |
| 47 | 47 |
| 48 if (!is_ios) { |
| 49 include_dirs += [ "//third_party/skia/include/codec" ] |
| 50 } |
| 51 |
| 48 defines = skia_for_chromium_defines | 52 defines = skia_for_chromium_defines |
| 49 defines += [ | 53 defines += [ |
| 50 "SK_HAS_PNG_LIBRARY", | 54 "SK_HAS_PNG_LIBRARY", |
| 51 "SK_HAS_WEBP_LIBRARY", | 55 "SK_HAS_WEBP_LIBRARY", |
| 52 ] | 56 ] |
| 53 | 57 |
| 54 if (!is_ios) { | 58 if (!is_ios) { |
| 55 defines += [ "SK_HAS_JPEG_LIBRARY" ] | 59 defines += [ "SK_HAS_JPEG_LIBRARY" ] |
| 56 } | 60 } |
| 57 | 61 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 "//third_party/skia/src/image", | 108 "//third_party/skia/src/image", |
| 105 "//third_party/skia/src/images", | 109 "//third_party/skia/src/images", |
| 106 "//third_party/skia/src/opts", | 110 "//third_party/skia/src/opts", |
| 107 "//third_party/skia/src/pdf", | 111 "//third_party/skia/src/pdf", |
| 108 "//third_party/skia/src/ports", | 112 "//third_party/skia/src/ports", |
| 109 "//third_party/skia/src/shaders", | 113 "//third_party/skia/src/shaders", |
| 110 "//third_party/skia/src/shaders/gradients", | 114 "//third_party/skia/src/shaders/gradients", |
| 111 "//third_party/skia/src/sfnt", | 115 "//third_party/skia/src/sfnt", |
| 112 "//third_party/skia/src/utils", | 116 "//third_party/skia/src/utils", |
| 113 "//third_party/skia/src/lazy", | 117 "//third_party/skia/src/lazy", |
| 118 "//third_party/skia/third_party/gif", |
| 114 ] | 119 ] |
| 115 if (is_mac || is_ios) { | 120 if (is_mac || is_ios) { |
| 116 include_dirs += [ "//third_party/skia/include/utils/mac" ] | 121 include_dirs += [ "//third_party/skia/include/utils/mac" ] |
| 117 } | 122 } |
| 118 if (is_mac) { | 123 if (is_mac) { |
| 119 include_dirs += [ "//third_party/skia/include/utils/ios" ] | 124 include_dirs += [ "//third_party/skia/include/utils/ios" ] |
| 120 } | 125 } |
| 121 | 126 |
| 122 # TODO: remove after Skia shader relocation (https://skia-review.googlesource.
com/c/17927) | 127 # TODO: remove after Skia shader relocation (https://skia-review.googlesource.
com/c/17927) |
| 123 include_dirs += [ "//third_party/skia/src/effects/gradients" ] | 128 include_dirs += [ "//third_party/skia/src/effects/gradients" ] |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 "//third_party/skia/src/images/SkJPEGWriteUtility.cpp", | 293 "//third_party/skia/src/images/SkJPEGWriteUtility.cpp", |
| 289 "//third_party/skia/src/images/SkJpegEncoder.cpp", | 294 "//third_party/skia/src/images/SkJpegEncoder.cpp", |
| 290 "//third_party/skia/src/images/SkPngEncoder.cpp", | 295 "//third_party/skia/src/images/SkPngEncoder.cpp", |
| 291 "//third_party/skia/src/images/SkWebpEncoder.cpp", | 296 "//third_party/skia/src/images/SkWebpEncoder.cpp", |
| 292 "//third_party/skia/src/ports/SkGlobalInitialization_default.cpp", | 297 "//third_party/skia/src/ports/SkGlobalInitialization_default.cpp", |
| 293 "//third_party/skia/src/ports/SkImageGenerator_none.cpp", | 298 "//third_party/skia/src/ports/SkImageGenerator_none.cpp", |
| 294 "//third_party/skia/src/ports/SkOSFile_stdio.cpp", | 299 "//third_party/skia/src/ports/SkOSFile_stdio.cpp", |
| 295 "//third_party/skia/src/sfnt/SkOTTable_name.cpp", | 300 "//third_party/skia/src/sfnt/SkOTTable_name.cpp", |
| 296 "//third_party/skia/src/sfnt/SkOTUtils.cpp", | 301 "//third_party/skia/src/sfnt/SkOTUtils.cpp", |
| 297 ] | 302 ] |
| 303 if (!is_ios) { |
| 304 sources += [ |
| 305 "//third_party/skia/src/codec/SkBmpBaseCodec.cpp", |
| 306 "//third_party/skia/src/codec/SkBmpCodec.cpp", |
| 307 "//third_party/skia/src/codec/SkBmpMaskCodec.cpp", |
| 308 "//third_party/skia/src/codec/SkBmpRLECodec.cpp", |
| 309 "//third_party/skia/src/codec/SkBmpStandardCodec.cpp", |
| 310 "//third_party/skia/src/codec/SkCodec.cpp", |
| 311 "//third_party/skia/src/codec/SkGifCodec.cpp", |
| 312 "//third_party/skia/src/codec/SkIcoCodec.cpp", |
| 313 "//third_party/skia/src/codec/SkJpegCodec.cpp", |
| 314 "//third_party/skia/src/codec/SkJpegDecoderMgr.cpp", |
| 315 "//third_party/skia/src/codec/SkJpegUtility.cpp", |
| 316 "//third_party/skia/src/codec/SkMaskSwizzler.cpp", |
| 317 "//third_party/skia/src/codec/SkMasks.cpp", |
| 318 "//third_party/skia/src/codec/SkPngCodec.cpp", |
| 319 "//third_party/skia/src/codec/SkSampler.cpp", |
| 320 "//third_party/skia/src/codec/SkStreamBuffer.cpp", |
| 321 "//third_party/skia/src/codec/SkSwizzler.cpp", |
| 322 "//third_party/skia/src/codec/SkWbmpCodec.cpp", |
| 323 "//third_party/skia/src/codec/SkWebpCodec.cpp", |
| 324 "//third_party/skia/third_party/gif/SkGifImageReader.cpp", |
| 325 ] |
| 326 } |
| 298 | 327 |
| 299 # This and skia_opts are really the same conceptual target so share headers. | 328 # This and skia_opts are really the same conceptual target so share headers. |
| 300 allow_circular_includes_from = [ ":skia_opts" ] | 329 allow_circular_includes_from = [ ":skia_opts" ] |
| 301 | 330 |
| 302 if (current_cpu == "arm") { | 331 if (current_cpu == "arm") { |
| 303 sources += [ "//third_party/skia/src/core/SkUtilsArm.cpp" ] | 332 sources += [ "//third_party/skia/src/core/SkUtilsArm.cpp" ] |
| 304 } | 333 } |
| 305 | 334 |
| 306 # GPU | 335 # GPU |
| 307 if (skia_support_gpu) { | 336 if (skia_support_gpu) { |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 | 782 |
| 754 deps = [ | 783 deps = [ |
| 755 ":skia", | 784 ":skia", |
| 756 "//base", | 785 "//base", |
| 757 "//base/test:test_support", | 786 "//base/test:test_support", |
| 758 "//build/config:exe_and_shlib_deps", | 787 "//build/config:exe_and_shlib_deps", |
| 759 "//build/win:default_exe_manifest", | 788 "//build/win:default_exe_manifest", |
| 760 ] | 789 ] |
| 761 } | 790 } |
| 762 } | 791 } |
| OLD | NEW |