Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed bug #830
Browse files Browse the repository at this point in the history
Added pre-build step to generate required headers
  • Loading branch information
slouken committed Oct 8, 2009
1 parent 89678da commit 7d69db9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions VisualC/SDL/SDL_VS2008.vcproj
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions VisualC/SDLmain/SDLmain_VS2008.vcproj
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 7d69db9

Please sign in to comment.