Fixed bug #830
authorSam Lantinga
Thu, 08 Oct 2009 09:32:07 +0000
changeset 335681b3f9d45dea
parent 3355 3c9e6f2f3c58
child 3357 2d19d10e24d5
Fixed bug #830

Added pre-build step to generate required headers
VisualC/SDL/SDL_VS2008.vcproj
VisualC/SDLmain/SDLmain_VS2008.vcproj
     1.1 --- a/VisualC/SDL/SDL_VS2008.vcproj	Thu Oct 08 09:14:31 2009 +0000
     1.2 +++ b/VisualC/SDL/SDL_VS2008.vcproj	Thu Oct 08 09:32:07 2009 +0000
     1.3 @@ -29,6 +29,8 @@
     1.4  			>
     1.5  			<Tool
     1.6  				Name="VCPreBuildEventTool"
     1.7 +				Description="Making sure basic SDL headers are in place..."
     1.8 +				CommandLine="if exist $(SolutionDir)\..\include\SDL_config.h goto SDLCONFIGOKAY&#x0D;&#x0A;echo Copying SDL_config_win32.h to SDL_config.h...&#x0D;&#x0A;copy $(SolutionDir)\..\include\SDL_config_win32.h $(SolutionDir)\..\include\SDL_config.h&#x0D;&#x0A;:SDLCONFIGOKAY&#x0D;&#x0A;&#x0D;&#x0A;if exist $(SolutionDir)\..\include\SDL_revision.h goto SDLREVISIONOKAY&#x0D;&#x0A;echo Creating stub SDL_revision.h file...&#x0D;&#x0A;echo #define SDL_REVISION 0 &gt;$(SolutionDir)\..\include\SDL_revision.h&#x0D;&#x0A;:SDLREVISIONOKAY"
     1.9  			/>
    1.10  			<Tool
    1.11  				Name="VCCustomBuildTool"
    1.12 @@ -198,6 +200,8 @@
    1.13  			>
    1.14  			<Tool
    1.15  				Name="VCPreBuildEventTool"
    1.16 +				Description="Making sure basic SDL headers are in place..."
    1.17 +				CommandLine="if exist $(SolutionDir)\..\include\SDL_config.h goto SDLCONFIGOKAY&#x0D;&#x0A;echo Copying SDL_config_win32.h to SDL_config.h...&#x0D;&#x0A;copy $(SolutionDir)\..\include\SDL_config_win32.h $(SolutionDir)\..\include\SDL_config.h&#x0D;&#x0A;:SDLCONFIGOKAY&#x0D;&#x0A;&#x0D;&#x0A;if exist $(SolutionDir)\..\include\SDL_revision.h goto SDLREVISIONOKAY&#x0D;&#x0A;echo Creating stub SDL_revision.h file...&#x0D;&#x0A;echo #define SDL_REVISION 0 &gt;$(SolutionDir)\..\include\SDL_revision.h&#x0D;&#x0A;:SDLREVISIONOKAY"
    1.18  			/>
    1.19  			<Tool
    1.20  				Name="VCCustomBuildTool"
     2.1 --- a/VisualC/SDLmain/SDLmain_VS2008.vcproj	Thu Oct 08 09:14:31 2009 +0000
     2.2 +++ b/VisualC/SDLmain/SDLmain_VS2008.vcproj	Thu Oct 08 09:32:07 2009 +0000
     2.3 @@ -28,6 +28,8 @@
     2.4  			>
     2.5  			<Tool
     2.6  				Name="VCPreBuildEventTool"
     2.7 +				Description="Making sure basic SDL headers are in place..."
     2.8 +				CommandLine="if exist $(SolutionDir)\..\include\SDL_config.h goto SDLCONFIGOKAY&#x0D;&#x0A;echo Copying SDL_config_win32.h to SDL_config.h...&#x0D;&#x0A;copy $(SolutionDir)\..\include\SDL_config_win32.h $(SolutionDir)\..\include\SDL_config.h&#x0D;&#x0A;:SDLCONFIGOKAY&#x0D;&#x0A;&#x0D;&#x0A;if exist $(SolutionDir)\..\include\SDL_revision.h goto SDLREVISIONOKAY&#x0D;&#x0A;echo Creating stub SDL_revision.h file...&#x0D;&#x0A;echo #define SDL_REVISION 0 &gt;$(SolutionDir)\..\include\SDL_revision.h&#x0D;&#x0A;:SDLREVISIONOKAY"
     2.9  			/>
    2.10  			<Tool
    2.11  				Name="VCCustomBuildTool"
    2.12 @@ -163,6 +165,8 @@
    2.13  			>
    2.14  			<Tool
    2.15  				Name="VCPreBuildEventTool"
    2.16 +				Description="Making sure basic SDL headers are in place..."
    2.17 +				CommandLine="if exist $(SolutionDir)\..\include\SDL_config.h goto SDLCONFIGOKAY&#x0D;&#x0A;echo Copying SDL_config_win32.h to SDL_config.h...&#x0D;&#x0A;copy $(SolutionDir)\..\include\SDL_config_win32.h $(SolutionDir)\..\include\SDL_config.h&#x0D;&#x0A;:SDLCONFIGOKAY&#x0D;&#x0A;&#x0D;&#x0A;if exist $(SolutionDir)\..\include\SDL_revision.h goto SDLREVISIONOKAY&#x0D;&#x0A;echo Creating stub SDL_revision.h file...&#x0D;&#x0A;echo #define SDL_REVISION 0 &gt;$(SolutionDir)\..\include\SDL_revision.h&#x0D;&#x0A;:SDLREVISIONOKAY"
    2.18  			/>
    2.19  			<Tool
    2.20  				Name="VCCustomBuildTool"
    2.21 @@ -298,6 +302,8 @@
    2.22  			>
    2.23  			<Tool
    2.24  				Name="VCPreBuildEventTool"
    2.25 +				Description="Making sure basic SDL headers are in place..."
    2.26 +				CommandLine="if exist $(SolutionDir)\..\include\SDL_config.h goto SDLCONFIGOKAY&#x0D;&#x0A;echo Copying SDL_config_win32.h to SDL_config.h...&#x0D;&#x0A;copy $(SolutionDir)\..\include\SDL_config_win32.h $(SolutionDir)\..\include\SDL_config.h&#x0D;&#x0A;:SDLCONFIGOKAY&#x0D;&#x0A;&#x0D;&#x0A;if exist $(SolutionDir)\..\include\SDL_revision.h goto SDLREVISIONOKAY&#x0D;&#x0A;echo Creating stub SDL_revision.h file...&#x0D;&#x0A;echo #define SDL_REVISION 0 &gt;$(SolutionDir)\..\include\SDL_revision.h&#x0D;&#x0A;:SDLREVISIONOKAY"
    2.27  			/>
    2.28  			<Tool
    2.29  				Name="VCCustomBuildTool"