fetch SDL2 (native Windows DLL) from nuget

This commit is contained in:
Matthias Mailänder
2014-12-26 15:14:17 +01:00
parent 02e1a8d5d2
commit 51d081f93f
4 changed files with 17 additions and 0 deletions

1
.gitignore vendored
View File

@@ -30,6 +30,7 @@ thirdparty/Newtonsoft.Json*
thirdparty/SharpFont*
thirdparty/windows/freetype6.dll
thirdparty/nunit*
thirdparty/windows/SDL2.dll
# backup files by various editors
*~

View File

@@ -50,4 +50,13 @@ if (!(Test-Path "nunit.framework.dll"))
./nuget.exe install NUnit -Version 2.6.4
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
}

View File

@@ -40,4 +40,11 @@ if [ ! -f nunit.framework.dll ]; then
nuget install NUnit -Version 2.6.4
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

Binary file not shown.