added quotes around paths with macros in pre build events

This commit is contained in:
Austin Diviness 2015-08-14 14:43:09 -07:00
Родитель 6c93f9fd37
Коммит 69ac9c805e
2 изменённых файлов: 70 добавлений и 92 удалений

Просмотреть файл

@ -152,18 +152,15 @@
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
</Link>
<PreBuildEvent>
<Command>pushd $(ProjectDir)..\$(ItemsProjectName)
<Command>pushd "$(ProjectDir)..\$(ItemsProjectName)"
call codegen.cmd
if not exist $(TargetDir)Images mkdir $(TargetDir)Images
if not exist $(TargetDir)Images\fb_blank_profile_portrait.png copy Images\fb_blank_profile_portrait.png $(TargetDir)Images
if not exist "$(TargetDir)Images" mkdir "$(TargetDir)Images"
if not exist "$(TargetDir)Images\fb_blank_profile_portrait.png" copy Images\fb_blank_profile_portrait.png "$(TargetDir)Images"
popd
pushd $(ProjectDir)..\..\build\nuget
if not exist $(ProjectDir)..\..\.nuget\nuget.exe call download-nuget.cmd
if not exist $(ProjectDir)..\..\.nuget\nuget.exe copy nuget.exe $(ProjectDir)..\..\.nuget
popd
popd
</Command>
pushd "$(ProjectDir)..\..\build\nuget"
if not exist "$(ProjectDir)..\..\.nuget\nuget.exe" call download-nuget.cmd
if not exist "$(ProjectDir)..\..\.nuget\nuget.exe" copy nuget.exe "$(ProjectDir)..\..\.nuget"
popd</Command>
</PreBuildEvent>
<PostBuildEvent>
<Command>
@ -189,18 +186,15 @@ popd
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
</Link>
<PreBuildEvent>
<Command>pushd $(ProjectDir)..\$(ItemsProjectName)
<Command>pushd "$(ProjectDir)..\$(ItemsProjectName)"
call codegen.cmd
if not exist $(TargetDir)Images mkdir $(TargetDir)Images
if not exist $(TargetDir)Images\fb_blank_profile_portrait.png copy Images\fb_blank_profile_portrait.png $(TargetDir)Images
if not exist "$(TargetDir)Images" mkdir "$(TargetDir)Images"
if not exist "$(TargetDir)Images\fb_blank_profile_portrait.png" copy Images\fb_blank_profile_portrait.png "$(TargetDir)Images"
popd
pushd $(ProjectDir)..\..\build\nuget
if not exist $(ProjectDir)..\..\.nuget\nuget.exe call download-nuget.cmd
if not exist $(ProjectDir)..\..\.nuget\nuget.exe copy nuget.exe $(ProjectDir)..\..\.nuget
popd
popd
</Command>
pushd "$(ProjectDir)..\..\build\nuget"
if not exist "$(ProjectDir)..\..\.nuget\nuget.exe" call download-nuget.cmd
if not exist "$(ProjectDir)..\..\.nuget\nuget.exe" copy nuget.exe "$(ProjectDir)..\..\.nuget"
popd</Command>
</PreBuildEvent>
<PostBuildEvent>
<Command>
@ -226,18 +220,15 @@ popd
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
</Link>
<PreBuildEvent>
<Command>pushd $(ProjectDir)..\$(ItemsProjectName)
<Command>pushd "$(ProjectDir)..\$(ItemsProjectName)"
call codegen.cmd
if not exist $(TargetDir)Images mkdir $(TargetDir)Images
if not exist $(TargetDir)Images\fb_blank_profile_portrait.png copy Images\fb_blank_profile_portrait.png $(TargetDir)Images
if not exist "$(TargetDir)Images" mkdir "$(TargetDir)Images"
if not exist "$(TargetDir)Images\fb_blank_profile_portrait.png" copy Images\fb_blank_profile_portrait.png "$(TargetDir)Images"
popd
pushd $(ProjectDir)..\..\build\nuget
if not exist $(ProjectDir)..\..\.nuget\nuget.exe call download-nuget.cmd
if not exist $(ProjectDir)..\..\.nuget\nuget.exe copy nuget.exe $(ProjectDir)..\..\.nuget
popd
popd
</Command>
pushd "$(ProjectDir)..\..\build\nuget"
if not exist "$(ProjectDir)..\..\.nuget\nuget.exe" call download-nuget.cmd
if not exist "$(ProjectDir)..\..\.nuget\nuget.exe" copy nuget.exe "$(ProjectDir)..\..\.nuget"
popd</Command>
</PreBuildEvent>
<PostBuildEvent>
<Command>
@ -263,18 +254,15 @@ popd
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
</Link>
<PreBuildEvent>
<Command>pushd $(ProjectDir)..\$(ItemsProjectName)
<Command>pushd "$(ProjectDir)..\$(ItemsProjectName)"
call codegen.cmd
if not exist $(TargetDir)Images mkdir $(TargetDir)Images
if not exist $(TargetDir)Images\fb_blank_profile_portrait.png copy Images\fb_blank_profile_portrait.png $(TargetDir)Images
if not exist "$(TargetDir)Images" mkdir "$(TargetDir)Images"
if not exist "$(TargetDir)Images\fb_blank_profile_portrait.png" copy Images\fb_blank_profile_portrait.png "$(TargetDir)Images"
popd
pushd $(ProjectDir)..\..\build\nuget
if not exist $(ProjectDir)..\..\.nuget\nuget.exe call download-nuget.cmd
if not exist $(ProjectDir)..\..\.nuget\nuget.exe copy nuget.exe $(ProjectDir)..\..\.nuget
popd
popd
</Command>
pushd "$(ProjectDir)..\..\build\nuget"
if not exist "$(ProjectDir)..\..\.nuget\nuget.exe" call download-nuget.cmd
if not exist "$(ProjectDir)..\..\.nuget\nuget.exe" copy nuget.exe "$(ProjectDir)..\..\.nuget"
popd</Command>
</PreBuildEvent>
<PostBuildEvent>
<Command>
@ -306,18 +294,15 @@ popd
</Message>
</PostBuildEvent>
<PreBuildEvent>
<Command>pushd $(ProjectDir)..\$(ItemsProjectName)
<Command>pushd "$(ProjectDir)..\$(ItemsProjectName)"
call codegen.cmd
if not exist $(TargetDir)Images mkdir $(TargetDir)Images
if not exist $(TargetDir)Images\fb_blank_profile_portrait.png copy Images\fb_blank_profile_portrait.png $(TargetDir)Images
if not exist "$(TargetDir)Images" mkdir "$(TargetDir)Images"
if not exist "$(TargetDir)Images\fb_blank_profile_portrait.png" copy Images\fb_blank_profile_portrait.png "$(TargetDir)Images"
popd
pushd $(ProjectDir)..\..\build\nuget
if not exist $(ProjectDir)..\..\.nuget\nuget.exe call download-nuget.cmd
if not exist $(ProjectDir)..\..\.nuget\nuget.exe copy nuget.exe $(ProjectDir)..\..\.nuget
popd
popd
</Command>
pushd "$(ProjectDir)..\..\build\nuget"
if not exist "$(ProjectDir)..\..\.nuget\nuget.exe" call download-nuget.cmd
if not exist "$(ProjectDir)..\..\.nuget\nuget.exe" copy nuget.exe "$(ProjectDir)..\..\.nuget"
popd</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
@ -343,18 +328,15 @@ popd
</Message>
</PostBuildEvent>
<PreBuildEvent>
<Command>pushd $(ProjectDir)..\$(ItemsProjectName)
<Command>pushd "$(ProjectDir)..\$(ItemsProjectName)"
call codegen.cmd
if not exist $(TargetDir)Images mkdir $(TargetDir)Images
if not exist $(TargetDir)Images\fb_blank_profile_portrait.png copy Images\fb_blank_profile_portrait.png $(TargetDir)Images
if not exist "$(TargetDir)Images" mkdir "$(TargetDir)Images"
if not exist "$(TargetDir)Images\fb_blank_profile_portrait.png" copy Images\fb_blank_profile_portrait.png "$(TargetDir)Images"
popd
pushd $(ProjectDir)..\..\build\nuget
if not exist $(ProjectDir)..\..\.nuget\nuget.exe call download-nuget.cmd
if not exist $(ProjectDir)..\..\.nuget\nuget.exe copy nuget.exe $(ProjectDir)..\..\.nuget
popd
popd
</Command>
pushd "$(ProjectDir)..\..\build\nuget"
if not exist "$(ProjectDir)..\..\.nuget\nuget.exe" call download-nuget.cmd
if not exist "$(ProjectDir)..\..\.nuget\nuget.exe" copy nuget.exe "$(ProjectDir)..\..\.nuget"
popd</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />

Просмотреть файл

@ -98,16 +98,15 @@
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
</Link>
<PreBuildEvent>
<Command>pushd $(ProjectDir)..\$(ItemsProjectName)
<Command>pushd "$(ProjectDir)..\$(ItemsProjectName)"
call codegen.cmd
if not exist $(TargetDir)Images mkdir $(TargetDir)Images
if not exist $(TargetDir)Images\fb_blank_profile_portrait.png copy Images\fb_blank_profile_portrait.png $(TargetDir)Images
if not exist "$(TargetDir)Images" mkdir "$(TargetDir)Images"
if not exist "$(TargetDir)Images\fb_blank_profile_portrait.png" copy Images\fb_blank_profile_portrait.png "$(TargetDir)Images"
popd
pushd $(ProjectDir)..\..\build\nuget
if not exist $(ProjectDir)..\..\.nuget\nuget.exe call download-nuget.cmd
if not exist $(ProjectDir)..\..\.nuget\nuget.exe copy nuget.exe $(ProjectDir)..\..\.nuget
popd
</Command>
pushd "$(ProjectDir)..\..\build\nuget"
if not exist "$(ProjectDir)..\..\.nuget\nuget.exe" call download-nuget.cmd
if not exist "$(ProjectDir)..\..\.nuget\nuget.exe" copy nuget.exe "$(ProjectDir)..\..\.nuget"
popd</Command>
</PreBuildEvent>
<PostBuildEvent>
<Command>
@ -133,16 +132,15 @@ popd
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
</Link>
<PreBuildEvent>
<Command>pushd $(ProjectDir)..\$(ItemsProjectName)
<Command>pushd "$(ProjectDir)..\$(ItemsProjectName)"
call codegen.cmd
if not exist $(TargetDir)Images mkdir $(TargetDir)Images
if not exist $(TargetDir)Images\fb_blank_profile_portrait.png copy Images\fb_blank_profile_portrait.png $(TargetDir)Images
if not exist "$(TargetDir)Images" mkdir "$(TargetDir)Images"
if not exist "$(TargetDir)Images\fb_blank_profile_portrait.png" copy Images\fb_blank_profile_portrait.png "$(TargetDir)Images"
popd
pushd $(ProjectDir)..\..\build\nuget
if not exist $(ProjectDir)..\..\.nuget\nuget.exe call download-nuget.cmd
if not exist $(ProjectDir)..\..\.nuget\nuget.exe copy nuget.exe $(ProjectDir)..\..\.nuget
popd
</Command>
pushd "$(ProjectDir)..\..\build\nuget"
if not exist "$(ProjectDir)..\..\.nuget\nuget.exe" call download-nuget.cmd
if not exist "$(ProjectDir)..\..\.nuget\nuget.exe" copy nuget.exe "$(ProjectDir)..\..\.nuget"
popd</Command>
</PreBuildEvent>
<PostBuildEvent>
<Command>
@ -168,16 +166,15 @@ popd
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
</Link>
<PreBuildEvent>
<Command>pushd $(ProjectDir)..\$(ItemsProjectName)
<Command>pushd "$(ProjectDir)..\$(ItemsProjectName)"
call codegen.cmd
if not exist $(TargetDir)Images mkdir $(TargetDir)Images
if not exist $(TargetDir)Images\fb_blank_profile_portrait.png copy Images\fb_blank_profile_portrait.png $(TargetDir)Images
if not exist "$(TargetDir)Images" mkdir "$(TargetDir)Images"
if not exist "$(TargetDir)Images\fb_blank_profile_portrait.png" copy Images\fb_blank_profile_portrait.png "$(TargetDir)Images"
popd
pushd $(ProjectDir)..\..\build\nuget
if not exist $(ProjectDir)..\..\.nuget\nuget.exe call download-nuget.cmd
if not exist $(ProjectDir)..\..\.nuget\nuget.exe copy nuget.exe $(ProjectDir)..\..\.nuget
popd
</Command>
pushd "$(ProjectDir)..\..\build\nuget"
if not exist "$(ProjectDir)..\..\.nuget\nuget.exe" call download-nuget.cmd
if not exist "$(ProjectDir)..\..\.nuget\nuget.exe" copy nuget.exe "$(ProjectDir)..\..\.nuget"
popd</Command>
</PreBuildEvent>
<PostBuildEvent>
<Command>
@ -203,16 +200,15 @@ popd
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
</Link>
<PreBuildEvent>
<Command>pushd $(ProjectDir)..\$(ItemsProjectName)
<Command>pushd "$(ProjectDir)..\$(ItemsProjectName)"
call codegen.cmd
if not exist $(TargetDir)Images mkdir $(TargetDir)Images
if not exist $(TargetDir)Images\fb_blank_profile_portrait.png copy Images\fb_blank_profile_portrait.png $(TargetDir)Images
if not exist "$(TargetDir)Images" mkdir "$(TargetDir)Images"
if not exist "$(TargetDir)Images\fb_blank_profile_portrait.png" copy Images\fb_blank_profile_portrait.png "$(TargetDir)Images"
popd
pushd $(ProjectDir)..\..\build\nuget
if not exist $(ProjectDir)..\..\.nuget\nuget.exe call download-nuget.cmd
if not exist $(ProjectDir)..\..\.nuget\nuget.exe copy nuget.exe $(ProjectDir)..\..\.nuget
popd
</Command>
pushd "$(ProjectDir)..\..\build\nuget"
if not exist "$(ProjectDir)..\..\.nuget\nuget.exe" call download-nuget.cmd
if not exist "$(ProjectDir)..\..\.nuget\nuget.exe" copy nuget.exe "$(ProjectDir)..\..\.nuget"
popd</Command>
</PreBuildEvent>
<PostBuildEvent>
<Command>