| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 } | 86 } |
| 86 | 87 |
| 87 # Internal-facing config for Skia library code. | 88 # Internal-facing config for Skia library code. |
| 88 config("skia_library_config") { | 89 config("skia_library_config") { |
| 89 # These include directories are only included for Skia code and are not | 90 # These include directories are only included for Skia code and are not |
| 90 # exported to dependents. It's not clear if this is on purpose, but this | 91 # exported to dependents. It's not clear if this is on purpose, but this |
| 91 # matches the GYP build. | 92 # matches the GYP build. |
| 92 include_dirs = [ | 93 include_dirs = [ |
| 93 "//third_party/skia/include/private", | 94 "//third_party/skia/include/private", |
| 94 "//third_party/skia/include/client/android", | 95 "//third_party/skia/include/client/android", |
| 96 "//third_party/skia/src/codec", |
| 95 "//third_party/skia/src/core", | 97 "//third_party/skia/src/core", |
| 96 "//third_party/skia/src/image", | 98 "//third_party/skia/src/image", |
| 97 "//third_party/skia/src/opts", | 99 "//third_party/skia/src/opts", |
| 98 "//third_party/skia/src/pdf", | 100 "//third_party/skia/src/pdf", |
| 99 "//third_party/skia/src/ports", | 101 "//third_party/skia/src/ports", |
| 100 "//third_party/skia/src/sfnt", | 102 "//third_party/skia/src/sfnt", |
| 101 "//third_party/skia/src/utils", | 103 "//third_party/skia/src/utils", |
| 102 "//third_party/skia/src/lazy", | 104 "//third_party/skia/src/lazy", |
| 105 "//third_party/skia/third_party/gif", |
| 103 ] | 106 ] |
| 104 if (is_mac || is_ios) { | 107 if (is_mac || is_ios) { |
| 105 include_dirs += [ "//third_party/skia/include/utils/mac" ] | 108 include_dirs += [ "//third_party/skia/include/utils/mac" ] |
| 106 } | 109 } |
| 107 if (is_mac) { | 110 if (is_mac) { |
| 108 include_dirs += [ "//third_party/skia/include/utils/ios" ] | 111 include_dirs += [ "//third_party/skia/include/utils/ios" ] |
| 109 } | 112 } |
| 110 | 113 |
| 111 defines = [] | 114 defines = [] |
| 112 | 115 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 sources += [ "ext/convolver_SSE2.cc" ] | 227 sources += [ "ext/convolver_SSE2.cc" ] |
| 225 } else if (current_cpu == "mipsel" && mips_dsp_rev >= 2) { | 228 } else if (current_cpu == "mipsel" && mips_dsp_rev >= 2) { |
| 226 sources += [ "ext/convolver_mips_dspr2.cc" ] | 229 sources += [ "ext/convolver_mips_dspr2.cc" ] |
| 227 } | 230 } |
| 228 | 231 |
| 229 # The skia gypi values are relative to the skia_dir, so we need to rebase. | 232 # The skia gypi values are relative to the skia_dir, so we need to rebase. |
| 230 sources += skia_core_sources | 233 sources += skia_core_sources |
| 231 sources += skia_effects_sources | 234 sources += skia_effects_sources |
| 232 sources += skia_utils_sources | 235 sources += skia_utils_sources |
| 233 sources += [ | 236 sources += [ |
| 237 "//third_party/skia/src/codec/SkBmpCodec.cpp", |
| 238 "//third_party/skia/src/codec/SkBmpMaskCodec.cpp", |
| 239 "//third_party/skia/src/codec/SkBmpRLECodec.cpp", |
| 240 "//third_party/skia/src/codec/SkBmpStandardCodec.cpp", |
| 241 "//third_party/skia/src/codec/SkCodec.cpp", |
| 242 "//third_party/skia/src/codec/SkGifCodec.cpp", |
| 243 "//third_party/skia/src/codec/SkMaskSwizzler.cpp", |
| 244 "//third_party/skia/src/codec/SkMasks.cpp", |
| 245 "//third_party/skia/src/codec/SkSampler.cpp", |
| 246 "//third_party/skia/src/codec/SkStreamBuffer.cpp", |
| 247 "//third_party/skia/src/codec/SkSwizzler.cpp", |
| 248 "//third_party/skia/src/codec/SkWbmpCodec.cpp", |
| 234 "//third_party/skia/src/fonts/SkFontMgr_indirect.cpp", | 249 "//third_party/skia/src/fonts/SkFontMgr_indirect.cpp", |
| 235 "//third_party/skia/src/fonts/SkRemotableFontMgr.cpp", | 250 "//third_party/skia/src/fonts/SkRemotableFontMgr.cpp", |
| 236 "//third_party/skia/src/ports/SkFontConfigInterface.cpp", | 251 "//third_party/skia/src/ports/SkFontConfigInterface.cpp", |
| 237 "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp", | 252 "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp", |
| 238 "//third_party/skia/src/ports/SkFontConfigInterface_direct_factory.cpp", | 253 "//third_party/skia/src/ports/SkFontConfigInterface_direct_factory.cpp", |
| 239 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", | 254 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", |
| 240 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", | 255 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", |
| 241 "//third_party/skia/src/ports/SkFontHost_mac.cpp", | 256 "//third_party/skia/src/ports/SkFontHost_mac.cpp", |
| 242 "//third_party/skia/src/ports/SkFontHost_win.cpp", | 257 "//third_party/skia/src/ports/SkFontHost_win.cpp", |
| 243 "//third_party/skia/src/ports/SkFontMgr_FontConfigInterface.cpp", | 258 "//third_party/skia/src/ports/SkFontMgr_FontConfigInterface.cpp", |
| (...skipping 10 matching lines...) Expand all Loading... |
| 254 "//third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp", | 269 "//third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp", |
| 255 "//third_party/skia/src/ports/SkScalerContext_win_dw.cpp", | 270 "//third_party/skia/src/ports/SkScalerContext_win_dw.cpp", |
| 256 "//third_party/skia/src/ports/SkTLS_pthread.cpp", | 271 "//third_party/skia/src/ports/SkTLS_pthread.cpp", |
| 257 "//third_party/skia/src/ports/SkTLS_win.cpp", | 272 "//third_party/skia/src/ports/SkTLS_win.cpp", |
| 258 "//third_party/skia/src/ports/SkTypeface_win_dw.cpp", | 273 "//third_party/skia/src/ports/SkTypeface_win_dw.cpp", |
| 259 "//third_party/skia/src/sfnt/SkOTTable_name.cpp", | 274 "//third_party/skia/src/sfnt/SkOTTable_name.cpp", |
| 260 "//third_party/skia/src/sfnt/SkOTUtils.cpp", | 275 "//third_party/skia/src/sfnt/SkOTUtils.cpp", |
| 261 "//third_party/skia/src/xps/SkDocument_XPS.cpp", | 276 "//third_party/skia/src/xps/SkDocument_XPS.cpp", |
| 262 "//third_party/skia/src/xps/SkDocument_XPS_None.cpp", | 277 "//third_party/skia/src/xps/SkDocument_XPS_None.cpp", |
| 263 "//third_party/skia/src/xps/SkXPSDevice.cpp", | 278 "//third_party/skia/src/xps/SkXPSDevice.cpp", |
| 279 "//third_party/skia/third_party/gif/SkGifImageReader.cpp", |
| 264 ] | 280 ] |
| 265 | 281 |
| 266 if (is_mac) { | 282 if (is_mac) { |
| 267 sources += [ "//third_party/skia/src/utils/mac/SkStream_mac.cpp" ] | 283 sources += [ "//third_party/skia/src/utils/mac/SkStream_mac.cpp" ] |
| 268 } | 284 } |
| 269 | 285 |
| 270 # This and skia_opts are really the same conceptual target so share headers. | 286 # This and skia_opts are really the same conceptual target so share headers. |
| 271 allow_circular_includes_from = [ ":skia_opts" ] | 287 allow_circular_includes_from = [ ":skia_opts" ] |
| 272 | 288 |
| 273 if (current_cpu == "arm") { | 289 if (current_cpu == "arm") { |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 | 734 |
| 719 deps = [ | 735 deps = [ |
| 720 ":skia", | 736 ":skia", |
| 721 "//base", | 737 "//base", |
| 722 "//base/test:test_support", | 738 "//base/test:test_support", |
| 723 "//build/config/sanitizers:deps", | 739 "//build/config/sanitizers:deps", |
| 724 "//build/win:default_exe_manifest", | 740 "//build/win:default_exe_manifest", |
| 725 ] | 741 ] |
| 726 } | 742 } |
| 727 } | 743 } |
| OLD | NEW |