Comment #4 on issue 612 by benni...@
gmail.com: CMake enhancement: skip PNG JPEG TIFF dependency
https://bugs.chromium.org/p/webp/issues/detail?id=612#c4I just had a look at the dependencies of the DLLs:
$ ldd libwebp*
libwebp.dll:
ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x7ffea7030000)
hmpalert.dll => /c/Windows/system32/hmpalert.dll (0x7ffea4260000)
KERNEL32.dll => /c/Windows/System32/KERNEL32.dll (0x7ffea6490000)
KERNELBASE.dll => /c/Windows/System32/KERNELBASE.dll (0x7ffea4a00000)
msvcrt.dll => /c/Windows/System32/msvcrt.dll (0x7ffea58c0000)
libsharpyuv.dll => /c/Temp/lib/win_x86_64_debug/bin/libsharpyuv.dll (0x7ffe93cf0000)
VCRUNTIME140D.dll => /c/Windows/SYSTEM32/VCRUNTIME140D.dll (0x7ffe918c0000)
ucrtbased.dll => /c/Windows/SYSTEM32/ucrtbased.dll (0x7ffe8ddb0000)
libwebpdecoder.dll:
ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x7ffea7030000)
hmpalert.dll => /c/Windows/system32/hmpalert.dll (0x7ffea4260000)
KERNEL32.dll => /c/Windows/System32/KERNEL32.dll (0x7ffea6490000)
KERNELBASE.dll => /c/Windows/System32/KERNELBASE.dll (0x7ffea4a00000)
msvcrt.dll => /c/Windows/System32/msvcrt.dll (0x7ffea58c0000)
VCRUNTIME140D.dll => /c/Windows/SYSTEM32/VCRUNTIME140D.dll (0x7ffe93ce0000)
ucrtbased.dll => /c/Windows/SYSTEM32/ucrtbased.dll (0x7ffe8ddb0000)
libwebpdemux.dll:
ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x7ffea7030000)
hmpalert.dll => /c/Windows/system32/hmpalert.dll (0x7ffea4260000)
KERNEL32.dll => /c/Windows/System32/KERNEL32.dll (0x7ffea6490000)
KERNELBASE.dll => /c/Windows/System32/KERNELBASE.dll (0x7ffea4a00000)
msvcrt.dll => /c/Windows/System32/msvcrt.dll (0x7ffea58c0000)
libwebp.dll => /c/Temp/lib/win_x86_64_debug/bin/libwebp.dll (0x7ffe91ed0000)
VCRUNTIME140D.dll => /c/Windows/SYSTEM32/VCRUNTIME140D.dll (0x7ffe918c0000)
ucrtbased.dll => /c/Windows/SYSTEM32/ucrtbased.dll (0x7ffe8ddb0000)
libsharpyuv.dll => /c/Temp/lib/win_x86_64_debug/bin/libsharpyuv.dll (0x7ffe91e70000)
libwebpmux.dll:
ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x7ffea7030000)
hmpalert.dll => /c/Windows/system32/hmpalert.dll (0x7ffea4260000)
KERNEL32.dll => /c/Windows/System32/KERNEL32.dll (0x7ffea6490000)
KERNELBASE.dll => /c/Windows/System32/KERNELBASE.dll (0x7ffea4a00000)
msvcrt.dll => /c/Windows/System32/msvcrt.dll (0x7ffea58c0000)
libwebp.dll => /c/Temp/lib/win_x86_64_debug/bin/libwebp.dll (0x7ffe91ed0000)
VCRUNTIME140D.dll => /c/Windows/SYSTEM32/VCRUNTIME140D.dll (0x7ffe918c0000)
ucrtbased.dll => /c/Windows/SYSTEM32/ucrtbased.dll (0x7ffe8ddb0000)
libsharpyuv.dll => /c/Temp/lib/win_x86_64_debug/bin/libsharpyuv.dll (0x7ffe91e70000)
$ ldd libsharpyuv.dll
ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x7ffea7030000)
hmpalert.dll => /c/Windows/system32/hmpalert.dll (0x7ffea4260000)
KERNEL32.dll => /c/Windows/System32/KERNEL32.dll (0x7ffea6490000)
KERNELBASE.dll => /c/Windows/System32/KERNELBASE.dll (0x7ffea4a00000)
msvcrt.dll => /c/Windows/System32/msvcrt.dll (0x7ffea58c0000)
VCRUNTIME140D.dll => /c/Windows/SYSTEM32/VCRUNTIME140D.dll (0x7ffe91f80000)
ucrtbased.dll => /c/Windows/SYSTEM32/ucrtbased.dll (0x7ffe8ddb0000)
None of them depends on JPEG, PNG or ZLIB. What are these dependencies used for in the build?
For libtiff this looks different:
$ ldd tiffd.dll
ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x7ffea7030000)
hmpalert.dll => /c/Windows/system32/hmpalert.dll (0x7ffea4260000)
KERNEL32.dll => /c/Windows/System32/KERNEL32.dll (0x7ffea6490000)
KERNELBASE.dll => /c/Windows/System32/KERNELBASE.dll (0x7ffea4a00000)
msvcrt.dll => /c/Windows/System32/msvcrt.dll (0x7ffea58c0000)
zlibd.dll => /c/Temp/lib/win_x86_64_debug/bin/zlibd.dll (0x7ffe91f70000)
jpeg62.dll => /c/Temp/lib/win_x86_64_debug/bin/jpeg62.dll (0x7ffe8de50000)
liblzma.dll => /c/Temp/lib/win_x86_64_debug/bin/liblzma.dll (0x7ffe91ef0000)
zstd.dll => /c/Temp/lib/win_x86_64_debug/bin/zstd.dll (0x7ffe8dcb0000)
libwebp.dll => /c/Temp/lib/win_x86_64_debug/bin/libwebp.dll (0x7ffe8ee00000)
VCRUNTIME140D.dll => /c/Windows/SYSTEM32/VCRUNTIME140D.dll (0x7ffe93ce0000)
ucrtbased.dll => /c/Windows/SYSTEM32/ucrtbased.dll (0x7ffe7dca0000)
libsharpyuv.dll => /c/Temp/lib/win_x86_64_debug/bin/libsharpyuv.dll (0x7ffe91ed0000)
If these are only needed for the build of tools, a skip option would also be useful.