Package the MSI from within a custom target

This commit is contained in:
2023-06-26 15:31:28 +02:00
parent 88234f8283
commit ec713b633e
4 changed files with 30 additions and 21 deletions

View File

@@ -120,13 +120,12 @@ setup() {
endian = 'little'
EOF
meson setup --buildtype=debugoptimized --prefix="$packagedir" \
meson setup --buildtype=debugoptimized --prefix=/ \
--bindir . --libdir . --cross-file="$toolchain" "$builddir" "$sourcedir"
}
sourcedir=$(realpath "${2:-$(dirname "$0")}")
builddir=$(realpath "${1:-builddir}")
packagedir=$builddir/package
toolchain=$builddir/msys2-cross-toolchain.meson
# This directory name matches the prefix in .pc files, so we don't need to