comparison VisualC/SDL/SDL_VS2008.vcproj @ 3402:1653b8eac4d3

Fixed bug #852 Jesse Anders 2009-10-17 14:17:25 PDT In VC++, the build script that creates SDL_config.h and SDL_revision.h fails when the project directory path includes spaces. For example, if the project directory path is: c:\Documents and Settings\Jesse\My Documents\Visual Studio 2008\Projects\SDL 1.3\VisualC\SDL\ The following error is generated: 'and' is not recognized as an internal or external command Placing all paths in quotes fixes this.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 17 Oct 2009 21:46:08 +0000
parents c4d6458121db
children 5f812979e179
comparison
equal deleted inserted replaced
3401:244ca085c026 3402:1653b8eac4d3
28 ATLMinimizesCRunTimeLibraryUsage="false" 28 ATLMinimizesCRunTimeLibraryUsage="false"
29 > 29 >
30 <Tool 30 <Tool
31 Name="VCPreBuildEventTool" 31 Name="VCPreBuildEventTool"
32 Description="Making sure basic SDL headers are in place..." 32 Description="Making sure basic SDL headers are in place..."
33 CommandLine="if exist $(ProjectDir)\..\..\include\SDL_config.h goto SDLCONFIGOKAY&#x0D;&#x0A;echo Copying SDL_config_win32.h to SDL_config.h...&#x0D;&#x0A;copy $(ProjectDir)\..\..\include\SDL_config_win32.h $(ProjectDir)\..\..\include\SDL_config.h&#x0D;&#x0A;:SDLCONFIGOKAY&#x0D;&#x0A;&#x0D;&#x0A;if exist $(ProjectDir)\..\..\include\SDL_revision.h goto SDLREVISIONOKAY&#x0D;&#x0A;echo Creating stub SDL_revision.h file...&#x0D;&#x0A;echo #define SDL_REVISION 0 &gt;$(ProjectDir)\..\..\include\SDL_revision.h&#x0D;&#x0A;:SDLREVISIONOKAY" 33 CommandLine="if exist "$(ProjectDir)\..\..\include\SDL_config.h" goto SDLCONFIGOKAY&#x0D;&#x0A;echo Copying SDL_config_win32.h to SDL_config.h...&#x0D;&#x0A;copy "$(ProjectDir)\..\..\include\SDL_config_win32.h" "$(ProjectDir)\..\..\include\SDL_config.h"&#x0D;&#x0A;:SDLCONFIGOKAY&#x0D;&#x0A;&#x0D;&#x0A;if exist "$(ProjectDir)\..\..\include\SDL_revision.h" goto SDLREVISIONOKAY&#x0D;&#x0A;echo Creating stub SDL_revision.h file...&#x0D;&#x0A;echo #define SDL_REVISION 0 &gt;"$(ProjectDir)\..\..\include\SDL_revision.h"&#x0D;&#x0A;:SDLREVISIONOKAY"
34 /> 34 />
35 <Tool 35 <Tool
36 Name="VCCustomBuildTool" 36 Name="VCCustomBuildTool"
37 /> 37 />
38 <Tool 38 <Tool
199 ATLMinimizesCRunTimeLibraryUsage="false" 199 ATLMinimizesCRunTimeLibraryUsage="false"
200 > 200 >
201 <Tool 201 <Tool
202 Name="VCPreBuildEventTool" 202 Name="VCPreBuildEventTool"
203 Description="Making sure basic SDL headers are in place..." 203 Description="Making sure basic SDL headers are in place..."
204 CommandLine="if exist $(ProjectDir)\..\..\include\SDL_config.h goto SDLCONFIGOKAY&#x0D;&#x0A;echo Copying SDL_config_win32.h to SDL_config.h...&#x0D;&#x0A;copy $(ProjectDir)\..\..\include\SDL_config_win32.h $(ProjectDir)\..\..\include\SDL_config.h&#x0D;&#x0A;:SDLCONFIGOKAY&#x0D;&#x0A;&#x0D;&#x0A;if exist $(ProjectDir)\..\..\include\SDL_revision.h goto SDLREVISIONOKAY&#x0D;&#x0A;echo Creating stub SDL_revision.h file...&#x0D;&#x0A;echo #define SDL_REVISION 0 &gt;$(ProjectDir)\..\..\include\SDL_revision.h&#x0D;&#x0A;:SDLREVISIONOKAY" 204 CommandLine="if exist "$(ProjectDir)\..\..\include\SDL_config.h" goto SDLCONFIGOKAY&#x0D;&#x0A;echo Copying SDL_config_win32.h to SDL_config.h...&#x0D;&#x0A;copy "$(ProjectDir)\..\..\include\SDL_config_win32.h" "$(ProjectDir)\..\..\include\SDL_config.h"&#x0D;&#x0A;:SDLCONFIGOKAY&#x0D;&#x0A;&#x0D;&#x0A;if exist "$(ProjectDir)\..\..\include\SDL_revision.h" goto SDLREVISIONOKAY&#x0D;&#x0A;echo Creating stub SDL_revision.h file...&#x0D;&#x0A;echo #define SDL_REVISION 0 &gt;"$(ProjectDir)\..\..\include\SDL_revision.h"&#x0D;&#x0A;:SDLREVISIONOKAY"
205 /> 205 />
206 <Tool 206 <Tool
207 Name="VCCustomBuildTool" 207 Name="VCCustomBuildTool"
208 /> 208 />
209 <Tool 209 <Tool