Skip to content

Commit

Permalink
Add 'emscripten' property to versions.json (#60)
Browse files Browse the repository at this point in the history
Emscripten does not guarantee ABI stability between versions so
this is useful for downstream consumers to verify compatibility.
  • Loading branch information
lovell committed Dec 23, 2023
1 parent ec19268 commit b2e0f03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,14 @@ VERSION_AOM=3.8.0 # https://aomedia.googlesource.com/aom
VERSION_HEIF=1.17.5 # https://github.com/strukturag/libheif
VERSION_VIPS=8.15.1 # https://github.com/libvips/libvips

VERSION_EMSCRIPTEN="$(emcc -dumpversion)"

# Generate versions.json
( printf "{\n"; \
[ -n "$DISABLE_AVIF" ] || printf " \"aom\": \"${VERSION_AOM}\",\n"; \
[ -n "$DISABLE_JXL" ] || printf " \"brotli\": \"${VERSION_BROTLI}\",\n"; \
printf " \"cgif\": \"${VERSION_CGIF}\",\n"; \
printf " \"emscripten\": \"${VERSION_EMSCRIPTEN}\",\n"; \
printf " \"exif\": \"${VERSION_EXIF}\",\n"; \
printf " \"expat\": \"${VERSION_EXPAT}\",\n"; \
printf " \"ffi\": \"${VERSION_FFI}\",\n"; \
Expand Down

0 comments on commit b2e0f03

Please sign in to comment.