Skip to content

Commit

Permalink
Move platform-specific config into subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Aug 8, 2023
1 parent c6cc347 commit 9cb779b
Show file tree
Hide file tree
Showing 24 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ Run the top-level [build script](build.sh) without parameters for help.
One [build script](build/lin.sh) is used to (cross-)compile
the same shared libraries within multiple containers.

* [x64 glibc](linux-x64/Dockerfile)
* [x64 musl](linuxmusl-x64/Dockerfile)
* [ARMv6 glibc](linux-armv6/Dockerfile)
* [ARMv7-A glibc](linux-armv7/Dockerfile)
* [ARM64v8-A glibc](linux-arm64v8/Dockerfile)
* [ARM64v8-A musl](linuxmusl-arm64v8/Dockerfile)
* [x64 glibc](platforms/linux-x64/Dockerfile)
* [x64 musl](platforms/linuxmusl-x64/Dockerfile)
* [ARMv6 glibc](platforms/linux-armv6/Dockerfile)
* [ARMv7-A glibc](platforms/linux-armv7/Dockerfile)
* [ARM64v8-A glibc](platforms/linux-arm64v8/Dockerfile)
* [ARM64v8-A musl](platforms/linuxmusl-arm64v8/Dockerfile)

### Windows

The output of libvips' [build-win64-mxe](https://github.com/libvips/build-win64-mxe)
static "web" releases are [post-processed](build/win.sh) within a [container](win32/Dockerfile).
static "web" releases are [post-processed](build/win.sh) within a [container](platforms/win32/Dockerfile).

### macOS

Expand Down
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ for flavour in darwin-x64 darwin-arm64v8; do
# ARM64 builds work via cross compilation from an x86_64 machine
export CHOST="aarch64-apple-darwin"
export FLAGS+=" -target arm64-apple-macos11"
export MESON="--cross-file=$PWD/$PLATFORM/meson.ini"
export MESON="--cross-file=$PWD/platforms/$PLATFORM/meson.ini"
# macOS 11 Big Sur is the first version to support ARM-based macs
export MACOSX_DEPLOYMENT_TARGET="11.0"
# Set SDKROOT to the latest SDK available
Expand Down Expand Up @@ -87,7 +87,7 @@ done
for flavour in win32-ia32 win32-x64 win32-arm64v8; do
if [ $PLATFORM = "all" ] || [ $PLATFORM = $flavour ]; then
echo "Building $flavour..."
docker build -t vips-dev-win32 win32
docker build -t vips-dev-win32 platforms/win32
docker run --rm -e "VERSION_VIPS=${VERSION_VIPS}" -e "PLATFORM=${flavour}" -v $PWD:/packaging vips-dev-win32 sh -c "/packaging/build/win.sh"
fi
done
Expand All @@ -96,7 +96,7 @@ done
for flavour in linux-x64 linuxmusl-x64 linux-armv6 linux-armv7 linux-arm64v8 linuxmusl-arm64v8; do
if [ $PLATFORM = "all" ] || [ $PLATFORM = $flavour ]; then
echo "Building $flavour..."
docker build -t vips-dev-$flavour $flavour
docker build -t vips-dev-$flavour platforms/$flavour
docker run --rm -e "VERSION_VIPS=${VERSION_VIPS}" -e VERSION_LATEST_REQUIRED -v $PWD:/packaging vips-dev-$flavour sh -c "/packaging/build/lin.sh"
fi
done
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9cb779b

Please sign in to comment.