# HG changeset patch # User Sam Lantinga <slouken@libsdl.org> # Date 1254994327 0 # Node ID 81b3f9d45dea542374add6a9a34f5d3a190015b7 # Parent 3c9e6f2f3c5805d9639215818ba655e937c10bda Fixed bug #830 Added pre-build step to generate required headers diff -r 3c9e6f2f3c58 -r 81b3f9d45dea VisualC/SDL/SDL_VS2008.vcproj --- a/VisualC/SDL/SDL_VS2008.vcproj Thu Oct 08 09:14:31 2009 +0000 +++ b/VisualC/SDL/SDL_VS2008.vcproj Thu Oct 08 09:32:07 2009 +0000 @@ -29,6 +29,8 @@ > <Tool Name="VCPreBuildEventTool" + Description="Making sure basic SDL headers are in place..." + CommandLine="if exist $(SolutionDir)\..\include\SDL_config.h goto SDLCONFIGOKAY
echo Copying SDL_config_win32.h to SDL_config.h...
copy $(SolutionDir)\..\include\SDL_config_win32.h $(SolutionDir)\..\include\SDL_config.h
:SDLCONFIGOKAY

if exist $(SolutionDir)\..\include\SDL_revision.h goto SDLREVISIONOKAY
echo Creating stub SDL_revision.h file...
echo #define SDL_REVISION 0 >$(SolutionDir)\..\include\SDL_revision.h
:SDLREVISIONOKAY" /> <Tool Name="VCCustomBuildTool" @@ -198,6 +200,8 @@ > <Tool Name="VCPreBuildEventTool" + Description="Making sure basic SDL headers are in place..." + CommandLine="if exist $(SolutionDir)\..\include\SDL_config.h goto SDLCONFIGOKAY
echo Copying SDL_config_win32.h to SDL_config.h...
copy $(SolutionDir)\..\include\SDL_config_win32.h $(SolutionDir)\..\include\SDL_config.h
:SDLCONFIGOKAY

if exist $(SolutionDir)\..\include\SDL_revision.h goto SDLREVISIONOKAY
echo Creating stub SDL_revision.h file...
echo #define SDL_REVISION 0 >$(SolutionDir)\..\include\SDL_revision.h
:SDLREVISIONOKAY" /> <Tool Name="VCCustomBuildTool" diff -r 3c9e6f2f3c58 -r 81b3f9d45dea VisualC/SDLmain/SDLmain_VS2008.vcproj --- a/VisualC/SDLmain/SDLmain_VS2008.vcproj Thu Oct 08 09:14:31 2009 +0000 +++ b/VisualC/SDLmain/SDLmain_VS2008.vcproj Thu Oct 08 09:32:07 2009 +0000 @@ -28,6 +28,8 @@ > <Tool Name="VCPreBuildEventTool" + Description="Making sure basic SDL headers are in place..." + CommandLine="if exist $(SolutionDir)\..\include\SDL_config.h goto SDLCONFIGOKAY
echo Copying SDL_config_win32.h to SDL_config.h...
copy $(SolutionDir)\..\include\SDL_config_win32.h $(SolutionDir)\..\include\SDL_config.h
:SDLCONFIGOKAY

if exist $(SolutionDir)\..\include\SDL_revision.h goto SDLREVISIONOKAY
echo Creating stub SDL_revision.h file...
echo #define SDL_REVISION 0 >$(SolutionDir)\..\include\SDL_revision.h
:SDLREVISIONOKAY" /> <Tool Name="VCCustomBuildTool" @@ -163,6 +165,8 @@ > <Tool Name="VCPreBuildEventTool" + Description="Making sure basic SDL headers are in place..." + CommandLine="if exist $(SolutionDir)\..\include\SDL_config.h goto SDLCONFIGOKAY
echo Copying SDL_config_win32.h to SDL_config.h...
copy $(SolutionDir)\..\include\SDL_config_win32.h $(SolutionDir)\..\include\SDL_config.h
:SDLCONFIGOKAY

if exist $(SolutionDir)\..\include\SDL_revision.h goto SDLREVISIONOKAY
echo Creating stub SDL_revision.h file...
echo #define SDL_REVISION 0 >$(SolutionDir)\..\include\SDL_revision.h
:SDLREVISIONOKAY" /> <Tool Name="VCCustomBuildTool" @@ -298,6 +302,8 @@ > <Tool Name="VCPreBuildEventTool" + Description="Making sure basic SDL headers are in place..." + CommandLine="if exist $(SolutionDir)\..\include\SDL_config.h goto SDLCONFIGOKAY
echo Copying SDL_config_win32.h to SDL_config.h...
copy $(SolutionDir)\..\include\SDL_config_win32.h $(SolutionDir)\..\include\SDL_config.h
:SDLCONFIGOKAY

if exist $(SolutionDir)\..\include\SDL_revision.h goto SDLREVISIONOKAY
echo Creating stub SDL_revision.h file...
echo #define SDL_REVISION 0 >$(SolutionDir)\..\include\SDL_revision.h
:SDLREVISIONOKAY" /> <Tool Name="VCCustomBuildTool"