mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
36 lines
738 B
Bash
36 lines
738 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
export PATH="/c/msys64/$MSYSTEM/bin:$PATH"
|
||
|
if [[ "$MSYSTEM" == "MINGW32" ]]; then
|
||
|
export MSYS2_ARCH="i686"
|
||
|
else
|
||
|
export MSYS2_ARCH="x86_64"
|
||
|
fi
|
||
|
|
||
|
pacman --noconfirm -Suy
|
||
|
|
||
|
pacman --noconfirm -S --needed \
|
||
|
base-devel \
|
||
|
mingw-w64-$MSYS2_ARCH-ccache \
|
||
|
mingw-w64-$MSYS2_ARCH-gettext \
|
||
|
mingw-w64-$MSYS2_ARCH-libffi \
|
||
|
mingw-w64-$MSYS2_ARCH-meson \
|
||
|
mingw-w64-$MSYS2_ARCH-pcre \
|
||
|
mingw-w64-$MSYS2_ARCH-python3 \
|
||
|
mingw-w64-$MSYS2_ARCH-toolchain \
|
||
|
mingw-w64-$MSYS2_ARCH-zlib
|
||
|
|
||
|
mkdir -p _ccache
|
||
|
export CCACHE_BASEDIR="$(pwd)"
|
||
|
export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
|
||
|
|
||
|
# FIXME: Add --werror
|
||
|
meson --buildtype debug _build
|
||
|
cd _build
|
||
|
ninja
|
||
|
|
||
|
# FIXME: fix the test suite
|
||
|
meson test || true
|