mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-13 04:10:13 +00:00
c542115906
There where some problems (??) with ccache not detecting changes during meson checks. Setting CCACHE_DISABLE during the meson execution makes ccache not use the cache and pass things directly to the compiler.
33 lines
576 B
Bash
Executable File
33 lines
576 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
srcdir=$(pwd)
|
|
|
|
mkdir -p _ccache
|
|
export CCACHE_BASEDIR="$(pwd)"
|
|
export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
|
|
|
|
ccache --zero-stats
|
|
ccache --show-stats
|
|
export CCACHE_DISABLE=true
|
|
meson \
|
|
-Dx11-backend=true \
|
|
-Dwayland-backend=true \
|
|
-Dbroadway-backend=true \
|
|
-Dvulkan=yes \
|
|
_build $srcdir
|
|
unset CCACHE_DISABLE
|
|
|
|
cd _build
|
|
|
|
ninja
|
|
ccache --show-stats
|
|
|
|
xvfb-run -a -s "-screen 0 1024x768x24" \
|
|
meson test \
|
|
--print-errorlogs \
|
|
--suite=gtk+ \
|
|
--no-suite=gtk+:gsk \
|
|
--no-suite=gtk+:a11y
|