Commit 237825e
committed
use stub PNG encoder for Windows DLL builds
Windows builds a shared library (DLL) which requires all symbols to be
resolved at link time. The serialization code references SkPngEncoder::Encode,
but we don't actually need PNG encoding for PathOps.
Use skia_use_no_png_encode=true to provide a stub implementation that
doesn't require libpng or zlib dependencies.
Fixes the linker error:
error LNK2019: unresolved external symbol SkPngEncoder::Encode1 parent 23cfcde commit 237825e
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
| 48 | + | |
| 49 | + | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments