1
0
Fork 0

Implement calls to xwin to download Windows SDK.

main
Icedream 2024-01-22 02:17:17 +01:00
parent 1ec6f9d2d5
commit 52aa39e792
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
1 changed files with 13 additions and 0 deletions

View File

@ -25,6 +25,19 @@ export CPATH="$thirdparty_includes:$thirdparty_includes/winfsp:$thirdparty_inclu
# export PATH="$GOBIN:$PATH"
export CGO_ENABLED=1
if [ ! -d "$thirdparty_includes/windows/splat/sdk/Include/${winsdk_version}" ]; then
if command -v xwin 2>/dev/null >/dev/null; then
xwin splat --preserve-ms-arch-notation --output="$thirdparty_includes/windows/splat"
else
echo "ERROR: xwin not found and $thirdparty_includes/windows/splat does not exist. Please install the xwin tool from https://github.com/Jake-Shadle/xwin." >&2
exit 1
fi
# patch pragma error
srcdir="$(pwd)"
(cd "$thirdparty_includes/windows/splat/sdk/Include/${winsdk_version}/winrt" && patch -u -p1 -N -i "$srcdir/winrt.1.patch")
fi
mkdir -p "$thirdparty_includes"
if [ ! -d "$thirdparty_includes/libnp" ]; then
wget -q -O libnp.zip https://github.com/delthas/libnp/archive/291aeb5d56d5b90f89ef8a271d0803a698488ca6.zip