Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions build/posix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ elif [ "$DARWIN" = true ]; then
export MAKEFLAGS="-j$(sysctl -n hw.logicalcpu)"
fi

# Ensure reproducible builds
# https://reproducible-builds.org/docs/source-date-epoch/
SOURCE_DATE_EPOCH="$(git -c safe.directory=${PACKAGE} -C ${PACKAGE} log -1 --pretty=%ct)" && \
export SOURCE_DATE_EPOCH

# Expose target sysroot to CMake
export TARGET_SYSROOT="${TARGET}"

Expand Down
7 changes: 3 additions & 4 deletions build/wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,17 @@ set -e
## SPDX-License-Identifier: Apache-2.0

source ./versions.properties
VERSION_WASM_VIPS="${1:-HEAD}"
VERSION_WASM_VIPS="${1:-master}"

DIR="wasm-vips-${VERSION_WASM_VIPS}"
TAG="wasm-vips:${VERSION_WASM_VIPS}"

echo "Using ${TAG} to build libvips ${VERSION_VIPS}"
cd "${0%/*}"

# Download specific version of wasm-vips
# Clone a specific version of wasm-vips
if [ ! -d "$DIR" ]; then
mkdir "${DIR}"
curl -Ls https://github.com/kleisauke/wasm-vips/archive/${VERSION_WASM_VIPS}.tar.gz | tar xzC "${DIR}" --strip-components=1
git clone -b ${VERSION_WASM_VIPS} --depth 1 https://github.com/kleisauke/wasm-vips.git "${DIR}"
fi

# Check libvips versions match
Expand Down