2018-09-01 10:06:03 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if [[ "$MSYSTEM" == "MINGW32" ]]; then
|
|
|
|
export MSYS2_ARCH="i686"
|
|
|
|
else
|
|
|
|
export MSYS2_ARCH="x86_64"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Update everything
|
|
|
|
pacman --noconfirm -Suy
|
|
|
|
|
|
|
|
# Install the required packages
|
|
|
|
pacman --noconfirm -S --needed \
|
|
|
|
mingw-w64-$MSYS2_ARCH-toolchain \
|
|
|
|
mingw-w64-$MSYS2_ARCH-ccache \
|
|
|
|
mingw-w64-$MSYS2_ARCH-pkg-config \
|
|
|
|
mingw-w64-$MSYS2_ARCH-gobject-introspection \
|
|
|
|
mingw-w64-$MSYS2_ARCH-adwaita-icon-theme \
|
|
|
|
mingw-w64-$MSYS2_ARCH-atk \
|
|
|
|
mingw-w64-$MSYS2_ARCH-cairo \
|
|
|
|
mingw-w64-$MSYS2_ARCH-gdk-pixbuf2 \
|
|
|
|
mingw-w64-$MSYS2_ARCH-glib2 \
|
|
|
|
mingw-w64-$MSYS2_ARCH-json-glib \
|
|
|
|
mingw-w64-$MSYS2_ARCH-libepoxy \
|
|
|
|
mingw-w64-$MSYS2_ARCH-pango \
|
|
|
|
mingw-w64-$MSYS2_ARCH-shared-mime-info \
|
2019-03-22 09:57:33 +00:00
|
|
|
mingw-w64-$MSYS2_ARCH-meson \
|
|
|
|
mingw-w64-$MSYS2_ARCH-ninja \
|
2019-11-22 17:22:30 +00:00
|
|
|
mingw-w64-$MSYS2_ARCH-gtk-doc
|
2018-09-01 10:06:03 +00:00
|
|
|
|
2020-05-10 06:31:37 +00:00
|
|
|
# https://github.com/msys2/MINGW-packages/pull/6465
|
|
|
|
pacman --noconfirm -S --needed mingw-w64-$MSYS2_ARCH-brotli
|
|
|
|
|
2018-09-01 10:06:03 +00:00
|
|
|
mkdir -p _ccache
|
|
|
|
export CCACHE_BASEDIR="$(pwd)"
|
|
|
|
export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
|
|
|
|
|
|
|
|
# Build
|
|
|
|
ccache --zero-stats
|
|
|
|
ccache --show-stats
|
|
|
|
|
2019-03-31 11:22:16 +00:00
|
|
|
meson \
|
2020-02-19 06:39:56 +00:00
|
|
|
-Dman=true \
|
2019-04-04 06:48:34 +00:00
|
|
|
-Dbroadway_backend=true \
|
2019-03-31 11:22:16 +00:00
|
|
|
_build
|
|
|
|
|
2019-03-22 09:57:33 +00:00
|
|
|
ninja -C _build
|
2018-09-01 10:06:03 +00:00
|
|
|
|
|
|
|
ccache --show-stats
|