VisualC/SDLmain/SDLmain_VS2008.vcproj
author Sam Lantinga
Sat, 17 Oct 2009 21:46:08 +0000
changeset 3402 1653b8eac4d3
parent 3381 c4d6458121db
child 3403 5f812979e179
permissions -rw-r--r--
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.
     1 <?xml version="1.0" encoding="Windows-1252"?>
     2 <VisualStudioProject
     3 	ProjectType="Visual C++"
     4 	Version="9.00"
     5 	Name="SDLmain"
     6 	ProjectGUID="{DA956FD3-E142-46F2-9DD5-C78BEBB56B7A}"
     7 	TargetFrameworkVersion="131072"
     8 	>
     9 	<Platforms>
    10 		<Platform
    11 			Name="Win32"
    12 		/>
    13 		<Platform
    14 			Name="x64"
    15 		/>
    16 	</Platforms>
    17 	<ToolFiles>
    18 	</ToolFiles>
    19 	<Configurations>
    20 		<Configuration
    21 			Name="Release|Win32"
    22 			OutputDirectory=".\Release"
    23 			IntermediateDirectory=".\Release"
    24 			ConfigurationType="4"
    25 			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
    26 			UseOfMFC="0"
    27 			ATLMinimizesCRunTimeLibraryUsage="false"
    28 			>
    29 			<Tool
    30 				Name="VCPreBuildEventTool"
    31 				Description="Making sure basic SDL headers are in place..."
    32 				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 			/>
    34 			<Tool
    35 				Name="VCCustomBuildTool"
    36 			/>
    37 			<Tool
    38 				Name="VCXMLDataGeneratorTool"
    39 			/>
    40 			<Tool
    41 				Name="VCWebServiceProxyGeneratorTool"
    42 			/>
    43 			<Tool
    44 				Name="VCMIDLTool"
    45 			/>
    46 			<Tool
    47 				Name="VCCLCompilerTool"
    48 				InlineFunctionExpansion="1"
    49 				AdditionalIncludeDirectories="..\..\include,..\..\include\SDL"
    50 				PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
    51 				StringPooling="true"
    52 				RuntimeLibrary="2"
    53 				EnableFunctionLevelLinking="true"
    54 				UsePrecompiledHeader="0"
    55 				WarningLevel="3"
    56 				SuppressStartupBanner="true"
    57 				CompileAs="0"
    58 			/>
    59 			<Tool
    60 				Name="VCManagedResourceCompilerTool"
    61 			/>
    62 			<Tool
    63 				Name="VCResourceCompilerTool"
    64 			/>
    65 			<Tool
    66 				Name="VCPreLinkEventTool"
    67 			/>
    68 			<Tool
    69 				Name="VCLibrarianTool"
    70 				OutputFile=".\Release\SDLmain.lib"
    71 				SuppressStartupBanner="true"
    72 			/>
    73 			<Tool
    74 				Name="VCALinkTool"
    75 			/>
    76 			<Tool
    77 				Name="VCXDCMakeTool"
    78 			/>
    79 			<Tool
    80 				Name="VCBscMakeTool"
    81 			/>
    82 			<Tool
    83 				Name="VCFxCopTool"
    84 			/>
    85 			<Tool
    86 				Name="VCPostBuildEventTool"
    87 			/>
    88 		</Configuration>
    89 		<Configuration
    90 			Name="Release|x64"
    91 			OutputDirectory="$(PlatformName)\$(ConfigurationName)"
    92 			IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
    93 			ConfigurationType="4"
    94 			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
    95 			UseOfMFC="0"
    96 			ATLMinimizesCRunTimeLibraryUsage="false"
    97 			>
    98 			<Tool
    99 				Name="VCPreBuildEventTool"
   100 			/>
   101 			<Tool
   102 				Name="VCCustomBuildTool"
   103 			/>
   104 			<Tool
   105 				Name="VCXMLDataGeneratorTool"
   106 			/>
   107 			<Tool
   108 				Name="VCWebServiceProxyGeneratorTool"
   109 			/>
   110 			<Tool
   111 				Name="VCMIDLTool"
   112 				TargetEnvironment="3"
   113 			/>
   114 			<Tool
   115 				Name="VCCLCompilerTool"
   116 				InlineFunctionExpansion="1"
   117 				AdditionalIncludeDirectories="..\..\include,..\..\include\SDL"
   118 				PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS"
   119 				StringPooling="true"
   120 				RuntimeLibrary="2"
   121 				EnableFunctionLevelLinking="true"
   122 				UsePrecompiledHeader="0"
   123 				PrecompiledHeaderFile=".\Release/SDLmain.pch"
   124 				WarningLevel="3"
   125 				SuppressStartupBanner="true"
   126 				CompileAs="0"
   127 			/>
   128 			<Tool
   129 				Name="VCManagedResourceCompilerTool"
   130 			/>
   131 			<Tool
   132 				Name="VCResourceCompilerTool"
   133 			/>
   134 			<Tool
   135 				Name="VCPreLinkEventTool"
   136 			/>
   137 			<Tool
   138 				Name="VCLibrarianTool"
   139 				OutputFile="$(IntDir)\SDLmain.lib"
   140 			/>
   141 			<Tool
   142 				Name="VCALinkTool"
   143 			/>
   144 			<Tool
   145 				Name="VCXDCMakeTool"
   146 			/>
   147 			<Tool
   148 				Name="VCBscMakeTool"
   149 			/>
   150 			<Tool
   151 				Name="VCFxCopTool"
   152 			/>
   153 			<Tool
   154 				Name="VCPostBuildEventTool"
   155 			/>
   156 		</Configuration>
   157 		<Configuration
   158 			Name="Release_NoSTDIO|Win32"
   159 			OutputDirectory=".\Release_NOSTDIO"
   160 			IntermediateDirectory=".\Release_NOSTDIO"
   161 			ConfigurationType="4"
   162 			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
   163 			UseOfMFC="0"
   164 			ATLMinimizesCRunTimeLibraryUsage="false"
   165 			>
   166 			<Tool
   167 				Name="VCPreBuildEventTool"
   168 				Description="Making sure basic SDL headers are in place..."
   169 				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"
   170 			/>
   171 			<Tool
   172 				Name="VCCustomBuildTool"
   173 			/>
   174 			<Tool
   175 				Name="VCXMLDataGeneratorTool"
   176 			/>
   177 			<Tool
   178 				Name="VCWebServiceProxyGeneratorTool"
   179 			/>
   180 			<Tool
   181 				Name="VCMIDLTool"
   182 			/>
   183 			<Tool
   184 				Name="VCCLCompilerTool"
   185 				InlineFunctionExpansion="1"
   186 				AdditionalIncludeDirectories="..\..\include,..\..\include\SDL"
   187 				PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;WIN32,NDEBUG,_WINDOWS,NO_STDIO_REDIRECT"
   188 				StringPooling="true"
   189 				RuntimeLibrary="2"
   190 				EnableFunctionLevelLinking="true"
   191 				UsePrecompiledHeader="0"
   192 				WarningLevel="3"
   193 				SuppressStartupBanner="true"
   194 				CompileAs="0"
   195 			/>
   196 			<Tool
   197 				Name="VCManagedResourceCompilerTool"
   198 			/>
   199 			<Tool
   200 				Name="VCResourceCompilerTool"
   201 			/>
   202 			<Tool
   203 				Name="VCPreLinkEventTool"
   204 			/>
   205 			<Tool
   206 				Name="VCLibrarianTool"
   207 				OutputFile=".\Release_NOSTDIO\SDLmain.lib"
   208 				SuppressStartupBanner="true"
   209 			/>
   210 			<Tool
   211 				Name="VCALinkTool"
   212 			/>
   213 			<Tool
   214 				Name="VCXDCMakeTool"
   215 			/>
   216 			<Tool
   217 				Name="VCBscMakeTool"
   218 			/>
   219 			<Tool
   220 				Name="VCFxCopTool"
   221 			/>
   222 			<Tool
   223 				Name="VCPostBuildEventTool"
   224 			/>
   225 		</Configuration>
   226 		<Configuration
   227 			Name="Release_NoSTDIO|x64"
   228 			OutputDirectory="$(PlatformName)\$(ConfigurationName)"
   229 			IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
   230 			ConfigurationType="4"
   231 			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
   232 			UseOfMFC="0"
   233 			ATLMinimizesCRunTimeLibraryUsage="false"
   234 			>
   235 			<Tool
   236 				Name="VCPreBuildEventTool"
   237 			/>
   238 			<Tool
   239 				Name="VCCustomBuildTool"
   240 			/>
   241 			<Tool
   242 				Name="VCXMLDataGeneratorTool"
   243 			/>
   244 			<Tool
   245 				Name="VCWebServiceProxyGeneratorTool"
   246 			/>
   247 			<Tool
   248 				Name="VCMIDLTool"
   249 				TargetEnvironment="3"
   250 			/>
   251 			<Tool
   252 				Name="VCCLCompilerTool"
   253 				InlineFunctionExpansion="1"
   254 				AdditionalIncludeDirectories="..\..\include,..\..\include\SDL"
   255 				PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS,NO_STDIO_REDIRECT"
   256 				StringPooling="true"
   257 				RuntimeLibrary="2"
   258 				EnableFunctionLevelLinking="true"
   259 				UsePrecompiledHeader="0"
   260 				PrecompiledHeaderFile=".\Release_NOSTDIO/SDLmain.pch"
   261 				WarningLevel="3"
   262 				SuppressStartupBanner="true"
   263 				CompileAs="0"
   264 			/>
   265 			<Tool
   266 				Name="VCManagedResourceCompilerTool"
   267 			/>
   268 			<Tool
   269 				Name="VCResourceCompilerTool"
   270 			/>
   271 			<Tool
   272 				Name="VCPreLinkEventTool"
   273 			/>
   274 			<Tool
   275 				Name="VCLibrarianTool"
   276 				OutputFile="$(IntDir)\SDLmain.lib"
   277 			/>
   278 			<Tool
   279 				Name="VCALinkTool"
   280 			/>
   281 			<Tool
   282 				Name="VCXDCMakeTool"
   283 			/>
   284 			<Tool
   285 				Name="VCBscMakeTool"
   286 			/>
   287 			<Tool
   288 				Name="VCFxCopTool"
   289 			/>
   290 			<Tool
   291 				Name="VCPostBuildEventTool"
   292 			/>
   293 		</Configuration>
   294 		<Configuration
   295 			Name="Debug|Win32"
   296 			OutputDirectory=".\Debug"
   297 			IntermediateDirectory=".\Debug"
   298 			ConfigurationType="4"
   299 			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
   300 			UseOfMFC="0"
   301 			ATLMinimizesCRunTimeLibraryUsage="false"
   302 			>
   303 			<Tool
   304 				Name="VCPreBuildEventTool"
   305 				Description="Making sure basic SDL headers are in place..."
   306 				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"
   307 			/>
   308 			<Tool
   309 				Name="VCCustomBuildTool"
   310 			/>
   311 			<Tool
   312 				Name="VCXMLDataGeneratorTool"
   313 			/>
   314 			<Tool
   315 				Name="VCWebServiceProxyGeneratorTool"
   316 			/>
   317 			<Tool
   318 				Name="VCMIDLTool"
   319 			/>
   320 			<Tool
   321 				Name="VCCLCompilerTool"
   322 				Optimization="0"
   323 				AdditionalIncludeDirectories="..\..\include,..\..\include\SDL"
   324 				PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
   325 				RuntimeLibrary="2"
   326 				UsePrecompiledHeader="0"
   327 				WarningLevel="3"
   328 				SuppressStartupBanner="true"
   329 				DebugInformationFormat="1"
   330 				CompileAs="0"
   331 			/>
   332 			<Tool
   333 				Name="VCManagedResourceCompilerTool"
   334 			/>
   335 			<Tool
   336 				Name="VCResourceCompilerTool"
   337 			/>
   338 			<Tool
   339 				Name="VCPreLinkEventTool"
   340 			/>
   341 			<Tool
   342 				Name="VCLibrarianTool"
   343 				OutputFile=".\Debug\SDLmain.lib"
   344 				SuppressStartupBanner="true"
   345 			/>
   346 			<Tool
   347 				Name="VCALinkTool"
   348 			/>
   349 			<Tool
   350 				Name="VCXDCMakeTool"
   351 			/>
   352 			<Tool
   353 				Name="VCBscMakeTool"
   354 			/>
   355 			<Tool
   356 				Name="VCFxCopTool"
   357 			/>
   358 			<Tool
   359 				Name="VCPostBuildEventTool"
   360 			/>
   361 		</Configuration>
   362 		<Configuration
   363 			Name="Debug|x64"
   364 			OutputDirectory="$(PlatformName)\$(ConfigurationName)"
   365 			IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
   366 			ConfigurationType="4"
   367 			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
   368 			UseOfMFC="0"
   369 			ATLMinimizesCRunTimeLibraryUsage="false"
   370 			>
   371 			<Tool
   372 				Name="VCPreBuildEventTool"
   373 			/>
   374 			<Tool
   375 				Name="VCCustomBuildTool"
   376 			/>
   377 			<Tool
   378 				Name="VCXMLDataGeneratorTool"
   379 			/>
   380 			<Tool
   381 				Name="VCWebServiceProxyGeneratorTool"
   382 			/>
   383 			<Tool
   384 				Name="VCMIDLTool"
   385 				TargetEnvironment="3"
   386 			/>
   387 			<Tool
   388 				Name="VCCLCompilerTool"
   389 				Optimization="0"
   390 				AdditionalIncludeDirectories="..\..\include,..\..\include\SDL"
   391 				PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS"
   392 				RuntimeLibrary="2"
   393 				UsePrecompiledHeader="0"
   394 				PrecompiledHeaderFile=".\Debug/SDLmain.pch"
   395 				WarningLevel="3"
   396 				SuppressStartupBanner="true"
   397 				DebugInformationFormat="1"
   398 				CompileAs="0"
   399 			/>
   400 			<Tool
   401 				Name="VCManagedResourceCompilerTool"
   402 			/>
   403 			<Tool
   404 				Name="VCResourceCompilerTool"
   405 			/>
   406 			<Tool
   407 				Name="VCPreLinkEventTool"
   408 			/>
   409 			<Tool
   410 				Name="VCLibrarianTool"
   411 				OutputFile="$(IntDir)\SDLmain.lib"
   412 			/>
   413 			<Tool
   414 				Name="VCALinkTool"
   415 			/>
   416 			<Tool
   417 				Name="VCXDCMakeTool"
   418 			/>
   419 			<Tool
   420 				Name="VCBscMakeTool"
   421 			/>
   422 			<Tool
   423 				Name="VCFxCopTool"
   424 			/>
   425 			<Tool
   426 				Name="VCPostBuildEventTool"
   427 			/>
   428 		</Configuration>
   429 	</Configurations>
   430 	<References>
   431 	</References>
   432 	<Files>
   433 		<File
   434 			RelativePath="..\..\Src\Main\Win32\SDL_win32_main.c"
   435 			>
   436 		</File>
   437 	</Files>
   438 	<Globals>
   439 	</Globals>
   440 </VisualStudioProject>