Added a README file regarding WinRT support

To note, this file is currently formatted with CRLF line endings, rather than
LF, to allow the file to be viewed with Notepad.
This commit is contained in:
David Ludwig 2014-04-09 21:29:19 -04:00
commit 3dcb451f85
1838 changed files with 474982 additions and 0 deletions

View file

@ -0,0 +1,5 @@
@echo off
cd ..\VS2010
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
msbuild /m SDL.sln /property:Configuration=Debug
pause

View file

@ -0,0 +1,81 @@
@echo off
title Building Premake VS2010 Environment...
call build.all.vs2010.bat
title Building SDL VS2010 Environment...
cd %~dp0
cd ..\..\..\VisualC
msbuild /m SDL_VS2010.sln /t:Clean,Build /property:Configuration=Debug
pause
title Running SDL VS2010 tests with premake SDL2.dll...
cd tests
call :pass checkkeys
call :pass loopwave
call :pass testatomic
call :pass testaudioinfo
call :pass testautomation
call :pass testdraw2
call :pass testerror
call :pass testfile
call :pass testgamecontroller
call :pass testgesture
call :pass testgl2
call :pass testgles
call :pass testhaptic
call :pass testiconv
call :pass testime
call :pass testintersection
call :pass testjoystick
call :pass testkeys
::call :pass testloadso
call :pass testlock
call :pass testmessage
call :pass testmultiaudio
call :pass testnative
call :pass testoverlay2
call :pass testplatform
call :pass testpower
call :pass testrelative
call :pass testrendercopyex
call :pass testrendertarget
::call :pass testresample
call :pass testrumble
call :pass testscale
call :pass testsem 0
call :pass testshader
call :pass testshape "../../../../../../test/sample.bmp"
call :pass testsprite2
call :pass testspriteminimal
call :pass teststreaming
call :pass testthread
call :pass testtimer
call :pass testver
call :pass testwm2
call :pass torturethread
:: leave the tests directory
cd ..
:: exit batch
goto :eof
:: pass label (similar to pass function in the Xcode tests command script)
:pass
:: if it does not exist, break procedure
if not exist %1\Win32\Debug goto endfunc
:: goto directory
echo Running SDL VS2010 %1 with premake SDL2.dll...
title Running SDL VS2010 %1 with premake SDL2.dll...
cd %1\Win32\Debug
:: remove old SDL2.dll
rm SDL2.dll
:: copy new SDL2.dll (~dp0 is get directory of current location of batch file)
copy %~dp0\..\SDL2\Win32\Debug\SDL2.dll .\SDL2.dll
:: execute test
".\%1.exe" %2
cd ..\..\..
pause
:endfunc
goto :eof

View file

@ -0,0 +1,9 @@
@echo off
cd ..
%~dp0\premake4.exe --file=..\premake4.lua --to=.\VisualC\VS2008 clean
%~dp0\premake4.exe --file=..\premake4.lua --to=.\VisualC\VS2010 clean
%~dp0\premake4.exe --file=..\premake4.lua --to=.\VisualC\VS2012 clean
if exist VS2008 rmdir VS2008
if exist VS2010 rmdir VS2010
if exist VS2012 rmdir VS2012
pause

View file

@ -0,0 +1,9 @@
@echo off
cd ..
title Generating VS2008...
%~dp0\premake4.exe --file=..\premake4.lua --to=.\VisualC\VS2008 vs2008
title Generating VS2010...
%~dp0\premake4.exe --file=..\premake4.lua --to=.\VisualC\VS2010 vs2010
title Generating VS2012...
%~dp0\premake4.exe --file=..\premake4.lua --to=.\VisualC\VS2012 vs2012
pause

Binary file not shown.

View file

@ -0,0 +1,108 @@
@echo off
cd ..\VS2010\tests
call :pass checkkeys
call :pass loopwave
call :pass testatomic
call :pass testaudioinfo
call :pass testautomation
call :pass testdraw2
call :pass testchessboard
call :pass testerror
call :pass testfile
call :pass testfilesystem
call :pass testgamecontroller
call :pass testgesture
call :pass testgl2
call :pass testgles
call :pass testhaptic
call :pass testiconv
call :pass testime
call :pass testintersection
call :pass testjoystick
call :pass testkeys
::call :pass testloadso
call :pass testlock
call :pass testmessage
call :pass testmultiaudio
call :pass testnative
call :pass testoverlay2
call :pass testplatform
call :pass testpower
call :pass testrelative
call :pass testrendercopyex
call :pass testrendertarget
call :pass testresample sample.wav newsample.wav 44100
call :pass testrumble
call :pass testscale
call :pass testsem 1
call :pass testshader
call :testspecial testshape .\shapes
call :testspecial testshape .\shapes
call :testspecial testshape .\shapes
call :pass testsprite2
call :pass testspriteminimal
call :pass teststreaming
call :pass testthread
call :pass testtimer
call :pass testver
call :pass testwm2
call :pass torturethread
:: leave the tests directory
cd ..
:: exit batch
goto :eof
:testspecial
if not exist %1\Win32\Debug goto :eof
cd %1\Win32\Debug
call :randomfile %2
cd ..\..\..
call :pass %1 %RETURN%
goto :eof
:: pass label (similar to pass function in the Xcode tests command script)
:pass
setlocal enabledelayedexpansion
set args=
set /A count=0
for %%x IN (%*) DO (
if NOT !count! EQU 0 set args=!args! %%x
set /A count=%count% + 1
)
endlocal & set callargs=%args%
:: if it does not exist, break procedure
if not exist %1\Win32\Debug goto endfunc
:: goto directory
echo Testing: %1
title Testing: %1
cd %1\Win32\Debug
:: execute test
".\%1.exe"%callargs%
cd ..\..\..
pause
:endfunc
goto :eof
:randomfile
setlocal enabledelayedexpansion
set count=0
if not exist %1 goto :eof
for %%d in (%1\*.*) DO (
set /A count=count + 1
)
set /A count=%RANDOM% %% %count%
for %%d in (%1\*.*) DO (
if !count! EQU 0 (
set rfile=%%d
goto endrfile
)
set /A count=count-1
)
:endrfile
set tmprfile=!rfile!
endlocal & set RETURN=%tmprfile%
goto :eof

View file

@ -0,0 +1,4 @@
@echo off
cd ..
%~dp0\premake4.exe --file=..\premake4.lua --to=.\VisualC\VS2008 vs2008
pause

View file

@ -0,0 +1,4 @@
@echo off
cd ..
%~dp0\premake4.exe --file=..\premake4.lua --to=.\VisualC\VS2010 vs2010
pause

View file

@ -0,0 +1,4 @@
@echo off
cd ..
%~dp0\premake4.exe --file=..\premake4.lua --to=.\VisualC\VS2012 vs2012
pause