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 Aug 16, 2024
1 parent e0c3cc9 commit bc91a52
Show file tree
Hide file tree
Showing 12 changed files with 477 additions and 83 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to wasm-vips will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v0.0.11] - TBD

Uses libvips v8.16.0, compiled with Emscripten v3.1.64.

### Changed

- Update methods/enums for libvips 8.16.

## [v0.0.10] - 2024-08-14

Uses libvips v8.15.3, compiled with Emscripten v3.1.64.
Expand Down Expand Up @@ -185,6 +193,7 @@ Uses libvips v8.10.0, compiled with Emscripten v2.0.0.

- Initial release.

[v0.0.11]: https://github.com/kleisauke/wasm-vips/compare/v0.0.10...v0.0.11
[v0.0.10]: https://github.com/kleisauke/wasm-vips/compare/v0.0.9...v0.0.10
[v0.0.9]: https://github.com/kleisauke/wasm-vips/compare/v0.0.8...v0.0.9
[v0.0.8]: https://github.com/kleisauke/wasm-vips/compare/v0.0.7...v0.0.8
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.43.0 # https://github.com/RazrFalcon/resvg
VERSION_AOM=3.9.1 # https://aomedia.googlesource.com/aom
VERSION_HEIF=1.18.2 # https://github.com/strukturag/libheif
VERSION_VIPS=8.15.3 # https://github.com/libvips/libvips
VERSION_VIPS=fad198f # https://github.com/libvips/libvips

VERSION_EMSCRIPTEN="$(emcc -dumpversion)"

Expand Down Expand Up @@ -486,12 +486,12 @@ EOL
[ -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/libvips/build-win64-mxe/raw/v$VERSION_VIPS/build/patches/vips-8-heifsave-disable-hbr-support.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
201 changes: 174 additions & 27 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 bc91a52

Please sign in to comment.