Skip to content

Commit

Permalink
Test build for upcoming libvips 8.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Sep 28, 2023
1 parent 0966dc3 commit 5793bae
Show file tree
Hide file tree
Showing 13 changed files with 415 additions and 38 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [v0.0.6] - TBD

Uses libvips v8.14.5, compiled with Emscripten v3.1.46.
Uses libvips v8.15.0, compiled with Emscripten v3.1.46.

### Changed

- Update methods/enums for libvips 8.15.

## [v0.0.5] - 2023-04-27

Expand Down
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ VERSION_TIFF=4.6.0 # https://gitlab.com/libtiff/libtiff
VERSION_RESVG=0.35.0 # https://github.com/RazrFalcon/resvg
VERSION_AOM=3.7.0 # https://aomedia.googlesource.com/aom
VERSION_HEIF=1.16.2 # https://github.com/strukturag/libheif
VERSION_VIPS=8.14.5 # https://github.com/libvips/libvips
VERSION_VIPS=b4f4b04 # https://github.com/libvips/libvips

# Remove patch version component
without_patch() {
Expand Down Expand Up @@ -450,14 +450,14 @@ node --version
[ -f "$TARGET/lib/pkgconfig/vips.pc" ] || (
stage "Compiling vips"
mkdir $DEPS/vips
curl -Ls https://github.com/libvips/libvips/releases/download/v$VERSION_VIPS/vips-$(without_prerelease $VERSION_VIPS).tar.xz | tar xJC $DEPS/vips --strip-components=1
curl -Ls https://github.com/libvips/libvips/archive/$VERSION_VIPS.tar.gz | tar xzC $DEPS/vips --strip-components=1
cd $DEPS/vips
# Emscripten specific patches
curl -Ls https://github.com/libvips/libvips/compare/v$VERSION_VIPS...kleisauke:wasm-vips-8.14.patch | patch -p1
curl -Ls https://github.com/libvips/libvips/compare/$VERSION_VIPS...kleisauke:wasm-vips-8.15.patch | patch -p1
# Disable building man pages, gettext po files, tools, and (fuzz-)tests
sed -i "/subdir('man')/{N;N;N;N;d;}" meson.build
meson setup _build --prefix=$TARGET --cross-file=$MESON_CROSS --default-library=static --buildtype=release \
-Ddeprecated=false -Dexamples=false -Dcplusplus=$LIBVIPS_CPP -Dintrospection=false -Dauto_features=disabled \
-Ddeprecated=false -Dexamples=false -Dcplusplus=$LIBVIPS_CPP -Dauto_features=disabled \
${ENABLE_MODULES:+-Dmodules=enabled} -Dcgif=enabled -Dexif=enabled ${ENABLE_AVIF:+-Dheif=enabled} \
-Dheif-module=enabled -Dimagequant=enabled -Djpeg=enabled ${ENABLE_JXL:+-Djpeg-xl=enabled} \
-Djpeg-xl-module=enabled -Dlcms=enabled ${ENABLE_SVG:+-Dresvg=enabled} -Dresvg-module=enabled \
Expand Down
16 changes: 16 additions & 0 deletions build/preamble_vips.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,10 @@ declare module Vips {
* loaders are permissive, that is, [[FailOn.none]].
*/
fail_on?: FailOn | Enum
/**
* Don't use a cached result for this operation.
*/
revalidate?: boolean
}): Image;

/**
Expand Down Expand Up @@ -641,6 +645,10 @@ declare module Vips {
* loaders are permissive, that is, [[FailOn.none]].
*/
fail_on?: FailOn | Enum
/**
* Don't use a cached result for this operation.
*/
revalidate?: boolean
}): Image;

/**
Expand All @@ -663,6 +671,10 @@ declare module Vips {
* loaders are permissive, that is, [[FailOn.none]].
*/
fail_on?: FailOn | Enum
/**
* Don't use a cached result for this operation.
*/
revalidate?: boolean
}): Image;

/**
Expand Down Expand Up @@ -966,6 +978,10 @@ declare module Vips {
* Color for background pixels.
*/
background?: ArrayConstant
/**
* Enable line art mode.
*/
line_art?: boolean
}): {
/**
* Output left edge.
Expand Down
Loading

0 comments on commit 5793bae

Please sign in to comment.