Skip to content

Commit 9b9e7d5

Browse files
committed
Compile less libtiff bits for wheels
1 parent 0d20a00 commit 9b9e7d5

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/wheels-dependencies.sh

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,25 @@ function build {
277277
# headers/libs in the custom macOS/iOS prefix. Explicitly disable webp,
278278
# libdeflate and zstd, because on x86_64 macs, it will pick up the
279279
# Homebrew versions of those libraries from /usr/local.
280+
tiff_configure_args=(
281+
--disable-contrib
282+
--disable-cxx
283+
--disable-dependency-tracking
284+
--disable-docs
285+
--disable-libdeflate
286+
--disable-tests
287+
--disable-tools
288+
--disable-webp
289+
--disable-zstd
290+
--with-jpeg-include-dir=$BUILD_PREFIX/include
291+
--with-jpeg-lib-dir=$BUILD_PREFIX/lib
292+
)
293+
if [[ -z "$IOS_SDK" ]]; then
294+
# iOS links libtiff statically, but otherwise we need the dylib.
295+
tiff_configure_args+=(--disable-static)
296+
fi
280297
build_simple tiff $TIFF_VERSION https://download.osgeo.org/libtiff tar.gz \
281-
--with-jpeg-include-dir=$BUILD_PREFIX/include --with-jpeg-lib-dir=$BUILD_PREFIX/lib \
282-
--disable-webp --disable-libdeflate --disable-zstd
298+
"${tiff_configure_args[@]}"
283299
else
284300
build_zstd
285301
build_tiff

0 commit comments

Comments
 (0)