diff --git a/.gitignore b/.gitignore index 559d364925..9945157b0e 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,7 @@ thirdparty/Newtonsoft.Json* thirdparty/SharpFont* thirdparty/windows/freetype6.dll thirdparty/nunit* +thirdparty/windows/SDL2.dll # backup files by various editors *~ diff --git a/thirdparty/fetch-thirdparty-deps.ps1 b/thirdparty/fetch-thirdparty-deps.ps1 index 5935ac3840..595f6254a1 100644 --- a/thirdparty/fetch-thirdparty-deps.ps1 +++ b/thirdparty/fetch-thirdparty-deps.ps1 @@ -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 } \ No newline at end of file diff --git a/thirdparty/fetch-thirdparty-deps.sh b/thirdparty/fetch-thirdparty-deps.sh index 52327ebf21..4dcfd26435 100755 --- a/thirdparty/fetch-thirdparty-deps.sh +++ b/thirdparty/fetch-thirdparty-deps.sh @@ -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 \ No newline at end of file diff --git a/thirdparty/windows/SDL2.dll b/thirdparty/windows/SDL2.dll deleted file mode 100755 index 18d707f481..0000000000 Binary files a/thirdparty/windows/SDL2.dll and /dev/null differ