fetch SDL2 (native Windows DLL) from nuget
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -30,6 +30,7 @@ thirdparty/Newtonsoft.Json*
|
||||
thirdparty/SharpFont*
|
||||
thirdparty/windows/freetype6.dll
|
||||
thirdparty/nunit*
|
||||
thirdparty/windows/SDL2.dll
|
||||
|
||||
# backup files by various editors
|
||||
*~
|
||||
|
||||
9
thirdparty/fetch-thirdparty-deps.ps1
vendored
9
thirdparty/fetch-thirdparty-deps.ps1
vendored
@@ -51,3 +51,12 @@ if (!(Test-Path "nunit.framework.dll"))
|
||||
cp NUnit.2.6.4/lib/nunit.framework* .
|
||||
rmdir NUnit.2.6.4 -Recurse
|
||||
}
|
||||
|
||||
if (!(Test-Path "windows/SDL2.dll"))
|
||||
{
|
||||
echo "Fetching SDL2 from NuGet."
|
||||
./nuget.exe install sdl2 -Version 2.0.3
|
||||
cp sdl2.redist.2.0.3/build/native/bin/Win32/dynamic/SDL2.dll ./windows/
|
||||
rmdir sdl2.2.0.3 -Recurse
|
||||
rmdir sdl2.redist.2.0.3 -Recurse
|
||||
}
|
||||
7
thirdparty/fetch-thirdparty-deps.sh
vendored
7
thirdparty/fetch-thirdparty-deps.sh
vendored
@@ -41,3 +41,10 @@ if [ ! -f nunit.framework.dll ]; then
|
||||
cp ./NUnit.2.6.4/lib/nunit.framework* .
|
||||
rm -rf NUnit.2.6.4
|
||||
fi
|
||||
|
||||
if [ ! -f windows/SDL2.dll ]; then
|
||||
echo "Fetching SDL2 from nuget"
|
||||
nuget install sdl2 -Version 2.0.3
|
||||
cp ./sdl2.redist.2.0.3/build/native/bin/Win32/dynamic/SDL2.dll ./windows/
|
||||
rm -rf sdl2.2.0.3 sdl2.redist.2.0.3
|
||||
fi
|
||||
BIN
thirdparty/windows/SDL2.dll
vendored
BIN
thirdparty/windows/SDL2.dll
vendored
Binary file not shown.
Reference in New Issue
Block a user