changeset 3356:81b3f9d45dea

Fixed bug #830 Added pre-build step to generate required headers
author Sam Lantinga <slouken@libsdl.org>
date Thu, 08 Oct 2009 09:32:07 +0000
parents 3c9e6f2f3c58
children 2d19d10e24d5
files VisualC/SDL/SDL_VS2008.vcproj VisualC/SDLmain/SDLmain_VS2008.vcproj
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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&#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"
 			/>
 			<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&#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"
 			/>
 			<Tool
 				Name="VCCustomBuildTool"
--- 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&#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"
 			/>
 			<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&#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"
 			/>
 			<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&#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"
 			/>
 			<Tool
 				Name="VCCustomBuildTool"