2018-02-09 17:33:40 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if [ x"$1" == x ]; then
|
|
|
|
echo missing build type, give win32 or win64
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
TOP="$PWD"
|
|
|
|
TYPE="$1"
|
|
|
|
|
|
|
|
cd "$TOP"/dxvk
|
|
|
|
|
2018-02-14 19:50:56 +01:00
|
|
|
sed -i -e 's/^exe_wrapper.*$//' build-$TYPE.txt
|
|
|
|
|
2018-02-09 17:33:40 +01:00
|
|
|
meson --prefix="$TOP"/dxvk/dist.$TYPE --cross-file build-$TYPE.txt build.$TYPE
|
|
|
|
|
|
|
|
cd build.$TYPE
|
|
|
|
|
2018-02-23 17:36:08 +01:00
|
|
|
meson configure -Dprefix="$TOP"/dxvk -Dbuildtype=release
|
2018-02-09 17:33:40 +01:00
|
|
|
|
|
|
|
ninja
|
2018-02-23 17:36:08 +01:00
|
|
|
|
|
|
|
#build on Arch Linux and deploy into git, see build_proton.sh
|
|
|
|
mkdir -p "$TOP"/dxvk.$TYPE
|
|
|
|
cp src/dxgi/dxgi.dll "$TOP"/dxvk.$TYPE/
|
|
|
|
strip "$TOP"/dxvk.$TYPE/dxgi.dll
|
|
|
|
cp src/d3d11/d3d11.dll "$TOP"/dxvk.$TYPE/
|
|
|
|
strip "$TOP"/dxvk.$TYPE/d3d11.dll
|
|
|
|
echo "build_dxvk: $TYPE build done"
|
2018-02-09 17:33:40 +01:00
|
|
|
|
|
|
|
#mark as built
|
2018-02-23 17:36:08 +01:00
|
|
|
#touch "$TOP"/dxvk/proton.$TYPE.built
|