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 11 matching lines...) Expand all Loading... |
22 declare_args() { | 22 declare_args() { |
23 skia_whitelist_serialized_typefaces = false | 23 skia_whitelist_serialized_typefaces = false |
24 } | 24 } |
25 | 25 |
26 # External-facing config for dependent code. | 26 # External-facing config for dependent code. |
27 config("skia_config") { | 27 config("skia_config") { |
28 include_dirs = [ | 28 include_dirs = [ |
29 "config", | 29 "config", |
30 "ext", | 30 "ext", |
31 "//third_party/skia/include/c", | 31 "//third_party/skia/include/c", |
| 32 "//third_party/skia/include/codec", |
32 "//third_party/skia/include/config", | 33 "//third_party/skia/include/config", |
33 "//third_party/skia/include/core", | 34 "//third_party/skia/include/core", |
34 "//third_party/skia/include/effects", | 35 "//third_party/skia/include/effects", |
35 "//third_party/skia/include/images", | 36 "//third_party/skia/include/images", |
36 "//third_party/skia/include/lazy", | 37 "//third_party/skia/include/lazy", |
37 "//third_party/skia/include/pathops", | 38 "//third_party/skia/include/pathops", |
38 "//third_party/skia/include/pdf", | 39 "//third_party/skia/include/pdf", |
39 "//third_party/skia/include/pipe", | 40 "//third_party/skia/include/pipe", |
40 "//third_party/skia/include/ports", | 41 "//third_party/skia/include/ports", |
41 "//third_party/skia/include/utils", | 42 "//third_party/skia/include/utils", |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 } | 89 } |
89 | 90 |
90 # Internal-facing config for Skia library code. | 91 # Internal-facing config for Skia library code. |
91 config("skia_library_config") { | 92 config("skia_library_config") { |
92 # These include directories are only included for Skia code and are not | 93 # These include directories are only included for Skia code and are not |
93 # exported to dependents. It's not clear if this is on purpose, but this | 94 # exported to dependents. It's not clear if this is on purpose, but this |
94 # matches the GYP build. | 95 # matches the GYP build. |
95 include_dirs = [ | 96 include_dirs = [ |
96 "//third_party/skia/include/private", | 97 "//third_party/skia/include/private", |
97 "//third_party/skia/include/client/android", | 98 "//third_party/skia/include/client/android", |
| 99 "//third_party/skia/src/codec", |
98 "//third_party/skia/src/core", | 100 "//third_party/skia/src/core", |
99 "//third_party/skia/src/effects/gradients", | 101 "//third_party/skia/src/effects/gradients", |
100 "//third_party/skia/src/image", | 102 "//third_party/skia/src/image", |
101 "//third_party/skia/src/opts", | 103 "//third_party/skia/src/opts", |
102 "//third_party/skia/src/pdf", | 104 "//third_party/skia/src/pdf", |
103 "//third_party/skia/src/ports", | 105 "//third_party/skia/src/ports", |
104 "//third_party/skia/src/sfnt", | 106 "//third_party/skia/src/sfnt", |
105 "//third_party/skia/src/utils", | 107 "//third_party/skia/src/utils", |
106 "//third_party/skia/src/lazy", | 108 "//third_party/skia/src/lazy", |
| 109 "//third_party/skia/third_party/gif", |
107 ] | 110 ] |
108 if (is_mac || is_ios) { | 111 if (is_mac || is_ios) { |
109 include_dirs += [ "//third_party/skia/include/utils/mac" ] | 112 include_dirs += [ "//third_party/skia/include/utils/mac" ] |
110 } | 113 } |
111 if (is_mac) { | 114 if (is_mac) { |
112 include_dirs += [ "//third_party/skia/include/utils/ios" ] | 115 include_dirs += [ "//third_party/skia/include/utils/ios" ] |
113 } | 116 } |
114 | 117 |
115 defines = [] | 118 defines = [] |
116 | 119 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 } else if (current_cpu == "mipsel" && mips_dsp_rev >= 2) { | 231 } else if (current_cpu == "mipsel" && mips_dsp_rev >= 2) { |
229 sources += [ "ext/convolver_mips_dspr2.cc" ] | 232 sources += [ "ext/convolver_mips_dspr2.cc" ] |
230 } | 233 } |
231 | 234 |
232 # The imported Skia gni source paths are made absolute by gn. | 235 # The imported Skia gni source paths are made absolute by gn. |
233 sources += skia_core_sources | 236 sources += skia_core_sources |
234 sources += skia_effects_sources | 237 sources += skia_effects_sources |
235 sources += skia_utils_sources | 238 sources += skia_utils_sources |
236 sources += skia_xps_sources | 239 sources += skia_xps_sources |
237 sources += [ | 240 sources += [ |
| 241 "//third_party/skia/src/codec/SkBmpCodec.cpp", |
| 242 "//third_party/skia/src/codec/SkBmpMaskCodec.cpp", |
| 243 "//third_party/skia/src/codec/SkBmpRLECodec.cpp", |
| 244 "//third_party/skia/src/codec/SkBmpStandardCodec.cpp", |
| 245 "//third_party/skia/src/codec/SkCodec.cpp", |
| 246 "//third_party/skia/src/codec/SkGifCodec.cpp", |
| 247 "//third_party/skia/src/codec/SkMaskSwizzler.cpp", |
| 248 "//third_party/skia/src/codec/SkMasks.cpp", |
| 249 "//third_party/skia/src/codec/SkSampler.cpp", |
| 250 "//third_party/skia/src/codec/SkStreamBuffer.cpp", |
| 251 "//third_party/skia/src/codec/SkSwizzler.cpp", |
| 252 "//third_party/skia/src/codec/SkWbmpCodec.cpp", |
238 "//third_party/skia/src/fonts/SkFontMgr_indirect.cpp", | 253 "//third_party/skia/src/fonts/SkFontMgr_indirect.cpp", |
239 "//third_party/skia/src/fonts/SkRemotableFontMgr.cpp", | 254 "//third_party/skia/src/fonts/SkRemotableFontMgr.cpp", |
240 "//third_party/skia/src/ports/SkGlobalInitialization_default.cpp", | 255 "//third_party/skia/src/ports/SkGlobalInitialization_default.cpp", |
241 "//third_party/skia/src/ports/SkImageGenerator_none.cpp", | 256 "//third_party/skia/src/ports/SkImageGenerator_none.cpp", |
242 "//third_party/skia/src/ports/SkOSFile_stdio.cpp", | 257 "//third_party/skia/src/ports/SkOSFile_stdio.cpp", |
243 "//third_party/skia/src/sfnt/SkOTTable_name.cpp", | 258 "//third_party/skia/src/sfnt/SkOTTable_name.cpp", |
244 "//third_party/skia/src/sfnt/SkOTUtils.cpp", | 259 "//third_party/skia/src/sfnt/SkOTUtils.cpp", |
| 260 "//third_party/skia/third_party/gif/SkGifImageReader.cpp", |
245 ] | 261 ] |
246 | 262 |
247 # This and skia_opts are really the same conceptual target so share headers. | 263 # This and skia_opts are really the same conceptual target so share headers. |
248 allow_circular_includes_from = [ ":skia_opts" ] | 264 allow_circular_includes_from = [ ":skia_opts" ] |
249 | 265 |
250 if (current_cpu == "arm") { | 266 if (current_cpu == "arm") { |
251 sources += [ "//third_party/skia/src/core/SkUtilsArm.cpp" ] | 267 sources += [ "//third_party/skia/src/core/SkUtilsArm.cpp" ] |
252 } | 268 } |
253 | 269 |
254 # GPU | 270 # GPU |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 | 689 |
674 deps = [ | 690 deps = [ |
675 ":skia", | 691 ":skia", |
676 "//base", | 692 "//base", |
677 "//base/test:test_support", | 693 "//base/test:test_support", |
678 "//build/config/sanitizers:deps", | 694 "//build/config/sanitizers:deps", |
679 "//build/win:default_exe_manifest", | 695 "//build/win:default_exe_manifest", |
680 ] | 696 ] |
681 } | 697 } |
682 } | 698 } |
OLD | NEW |