2019-04-02 08:24:00 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -o xtrace
|
|
|
|
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2020-05-30 14:53:41 +01:00
|
|
|
# Ephemeral packages (installed for this script and removed again at the end)
|
|
|
|
STABLE_EPHEMERAL=" \
|
2019-11-06 16:05:56 +00:00
|
|
|
autoconf \
|
|
|
|
automake \
|
|
|
|
autotools-dev \
|
2020-05-30 14:53:41 +01:00
|
|
|
bzip2 \
|
2019-11-06 16:05:56 +00:00
|
|
|
cmake \
|
2019-07-22 20:03:47 +01:00
|
|
|
libgbm-dev \
|
2019-11-06 16:05:56 +00:00
|
|
|
libtool \
|
2021-05-31 08:03:04 +01:00
|
|
|
python3-pip \
|
2020-05-30 14:53:41 +01:00
|
|
|
"
|
|
|
|
|
2020-06-01 18:08:30 +01:00
|
|
|
# We need multiarch for Wine
|
|
|
|
dpkg --add-architecture i386
|
|
|
|
apt-get update
|
|
|
|
|
2020-05-30 14:53:41 +01:00
|
|
|
apt-get install -y --no-remove \
|
2020-06-01 18:08:30 +01:00
|
|
|
$STABLE_EPHEMERAL \
|
2021-03-19 11:52:35 +00:00
|
|
|
clang \
|
|
|
|
libasan6 \
|
2020-07-24 18:34:47 +01:00
|
|
|
libarchive-dev \
|
2021-03-19 11:25:54 +00:00
|
|
|
libclang-cpp11-dev \
|
2021-03-22 15:45:54 +00:00
|
|
|
libglvnd-dev \
|
2021-03-22 15:43:02 +00:00
|
|
|
libllvmspirvlib-dev \
|
2020-07-24 18:34:47 +01:00
|
|
|
liblua5.3-dev \
|
2021-03-19 11:52:35 +00:00
|
|
|
libxcb-dri2-0-dev \
|
|
|
|
libxcb-dri3-dev \
|
|
|
|
libxcb-glx0-dev \
|
|
|
|
libxcb-present-dev \
|
|
|
|
libxcb-randr0-dev \
|
|
|
|
libxcb-shm0-dev \
|
|
|
|
libxcb-sync-dev \
|
|
|
|
libxcb-xfixes0-dev \
|
|
|
|
libxcb1-dev \
|
2020-07-24 18:34:47 +01:00
|
|
|
libxml2-dev \
|
2021-03-19 11:25:54 +00:00
|
|
|
llvm-11-dev \
|
2021-03-19 11:52:35 +00:00
|
|
|
llvm-9-dev \
|
2020-09-28 23:40:13 +01:00
|
|
|
ocl-icd-opencl-dev \
|
2021-02-02 10:38:19 +00:00
|
|
|
procps \
|
2021-03-22 15:31:48 +00:00
|
|
|
spirv-tools \
|
2021-03-04 11:37:56 +00:00
|
|
|
strace \
|
2021-01-29 10:03:19 +00:00
|
|
|
time \
|
2021-03-19 11:52:35 +00:00
|
|
|
wine \
|
|
|
|
wine32
|
2020-01-30 17:21:15 +00:00
|
|
|
|
2020-04-27 11:42:58 +01:00
|
|
|
|
2020-04-30 10:45:58 +01:00
|
|
|
. .gitlab-ci/container/container_pre_build.sh
|
|
|
|
|
|
|
|
|
2019-10-11 17:21:17 +01:00
|
|
|
# Debian's pkg-config wrapers for mingw are broken, and there's no sign that
|
|
|
|
# they're going to be fixed, so we'll just have to fix it ourselves
|
|
|
|
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930492
|
|
|
|
cat >/usr/local/bin/x86_64-w64-mingw32-pkg-config <<EOF
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PKG_CONFIG_LIBDIR=/usr/x86_64-w64-mingw32/lib/pkgconfig pkg-config \$@
|
|
|
|
EOF
|
|
|
|
chmod +x /usr/local/bin/x86_64-w64-mingw32-pkg-config
|
|
|
|
|
2020-01-31 15:07:10 +00:00
|
|
|
|
2019-04-02 08:24:00 +01:00
|
|
|
# dependencies where we want a specific version
|
|
|
|
export XORG_RELEASES=https://xorg.freedesktop.org/releases/individual
|
|
|
|
export WAYLAND_RELEASES=https://wayland.freedesktop.org/releases
|
|
|
|
|
|
|
|
export XORGMACROS_VERSION=util-macros-1.19.0
|
2020-11-25 13:07:34 +00:00
|
|
|
export LIBWAYLAND_VERSION=wayland-1.18.0
|
2019-04-02 08:24:00 +01:00
|
|
|
|
|
|
|
wget $XORG_RELEASES/util/$XORGMACROS_VERSION.tar.bz2
|
|
|
|
tar -xvf $XORGMACROS_VERSION.tar.bz2 && rm $XORGMACROS_VERSION.tar.bz2
|
2020-02-11 23:44:56 +00:00
|
|
|
cd $XORGMACROS_VERSION; ./configure; make install; cd ..
|
2019-04-05 17:32:25 +01:00
|
|
|
rm -rf $XORGMACROS_VERSION
|
2019-04-02 08:24:00 +01:00
|
|
|
|
2021-01-27 15:38:01 +00:00
|
|
|
. .gitlab-ci/container/build-libdrm.sh
|
2019-04-02 08:24:00 +01:00
|
|
|
|
|
|
|
wget $WAYLAND_RELEASES/$LIBWAYLAND_VERSION.tar.xz
|
|
|
|
tar -xvf $LIBWAYLAND_VERSION.tar.xz && rm $LIBWAYLAND_VERSION.tar.xz
|
2020-02-11 23:44:56 +00:00
|
|
|
cd $LIBWAYLAND_VERSION; ./configure --enable-libraries --without-host-scanner --disable-documentation --disable-dtd-validation; make install; cd ..
|
2019-04-05 17:32:25 +01:00
|
|
|
rm -rf $LIBWAYLAND_VERSION
|
2019-04-02 08:24:00 +01:00
|
|
|
|
2019-09-25 20:18:27 +01:00
|
|
|
|
2019-04-10 23:59:12 +01:00
|
|
|
pushd /usr/local
|
|
|
|
git clone https://gitlab.freedesktop.org/mesa/shader-db.git --depth 1
|
|
|
|
rm -rf shader-db/.git
|
|
|
|
cd shader-db
|
2020-02-11 23:44:56 +00:00
|
|
|
make
|
2019-04-10 23:59:12 +01:00
|
|
|
popd
|
|
|
|
|
2020-12-28 19:21:06 +00:00
|
|
|
git clone https://github.com/microsoft/DirectX-Headers -b v1.0.1 --depth 1
|
|
|
|
pushd DirectX-Headers
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
meson .. --backend=ninja --buildtype=release -Dbuild-test=false
|
|
|
|
ninja
|
|
|
|
ninja install
|
|
|
|
popd
|
|
|
|
rm -rf DirectX-Headers
|
2019-08-06 11:28:31 +01:00
|
|
|
|
2021-05-31 08:03:04 +01:00
|
|
|
pip3 install git+https://git.lavasoftware.org/lava/lavacli@3db3ddc45e5358908bc6a17448059ea2340492b7
|
|
|
|
|
2019-07-22 20:03:47 +01:00
|
|
|
############### Uninstall the build software
|
|
|
|
|
2019-04-03 14:48:51 +01:00
|
|
|
apt-get purge -y \
|
2020-05-30 14:53:41 +01:00
|
|
|
$STABLE_EPHEMERAL
|
2019-07-22 20:03:47 +01:00
|
|
|
|
2020-03-06 21:23:20 +00:00
|
|
|
. .gitlab-ci/container/container_post_build.sh
|