libpng_decode dependency introduced in m123

42 views
Skip to first unread message

Lucas

unread,
Mar 28, 2025, 9:46:52 AMMar 28
to skia-discuss
Hello,

I am trying to update Skia to the latest version (m107 -> m135), but in m123 a dependency to libpng_decode was introduced, specifically In this commit : https://github.com/google/skia/commit/dc7402dcff867ba5525f3d3f9075afa50d7ab73d

Does someone know if it was that intentional? (It's a bit annoying, as I would now need to install libpng even though I don't need it) Or is there a workaround?

For info, here are my build parameters:

is_debug=false 
is_official_build=true    
is_component_build=true 
skia_enable_pdf=false 
skia_enable_skshaper=false 
skia_enable_skparagraph=false 
skia_enable_skottie=false  
skia_use_libwebp_decode=false 
skia_use_libwebp_encode=false 
skia_use_libpng_decode=false 
skia_use_libpng_encode=false 
skia_use_libjpeg_turbo_decode=false 
skia_use_libjpeg_turbo_encode=false  
skia_use_no_png_encode=true 
skia_enable_skottie=false 
skia_use_expat=false


Thanks

Hin-Tak Leung

unread,
Aug 14, 2025, 9:32:06 AMAug 14
to skia-discuss
what's your "skia_use_system_libpng=" value? If you set it to false and actually use any png functions, a copy of hidden libpng would be bundled with skia. This might be close enough to what you want to achieve (i.e. no need to have a system installed libpng).
Reply all
Reply to author
Forward
0 new messages