Skip to content

Commit

Permalink
Test build for upcoming libvips 8.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Jul 15, 2024
1 parent 5e3e0f7 commit e674858
Show file tree
Hide file tree
Showing 12 changed files with 470 additions and 31 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.10] - TBD

Uses libvips v8.15.2, compiled with Emscripten v3.1.63.
Uses libvips v8.16.0, compiled with Emscripten v3.1.63.

### Changed

- Update methods/enums for libvips 8.16.

## [v0.0.9] - 2024-06-01

Expand Down
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ VERSION_TIFF=4.6.0 # https://gitlab.com/libtiff/libtiff
VERSION_RESVG=0.42.0 # https://github.com/RazrFalcon/resvg
VERSION_AOM=3.9.1 # https://aomedia.googlesource.com/aom
VERSION_HEIF=1.17.6 # https://github.com/strukturag/libheif
VERSION_VIPS=8.15.2 # https://github.com/libvips/libvips
VERSION_VIPS=9878a5c # https://github.com/libvips/libvips

VERSION_EMSCRIPTEN="$(emcc -dumpversion)"

Expand Down Expand Up @@ -477,12 +477,12 @@ 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.15.patch | patch -p1
curl -Ls https://github.com/libvips/libvips/compare/$VERSION_VIPS...kleisauke:wasm-vips-8.16.patch | patch -p1
# Disable HBR support in heifsave
curl -Ls https://github.com/kleisauke/libvips/commit/ad921cf9396dc5a224e93c71b601e87bd3a8a521.patch | patch -p1
curl -Ls https://github.com/kleisauke/libvips/commit/88b4db95ec6c13860638a0a94e7ef44ea7ce0c19.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 \
Expand Down
177 changes: 172 additions & 5 deletions lib/vips.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e674858

Please sign in to comment.