Chromium Code Reviews| 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("//build/config/sanitizers/sanitizers.gni") | 7 import("//build/config/sanitizers/sanitizers.gni") |
| 8 import("//printing/features/features.gni") | 8 import("//printing/features/features.gni") |
| 9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 10 import("//third_party/skia/gn/shared_sources.gni") | 10 import("//third_party/skia/gn/shared_sources.gni") |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 36 "//third_party/skia/include/images", | 36 "//third_party/skia/include/images", |
| 37 "//third_party/skia/include/lazy", | 37 "//third_party/skia/include/lazy", |
| 38 "//third_party/skia/include/pathops", | 38 "//third_party/skia/include/pathops", |
| 39 "//third_party/skia/include/pdf", | 39 "//third_party/skia/include/pdf", |
| 40 "//third_party/skia/include/pipe", | 40 "//third_party/skia/include/pipe", |
| 41 "//third_party/skia/include/ports", | 41 "//third_party/skia/include/ports", |
| 42 "//third_party/skia/include/utils", | 42 "//third_party/skia/include/utils", |
| 43 "//third_party/skia/third_party/vulkan", | 43 "//third_party/skia/third_party/vulkan", |
| 44 ] | 44 ] |
| 45 | 45 |
| 46 if (!is_ios) { | |
| 47 include_dirs += [ "//third_party/skia/include/codec" ] | |
|
scroggo_chromium
2017/06/05 19:00:53
So we're not using SkCodec on ios? What happens th
cblume
2017/06/06 04:04:35
That is correct, we do not use SkCodec on iOS. Nor
| |
| 48 } | |
| 49 | |
| 46 defines = skia_for_chromium_defines | 50 defines = skia_for_chromium_defines |
| 47 defines += [ | 51 defines += [ |
| 48 "SK_HAS_PNG_LIBRARY", | 52 "SK_HAS_PNG_LIBRARY", |
| 49 "SK_HAS_WEBP_LIBRARY", | 53 "SK_HAS_WEBP_LIBRARY", |
| 50 ] | 54 ] |
| 51 | 55 |
| 52 if (!is_ios) { | 56 if (!is_ios) { |
| 53 defines += [ "SK_HAS_JPEG_LIBRARY" ] | 57 defines += [ "SK_HAS_JPEG_LIBRARY" ] |
| 54 } | 58 } |
| 55 | 59 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 107 "//third_party/skia/src/image", | 111 "//third_party/skia/src/image", |
| 108 "//third_party/skia/src/images", | 112 "//third_party/skia/src/images", |
| 109 "//third_party/skia/src/opts", | 113 "//third_party/skia/src/opts", |
| 110 "//third_party/skia/src/pdf", | 114 "//third_party/skia/src/pdf", |
| 111 "//third_party/skia/src/ports", | 115 "//third_party/skia/src/ports", |
| 112 "//third_party/skia/src/shaders", | 116 "//third_party/skia/src/shaders", |
| 113 "//third_party/skia/src/shaders/gradients", | 117 "//third_party/skia/src/shaders/gradients", |
| 114 "//third_party/skia/src/sfnt", | 118 "//third_party/skia/src/sfnt", |
| 115 "//third_party/skia/src/utils", | 119 "//third_party/skia/src/utils", |
| 116 "//third_party/skia/src/lazy", | 120 "//third_party/skia/src/lazy", |
| 121 "//third_party/skia/third_party/gif", | |
| 117 ] | 122 ] |
| 118 if (is_mac || is_ios) { | 123 if (is_mac || is_ios) { |
| 119 include_dirs += [ "//third_party/skia/include/utils/mac" ] | 124 include_dirs += [ "//third_party/skia/include/utils/mac" ] |
| 120 } | 125 } |
| 121 if (is_mac) { | 126 if (is_mac) { |
| 122 include_dirs += [ "//third_party/skia/include/utils/ios" ] | 127 include_dirs += [ "//third_party/skia/include/utils/ios" ] |
| 123 } | 128 } |
| 124 | 129 |
| 125 # TODO: remove after Skia shader relocation (https://skia-review.googlesource. com/c/17927) | 130 # TODO: remove after Skia shader relocation (https://skia-review.googlesource. com/c/17927) |
| 126 include_dirs += [ "//third_party/skia/src/effects/gradients" ] | 131 include_dirs += [ "//third_party/skia/src/effects/gradients" ] |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 278 "//third_party/skia/src/images/SkJPEGWriteUtility.cpp", | 283 "//third_party/skia/src/images/SkJPEGWriteUtility.cpp", |
| 279 "//third_party/skia/src/images/SkJpegEncoder.cpp", | 284 "//third_party/skia/src/images/SkJpegEncoder.cpp", |
| 280 "//third_party/skia/src/images/SkPngEncoder.cpp", | 285 "//third_party/skia/src/images/SkPngEncoder.cpp", |
| 281 "//third_party/skia/src/images/SkWebpEncoder.cpp", | 286 "//third_party/skia/src/images/SkWebpEncoder.cpp", |
| 282 "//third_party/skia/src/ports/SkGlobalInitialization_default.cpp", | 287 "//third_party/skia/src/ports/SkGlobalInitialization_default.cpp", |
| 283 "//third_party/skia/src/ports/SkImageGenerator_none.cpp", | 288 "//third_party/skia/src/ports/SkImageGenerator_none.cpp", |
| 284 "//third_party/skia/src/ports/SkOSFile_stdio.cpp", | 289 "//third_party/skia/src/ports/SkOSFile_stdio.cpp", |
| 285 "//third_party/skia/src/sfnt/SkOTTable_name.cpp", | 290 "//third_party/skia/src/sfnt/SkOTTable_name.cpp", |
| 286 "//third_party/skia/src/sfnt/SkOTUtils.cpp", | 291 "//third_party/skia/src/sfnt/SkOTUtils.cpp", |
| 287 ] | 292 ] |
| 293 if (!is_ios) { | |
| 294 sources += [ | |
| 295 "//third_party/skia/src/codec/SkBmpCodec.cpp", | |
| 296 "//third_party/skia/src/codec/SkBmpMaskCodec.cpp", | |
| 297 "//third_party/skia/src/codec/SkBmpRLECodec.cpp", | |
| 298 "//third_party/skia/src/codec/SkBmpStandardCodec.cpp", | |
| 299 "//third_party/skia/src/codec/SkCodec.cpp", | |
| 300 "//third_party/skia/src/codec/SkGifCodec.cpp", | |
| 301 "//third_party/skia/src/codec/SkIcoCodec.cpp", | |
| 302 "//third_party/skia/src/codec/SkJpegCodec.cpp", | |
| 303 "//third_party/skia/src/codec/SkJpegDecoderMgr.cpp", | |
| 304 "//third_party/skia/src/codec/SkJpegUtility.cpp", | |
| 305 "//third_party/skia/src/codec/SkMaskSwizzler.cpp", | |
| 306 "//third_party/skia/src/codec/SkMasks.cpp", | |
| 307 "//third_party/skia/src/codec/SkPngCodec.cpp", | |
| 308 "//third_party/skia/src/codec/SkSampler.cpp", | |
| 309 "//third_party/skia/src/codec/SkStreamBuffer.cpp", | |
| 310 "//third_party/skia/src/codec/SkSwizzler.cpp", | |
| 311 "//third_party/skia/src/codec/SkWbmpCodec.cpp", | |
| 312 "//third_party/skia/src/codec/SkWebpCodec.cpp", | |
| 313 "//third_party/skia/third_party/gif/SkGifImageReader.cpp", | |
| 314 ] | |
| 315 } | |
| 288 | 316 |
| 289 # This and skia_opts are really the same conceptual target so share headers. | 317 # This and skia_opts are really the same conceptual target so share headers. |
| 290 allow_circular_includes_from = [ ":skia_opts" ] | 318 allow_circular_includes_from = [ ":skia_opts" ] |
| 291 | 319 |
| 292 if (current_cpu == "arm") { | 320 if (current_cpu == "arm") { |
| 293 sources += [ "//third_party/skia/src/core/SkUtilsArm.cpp" ] | 321 sources += [ "//third_party/skia/src/core/SkUtilsArm.cpp" ] |
| 294 } | 322 } |
| 295 | 323 |
| 296 # GPU | 324 # GPU |
| 297 if (skia_support_gpu) { | 325 if (skia_support_gpu) { |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 743 | 771 |
| 744 deps = [ | 772 deps = [ |
| 745 ":skia", | 773 ":skia", |
| 746 "//base", | 774 "//base", |
| 747 "//base/test:test_support", | 775 "//base/test:test_support", |
| 748 "//build/config:exe_and_shlib_deps", | 776 "//build/config:exe_and_shlib_deps", |
| 749 "//build/win:default_exe_manifest", | 777 "//build/win:default_exe_manifest", |
| 750 ] | 778 ] |
| 751 } | 779 } |
| 752 } | 780 } |
| OLD | NEW |