Build wine with dxvk cross-compiler

WARNING: Do not look directly into the build system without eye
protection.
This commit is contained in:
Andrew Eikum 2019-06-24 09:32:26 -05:00
parent ab453aaf11
commit d68e71bed6
5 changed files with 60 additions and 5 deletions

View file

@ -115,6 +115,10 @@ function configure() {
echo "DXVK_CROSSCC_PREFIX := $(escape_for_make "$arg_crosscc_prefix")," #comma is not a typo
fi
if [[ -n "$arg_docker_opts" ]]; then
echo "DOCKER_OPTS := $arg_docker_opts"
fi
# Include base
echo ""
echo "include \$(SRCDIR)/build/makefile_base.mak"
@ -135,6 +139,7 @@ arg_no_steamrt=""
arg_ffmpeg=""
arg_build_name=""
arg_crosscc_prefix=""
arg_docker_opts=""
arg_help=""
invalid_args=""
function parse_args() {
@ -174,6 +179,9 @@ function parse_args() {
elif [[ $arg = --dxvk-crosscc-prefix ]]; then
arg_crosscc_prefix="$val"
val_used=1
elif [[ $arg = --docker-opts ]]; then
arg_docker_opts="$val"
val_used=1
elif [[ $arg = --with-ffmpeg ]]; then
arg_ffmpeg=1
elif [[ $arg = --steam-runtime32 ]]; then
@ -236,6 +244,8 @@ usage() {
"$1" " the cross-compiler that builds DXVK. E.g:"
"$1" " --dxvk-crosscc-prefix=\"schroot\",\"-c\",\"some_chroot\",\"--\""
"$1" ""
"$1" " --docker-opts='<options>' Extra options to pass to Docker when invoking the runtime."
"$1" ""
"$1" " Steam Runtime"
"$1" " Proton builds that are to be installed & run under the steam client must be built with"
"$1" " the Steam Runtime SDK to ensure compatibility. See README.md for more information."