virt-viewer/ci/buildenv/fedora-rawhide-cross-mingw32.sh
Daniel P. Berrangé f666425950 ci: refresh with latest 'lcitool manifest'
* Switch to using libvirt+minimal instead of libvirt project,
   for shorter build times
 * Actually do a git build job in CentOS Stream & AlmaLinux
 * Drop AlmaLinux 8
 * Update to latest Alpine versions

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2024-10-29 17:43:56 +00:00

54 lines
1.4 KiB
Bash

# THIS FILE WAS AUTO-GENERATED
#
# $ lcitool manifest ci/manifest.yml
#
# https://gitlab.com/libvirt/libvirt-ci
function install_buildenv() {
dnf update -y --nogpgcheck fedora-gpg-keys
dnf distro-sync -y
dnf install -y \
bash-completion-devel \
ca-certificates \
ccache \
cppi \
git \
glibc-langpack-en \
gtk-vnc2-devel \
icoutils \
libtool \
libxml2 \
make \
meson \
ninja-build \
rpm-build
dnf install -y \
mingw32-gcc \
mingw32-gettext \
mingw32-glib2 \
mingw32-gstreamer1-plugins-bad-free \
mingw32-gstreamer1-plugins-good \
mingw32-gtk3 \
mingw32-headers \
mingw32-libgovirt \
mingw32-libvirt \
mingw32-libxml2 \
mingw32-pkg-config \
mingw32-rest \
mingw32-spice-gtk3
rpm -qa | sort > /packages.txt
mkdir -p /usr/libexec/ccache-wrappers
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-w64-mingw32-cc
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-w64-mingw32-gcc
}
function export_buildenv() {
export CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
export LANG="en_US.UTF-8"
export MAKE="/usr/bin/make"
export NINJA="/usr/bin/ninja"
export ABI="i686-w64-mingw32"
export MESON_OPTS="--cross-file=/usr/share/mingw/toolchain-mingw32.meson"
}