[d3d11] dlls_setup.sh -> setup_dxvk.sh

Also, the install script no longer relies on the prefix
being set by the Meson configuration.
This commit is contained in:
Philip Rebohle 2018-02-05 11:58:49 +01:00
parent ad81d0bfa5
commit 26ef59dd6f
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 20 additions and 12 deletions

View File

@ -3,7 +3,7 @@ conf.set('dlldir', get_option('prefix')+'/'+get_option('bindir'))
conf.set('arch', target_machine.cpu_family())
configure_file(
configuration : conf,
input : 'dlls_setup.sh.in',
output : 'dlls_setup.sh',
input : 'setup_dxvk.sh.in',
output : 'setup_dxvk.sh',
install_dir : get_option('bindir')
)

View File

@ -1,9 +1,15 @@
#!/bin/bash
dlls_dir='@dlldir@'
build_arch='@arch@'
export WINEDEBUG=-all
dlls_dir=`dirname $(readlink -f $0)`
build_arch='@arch@'
if [ ! -f "$dlls_dir/d3d11.dll" ] || [ ! -f "$dlls_dir/dxgi.dll" ]; then
echo "d3d11.dll or dxgi.dll not found in $dlls_dir"
exit 1
fi
if [ $build_arch == "x86_64" ]; then
wine=wine64
else
@ -54,11 +60,13 @@ if [ "$1" == "reset" ]; then
removeOverride d3d11
echo -n '[2/2] '
removeOverride dxgi
exit
fi
echo -n '[1/2] '
createOverride d3d11
echo -n '[2/2] '
createOverride dxgi
exit
elif [ -z "$1" ]; then
echo -n '[1/2] '
createOverride d3d11
echo -n '[2/2] '
createOverride dxgi
else
echo "Unrecognized option: $1"
echo "Usage: $0 [reset]"
exit 1
fi