From b2e0f035b0eddef1ed7dd02b3d4a9f14f4480e3b Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Sat, 23 Dec 2023 15:13:04 +0000 Subject: [PATCH] Add 'emscripten' property to versions.json (#60) Emscripten does not guarantee ABI stability between versions so this is useful for downstream consumers to verify compatibility. --- build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.sh b/build.sh index 44bb5dc92..fd1fca2d9 100755 --- a/build.sh +++ b/build.sh @@ -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"; \