6 export DEBIAN_FRONTEND
=noninteractive
8 # Ephemeral packages (installed for this script and removed again at the end)
30 # Unfortunately, gfxreconstruct needs the -dev packages:
31 # https://github.com/LunarG/gfxreconstruct/issues/402
32 apt-get
install -y --no-remove \
39 # We need multiarch for Wine
40 dpkg
--add-architecture i386
44 apt-get
install -y --no-remove \
50 ############### Set up Wine env variables
52 export WINEDEBUG
="-all"
53 export WINEPREFIX
="/dxvk-wine64"
55 ############### Install DXVK
59 # We don't want crash dialogs
60 cat >crashdialog.reg
<<EOF
61 Windows Registry Editor Version 5.00
63 [HKEY_CURRENT_USER\Software\Wine\WineDbg]
64 "ShowCrashDialog"=dword:00000000
68 # Set the wine prefix and disable the crash dialog
69 wine regedit crashdialog.reg
72 # DXVK's setup often fails with:
73 # "${WINEPREFIX}: Not a valid wine prefix."
74 # and that is just spit because of checking the existance of the
75 # system.reg file, which fails.
76 # Just giving it a bit more of time for it to be created solves the
78 test -f "${WINEPREFIX}/system.reg" ||
sleep 2
80 wget
"https://github.com/doitsujin/dxvk/releases/download/v${DXVK_VERSION}/dxvk-${DXVK_VERSION}.tar.gz"
81 tar xzpf dxvk-
"${DXVK_VERSION}".
tar.gz
82 dxvk-
"${DXVK_VERSION}"/setup_dxvk.sh
install
83 rm -rf dxvk-
"${DXVK_VERSION}"
84 rm dxvk-
"${DXVK_VERSION}".
tar.gz
86 ############### Install Windows' apitrace binaries
88 APITRACE_VERSION
="9.0"
89 APITRACE_VERSION_DATE
="20191126"
91 wget
"https://github.com/apitrace/apitrace/releases/download/${APITRACE_VERSION}/apitrace-${APITRACE_VERSION}.${APITRACE_VERSION_DATE}-win64.7z"
92 7zr x
"apitrace-${APITRACE_VERSION}.${APITRACE_VERSION_DATE}-win64.7z" \
93 "apitrace-${APITRACE_VERSION}.${APITRACE_VERSION_DATE}-win64/bin/apitrace.exe" \
94 "apitrace-${APITRACE_VERSION}.${APITRACE_VERSION_DATE}-win64/bin/d3dretrace.exe"
95 mv "apitrace-${APITRACE_VERSION}.${APITRACE_VERSION_DATE}-win64" /apitrace-msvc-win64
96 rm "apitrace-${APITRACE_VERSION}.${APITRACE_VERSION_DATE}-win64.7z"
98 # Add the apitrace path to the registry
100 reg add
"HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment" \
103 /d
"C:\windows\system32;C:\windows;C:\windows\system32\wbem;Z:\apitrace-msvc-win64\bin" \
106 ############### Building ...
108 . .gitlab-ci
/container
/container_pre_build.sh
110 ############### Build dEQP runner
112 . .gitlab-ci
/build-cts-runner.sh
114 ############### Build Fossilize
116 . .gitlab-ci
/build-fossilize.sh
118 ############### Build dEQP VK
120 . .gitlab-ci
/build-deqp-vk.sh
122 ############### Build gfxreconstruct
124 . .gitlab-ci
/build-gfxreconstruct.sh
126 ############### Build VulkanTools
128 . .gitlab-ci
/build-vulkantools.sh
130 ############### Uninstall the build software
137 apt-get autoremove
-y --purge