diff --git a/skia/BUILD.gn b/skia/BUILD.gn index 86bbc954c09d761547cbe141f1ae450675bf89cf..bf5e31212f1a26647d0dd01b03374a590bc56972 100644 --- a/skia/BUILD.gn +++ b/skia/BUILD.gn @@ -128,6 +128,9 @@ config("skia_config") { } } } + if (enable_heif_decoder) { + defines += [ "SK_HAS_HEIF_LIBRARY" ] + } } # Internal-facing config for Skia library code. @@ -380,6 +383,10 @@ component("skia") { sources += skia_no_encode_jpeg_srcs } + if (enable_heif_decoder) { + sources += [ "//third_party/skia/src/codec/SkHeifCodec.cpp" ] + } + if (skia_support_xmp) { sources += skia_xml_sources sources += [ "//third_party/skia/src/codec/SkJpegXmp.cpp" ]