Skip to content

Commit 5898dd7

Browse files
committed
fix(package-tiff): wire zlib into libtiff so the Deflate codec is built
libtiff already declared zlib as a dependency, so it was fetched and built, but the CMake flags were never passed through — every published build (up to beta.24) shipped libtiff without Deflate/zip support. Forward -Dzlib=ON and the ZLIB_* paths via ifDep, matching the existing jpeg/lerc/zstd wiring.
1 parent f2aebc9 commit 5898dd7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • cppjs-packages/cppjs-package-tiff/cppjs-package-tiff

cppjs-packages/cppjs-package-tiff/cppjs-package-tiff/build.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ export default {
66
getBuildParams: (target, depPaths) => [
77
'-Dtiff-tools=OFF', '-Dtiff-tests=OFF', '-Dtiff-contrib=OFF',
88
'-Dtiff-docs=OFF', '-Dld-version-script=OFF',
9+
...ifDep(depPaths.z, (d) => [
10+
'-Dzlib=ON',
11+
`-DZLIB_INCLUDE_DIR=${d.header}`,
12+
`-DZLIB_LIBRARY=${d.lib}`,
13+
`-DZLIB_LIBRARY_RELEASE=${d.lib}`,
14+
]),
915
...ifDep(depPaths.jpeg, (d) => [
1016
'-Djpeg=ON',
1117
`-DJPEG_INCLUDE_DIR=${d.header}`,

0 commit comments

Comments
 (0)