export PYTHON_CONFIG="python3-config"
;;
+cygwin)
+ export MAKE=make
+ export TAR=tar
+ export NPROC=nproc
+ export PYTHON="python3"
+ export PYTHON_CONFIG="python3-config"
+ rebase_dll=1
+ ;;
+
*)
export MAKE=make
export TAR=tar
# BUILD!
$MAKE -j "$($NPROC)" V=1
+# Force rebase DLL address mapping
+if [ "${rebase_dll:-}" == "1" ]; then
+ find . -name "*.dll" | xargs rebase -O -v
+fi
+
# Install in the workspace
$MAKE install DESTDIR="$WORKSPACE"
# Copy tap logs for the jenkins tap parser before cleaning the build dir
rsync -a --exclude 'test-suite.log' --include '*/' --include '*.log' --exclude='*' tests/ "$WORKSPACE/tap"
+# The test suite prior to 1.5 did not produce TAP logs
+if verlt "$PACKAGE_VERSION" "1.5"; then
+ mkdir -p "$WORKSPACE/tap/no-log"
+ echo "1..1" > "$WORKSPACE/tap/no-log/tests.log"
+ echo "ok 1 - Test suite doesn't support logging" >> "$WORKSPACE/tap/no-log/tests.log"
+fi
+
# Clean the build directory
$MAKE clean