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 Oct 7, 2023
1 parent b576489 commit 6ea902c
Show file tree
Hide file tree
Showing 14 changed files with 728 additions and 187 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.36.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=32ddfe7 # 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 6ea902c

Please sign in to comment.