2018-04-06 16:15:38 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Update everything
|
|
|
|
pacman --noconfirm -Suy
|
|
|
|
|
|
|
|
# Install the required packages
|
|
|
|
pacman --noconfirm -S --needed \
|
|
|
|
base-devel \
|
|
|
|
git \
|
2024-10-08 11:59:43 +00:00
|
|
|
${MINGW_PACKAGE_PREFIX}-cc \
|
|
|
|
${MINGW_PACKAGE_PREFIX}-ccache \
|
|
|
|
${MINGW_PACKAGE_PREFIX}-pkgconf \
|
|
|
|
${MINGW_PACKAGE_PREFIX}-gobject-introspection \
|
|
|
|
${MINGW_PACKAGE_PREFIX}-meson \
|
|
|
|
${MINGW_PACKAGE_PREFIX}-adwaita-icon-theme \
|
|
|
|
${MINGW_PACKAGE_PREFIX}-atk \
|
|
|
|
${MINGW_PACKAGE_PREFIX}-cairo \
|
|
|
|
${MINGW_PACKAGE_PREFIX}-gdk-pixbuf2 \
|
|
|
|
${MINGW_PACKAGE_PREFIX}-glib2 \
|
|
|
|
${MINGW_PACKAGE_PREFIX}-graphene \
|
|
|
|
${MINGW_PACKAGE_PREFIX}-json-glib \
|
|
|
|
${MINGW_PACKAGE_PREFIX}-libepoxy \
|
|
|
|
${MINGW_PACKAGE_PREFIX}-pango \
|
|
|
|
${MINGW_PACKAGE_PREFIX}-fribidi \
|
|
|
|
${MINGW_PACKAGE_PREFIX}-gst-plugins-bad-libs \
|
|
|
|
${MINGW_PACKAGE_PREFIX}-shared-mime-info \
|
|
|
|
${MINGW_PACKAGE_PREFIX}-python-gobject \
|
|
|
|
${MINGW_PACKAGE_PREFIX}-shaderc \
|
|
|
|
${MINGW_PACKAGE_PREFIX}-vulkan \
|
|
|
|
${MINGW_PACKAGE_PREFIX}-vulkan-headers
|
2018-04-06 16:15:38 +00:00
|
|
|
|
2020-08-05 19:58:46 +00:00
|
|
|
mkdir -p _ccache
|
|
|
|
export CCACHE_BASEDIR="$(pwd)"
|
|
|
|
export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
|
|
|
|
|
2018-04-06 16:15:38 +00:00
|
|
|
# Build
|
2018-04-11 10:18:55 +00:00
|
|
|
ccache --zero-stats
|
|
|
|
ccache --show-stats
|
|
|
|
export CCACHE_DISABLE=true
|
2024-03-28 20:07:18 +00:00
|
|
|
meson setup \
|
2019-05-21 05:46:42 +00:00
|
|
|
-Dx11-backend=false \
|
|
|
|
-Dwayland-backend=false \
|
|
|
|
-Dwin32-backend=true \
|
2020-10-01 13:16:18 +00:00
|
|
|
-Dintrospection=enabled \
|
2020-08-02 23:59:25 +00:00
|
|
|
-Dgtk:werror=true \
|
2018-04-06 16:15:38 +00:00
|
|
|
_build
|
2018-04-11 10:18:55 +00:00
|
|
|
unset CCACHE_DISABLE
|
2018-04-06 16:15:38 +00:00
|
|
|
|
|
|
|
ninja -C _build
|
2018-04-11 10:18:55 +00:00
|
|
|
ccache --show-stats
|
2022-01-19 15:37:36 +00:00
|
|
|
|
|
|
|
tar zcf _build/gtkdll.tar.gz _build/gtk/libgtk*.dll
|