Skip to content

Commit

Permalink
Windows: updates for libvips v8.7.0, includes lovell#6
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Aug 21, 2018
1 parent 5bcd098 commit ff71772
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 4 deletions.
39 changes: 36 additions & 3 deletions build/win.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,50 @@ VERSION_VIPS_MINOR=$(echo $VERSION_VIPS | cut -d. -f2)
# Fetch and unzip
mkdir /vips
cd /vips
curl -L -O https://github.com/lovell/build-win64/releases/download/v${VERSION_VIPS}/vips-dev-w64-web-${VERSION_VIPS}.zip
curl -LO https://github.com/lovell/build-win64/releases/download/v${VERSION_VIPS}/vips-dev-w64-web-${VERSION_VIPS}.zip
unzip vips-dev-w64-web-${VERSION_VIPS}.zip

# Clean and zip
cd /vips/vips-dev-${VERSION_VIPS_MAJOR}.${VERSION_VIPS_MINOR}
rm bin/libvipsCC-42.dll bin/libvips-cpp-42.dll bin/libgsf-win32-1-114.dll
rm bin/libvips-cpp-42.dll bin/libgsf-win32-1-114.dll bin/libssp-0.dll
cp bin/*.dll lib/
cp -r lib64/* lib/

# Create platform.json
echo "\"${PLATFORM}\"" >platform.json

# Create versions.json
curl -LO https://raw.githubusercontent.com/lovell/build-win64/8.7-updates/8.7/vips.modules
version_of() {
xmllint --xpath "string(/moduleset/autotools[@id='$1']/branch/@version | /moduleset/cmake[@id='$1']/branch/@version)" vips.modules
}
echo "{\n\
\"cairo\": \"$(version_of cairo)\",\n\
\"croco\": \"$(version_of libcroco)\",\n\
\"exif\": \"$(version_of libexif)\",\n\
\"expat\": \"$(version_of expat)\",\n\
\"ffi\": \"$(version_of libffi)\",\n\
\"fontconfig\": \"$(version_of fontconfig)\",\n\
\"freetype\": \"$(version_of freetype)\",\n\
\"gdkpixbuf\": \"$(version_of gdk-pixbuf)\",\n\
\"gif\": \"$(version_of giflib)\",\n\
\"glib\": \"$(version_of glib)\",\n\
\"gsf\": \"$(version_of libgsf)\",\n\
\"harfbuzz\": \"$(version_of harfbuzz)\",\n\
\"jpeg\": \"$(version_of libjpeg-turbo)\",\n\
\"lcms\": \"$(version_of lcms)\",\n\
\"pango\": \"$(version_of pango)\",\n\
\"pixman\": \"$(version_of pixman)\",\n\
\"png\": \"$(version_of libpng)\",\n\
\"svg\": \"$(version_of librsvg)\",\n\
\"tiff\": \"$(version_of tiff)\",\n\
\"vips\": \"${VERSION_VIPS}\",\n\
\"webp\": \"$(version_of webp)\",\n\
\"xml\": \"$(version_of libxml2)\",\n\
\"zlib\": \"$(version_of zlib)\"\n\
}" >versions.json
rm vips.modules
cat versions.json

echo "Creating tarball"
tar czf /packaging/libvips-${VERSION_VIPS}-${PLATFORM}.tar.gz include lib/glib-2.0 lib/libvips.lib lib/libglib-2.0.lib lib/libgobject-2.0.lib lib/*.dll *.json
echo "Shrinking tarball"
Expand Down
2 changes: 1 addition & 1 deletion win32-x64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ MAINTAINER Lovell Fuller <[email protected]>

# Create Debian-based container suitable for post-processing Windows x64 binaries

RUN apt-get update && apt-get install -y curl zip advancecomp
RUN apt-get update && apt-get install -y curl zip advancecomp libxml2-utils

ENV PLATFORM="win32-x64"

0 comments on commit ff71772

Please sign in to comment.