2 # The relative paths in this file only become valid at runtime.
3 # shellcheck disable=SC1091
4 # shellcheck disable=SC2086 # we want word splitting
9 export DEBIAN_FRONTEND=noninteractive
11 # Ephemeral packages (installed for this script and removed again at the end)
16 g++-mingw-w64-i686-posix \
17 g++-mingw-w64-x86-64-posix \
38 mingw-w64-x86-64-dev \
47 software-properties-common \
53 apt-get install -y --no-remove --no-install-recommends \
61 xserver-xorg-video-amdgpu \
62 xserver-xorg-video-ati
64 # Install a more recent version of Wine than exists in Debian.
65 apt-key add .gitlab-ci/container/debian/winehq.gpg.key
66 apt-add-repository https://dl.winehq.org/wine-builds/debian/
69 # Needed for Valve's tracing jobs to collect information about the graphics
70 # hardware on the test devices.
71 pip3 install gfxinfo-mupuf==0.0.9
73 # workaround wine needing 32-bit
74 # https://bugs.winehq.org/show_bug.cgi?id=53393
75 apt-get install -y --no-remove wine-stable-amd64 # a requirement for wine-stable
76 WINE_PKG="wine-stable"
77 WINE_PKG_DROP="wine-stable-i386"
78 apt-get download "${WINE_PKG}"
79 dpkg --ignore-depends="${WINE_PKG_DROP}" -i "${WINE_PKG}"*.deb
81 sed -i "/${WINE_PKG_DROP}/d" /var/lib/dpkg/status
82 apt-get install -y --no-remove winehq-stable # symlinks-only, depends on wine-stable
84 ############### Install DXVK
86 . .gitlab-ci/container/setup-wine.sh "/dxvk-wine64"
87 . .gitlab-ci/container/install-wine-dxvk.sh
89 ############### Install apitrace binaries for wine
91 . .gitlab-ci/container/install-wine-apitrace.sh
92 # Add the apitrace path to the registry
94 reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment" \
97 /d "C:\windows\system32;C:\windows;C:\windows\system32\wbem;Z:\apitrace-msvc-win64\bin" \
100 ############### Building ...
102 . .gitlab-ci/container/container_pre_build.sh
104 ############### Build parallel-deqp-runner's hang-detection tool
106 . .gitlab-ci/container/build-hang-detection.sh
108 ############### Build piglit
110 PIGLIT_BUILD_TARGETS="piglit_replayer" . .gitlab-ci/container/build-piglit.sh
112 ############### Build Fossilize
114 . .gitlab-ci/container/build-fossilize.sh
116 ############### Build dEQP VK
118 . .gitlab-ci/container/build-deqp.sh
120 ############### Build apitrace
122 . .gitlab-ci/container/build-apitrace.sh
124 ############### Build gfxreconstruct
126 . .gitlab-ci/container/build-gfxreconstruct.sh
128 ############### Build VKD3D-Proton
130 . .gitlab-ci/container/setup-wine.sh "/vkd3d-proton-wine64"
132 . .gitlab-ci/container/build-vkd3d-proton.sh
134 ############### Uninstall the build software
141 apt-get autoremove -y --purge