Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added Ben Henning's GSoC2013 work: premake build system.
  • Loading branch information
icculus committed Nov 10, 2013
1 parent 5206975 commit 92b1281
Show file tree
Hide file tree
Showing 473 changed files with 89,151 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/SDL_config.h
Expand Up @@ -29,7 +29,9 @@
*/

/* Add any platform that doesn't build using the configure system. */
#if defined(__WIN32__)
#ifdef USING_PREMAKE_CONFIG_H
#include "SDL_config_premake.h"
#elif defined(__WIN32__)
#include "SDL_config_windows.h"
#elif defined(__MACOSX__)
#include "SDL_config_macosx.h"
Expand Down
4 changes: 4 additions & 0 deletions premake/Cygwin/build-scripts/clean_premake.bat
@@ -0,0 +1,4 @@
@echo off
cd ..
%~dp0\premake4.exe --file=..\premake4.lua --to=.\Cygwin --cygwin clean
pause
4 changes: 4 additions & 0 deletions premake/Cygwin/build-scripts/cygwin.bat
@@ -0,0 +1,4 @@
@echo off
cd ..
%~dp0\premake4.exe --file=..\premake4.lua --to=.\Cygwin --cygwin gmake
pause
5 changes: 5 additions & 0 deletions premake/Cygwin/build-scripts/make.debug.bat
@@ -0,0 +1,5 @@
@echo off
echo This script assumes Cygwin's make utility is in your Path
cd ..
make config=debug
pause
5 changes: 5 additions & 0 deletions premake/Cygwin/build-scripts/make.release.bat
@@ -0,0 +1,5 @@
@echo off
echo This script assumes Cygwin's make utility is in your Path
cd ..
make config=release
pause
Binary file added premake/Cygwin/build-scripts/premake4.exe
Binary file not shown.
68 changes: 68 additions & 0 deletions premake/Cygwin/build-scripts/run.tests.debug.bat
@@ -0,0 +1,68 @@
@echo off

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 1
call :pass testshader
call :pass testshape 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 Testing: %1
title Testing: %1
cd %1\Win32\Debug
:: execute test
".\%1.exe" %2
cd ..\..\..
pause
:endfunc
goto :eof
68 changes: 68 additions & 0 deletions premake/Cygwin/build-scripts/run.tests.release.bat
@@ -0,0 +1,68 @@
@echo off

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 1
call :pass testshader
call :pass testshape 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\Release goto endfunc
:: goto directory
echo Testing: %1
title Testing: %1
cd %1\Win32\Debug
:: execute test
".\%1.exe" %2
cd ..\..\..
pause
:endfunc
goto :eof

0 comments on commit 92b1281

Please sign in to comment.