Skip to content

Commit

Permalink
project: Fix build events when OutDir contains spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sibras committed Aug 27, 2017
1 parent 7db8797 commit 04ef451
Showing 1 changed file with 60 additions and 60 deletions.
120 changes: 60 additions & 60 deletions SMP/libbz2.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -243,19 +243,19 @@
<OutputFile>$(OutDir)\lib\x86\$(TargetName)$(TargetExt)</OutputFile>
</Lib>
<PostBuildEvent>
<Command>mkdir $(OutDir)\include
copy ..\bzlib.h $(OutDir)\include
<Command>mkdir "$(OutDir)"\include
copy ..\bzlib.h "$(OutDir)"\include
mkdir $(OutDir)\licenses
copy ..\LICENSE $(OutDir)\licenses\bzip2.txt</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>if exist $(OutDir)\include\bzlib.h (
del $(OutDir)\include\bzlib.h
<Command>if exist "$(OutDir)"\include\bzlib.h (
del "$(OutDir)"\include\bzlib.h
)</Command>
</PreBuildEvent>
<CustomBuildStep>
<Command>if exist $(OutDir)\include\bzlib.h (
del /f /q $(OutDir)\include\bzlib.h
<Command>if exist "$(OutDir)"\include\bzlib.h (
del /f /q "$(OutDir)"\include\bzlib.h
)
if exist $(OutDir)\licenses\bzip2.txt (
del /f /q $(OutDir)\licenses\bzip2.txt
Expand Down Expand Up @@ -286,19 +286,19 @@ del /f /q $(OutDir)\licenses\bzip2.txt
<OutputFile>$(OutDir)\lib\x64\$(TargetName)$(TargetExt)</OutputFile>
</Lib>
<PostBuildEvent>
<Command>mkdir $(OutDir)\include
copy ..\bzlib.h $(OutDir)\include
<Command>mkdir "$(OutDir)"\include
copy ..\bzlib.h "$(OutDir)"\include
mkdir $(OutDir)\licenses
copy ..\LICENSE $(OutDir)\licenses\bzip2.txt</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>if exist $(OutDir)\include\bzlib.h (
del $(OutDir)\include\bzlib.h
<Command>if exist "$(OutDir)"\include\bzlib.h (
del "$(OutDir)"\include\bzlib.h
)</Command>
</PreBuildEvent>
<CustomBuildStep>
<Command>if exist $(OutDir)\include\bzlib.h (
del /f /q $(OutDir)\include\bzlib.h
<Command>if exist "$(OutDir)"\include\bzlib.h (
del /f /q "$(OutDir)"\include\bzlib.h
)
if exist $(OutDir)\licenses\bzip2.txt (
del /f /q $(OutDir)\licenses\bzip2.txt
Expand Down Expand Up @@ -332,19 +332,19 @@ del /f /q $(OutDir)\licenses\bzip2.txt
<MinimumRequiredVersion>5.1</MinimumRequiredVersion>
</Link>
<PostBuildEvent>
<Command>mkdir $(OutDir)\include
copy ..\bzlib.h $(OutDir)\include
<Command>mkdir "$(OutDir)"\include
copy ..\bzlib.h "$(OutDir)"\include
mkdir $(OutDir)\licenses
copy ..\LICENSE $(OutDir)\licenses\bzip2.txt</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>if exist $(OutDir)\include\bzlib.h (
del $(OutDir)\include\bzlib.h
<Command>if exist "$(OutDir)"\include\bzlib.h (
del "$(OutDir)"\include\bzlib.h
)</Command>
</PreBuildEvent>
<CustomBuildStep>
<Command>if exist $(OutDir)\include\bzlib.h (
del /f /q $(OutDir)\include\bzlib.h
<Command>if exist "$(OutDir)"\include\bzlib.h (
del /f /q "$(OutDir)"\include\bzlib.h
)
if exist $(OutDir)\licenses\bzip2.txt (
del /f /q $(OutDir)\licenses\bzip2.txt
Expand Down Expand Up @@ -377,19 +377,19 @@ del /f /q $(OutDir)\licenses\bzip2.txt
<MinimumRequiredVersion>6.0</MinimumRequiredVersion>
</Link>
<PostBuildEvent>
<Command>mkdir $(OutDir)\include
copy ..\bzlib.h $(OutDir)\include
<Command>mkdir "$(OutDir)"\include
copy ..\bzlib.h "$(OutDir)"\include
mkdir $(OutDir)\licenses
copy ..\LICENSE $(OutDir)\licenses\bzip2.txt</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>if exist $(OutDir)\include\bzlib.h (
del $(OutDir)\include\bzlib.h
<Command>if exist "$(OutDir)"\include\bzlib.h (
del "$(OutDir)"\include\bzlib.h
)</Command>
</PreBuildEvent>
<CustomBuildStep>
<Command>if exist $(OutDir)\include\bzlib.h (
del /f /q $(OutDir)\include\bzlib.h
<Command>if exist "$(OutDir)"\include\bzlib.h (
del /f /q "$(OutDir)"\include\bzlib.h
)
if exist $(OutDir)\licenses\bzip2.txt (
del /f /q $(OutDir)\licenses\bzip2.txt
Expand Down Expand Up @@ -431,19 +431,19 @@ del /f /q $(OutDir)\licenses\bzip2.txt
<OutputFile>$(OutDir)\lib\x86\$(TargetName)$(TargetExt)</OutputFile>
</Lib>
<PostBuildEvent>
<Command>mkdir $(OutDir)\include
copy ..\bzlib.h $(OutDir)\include
<Command>mkdir "$(OutDir)"\include
copy ..\bzlib.h "$(OutDir)"\include
mkdir $(OutDir)\licenses
copy ..\LICENSE $(OutDir)\licenses\bzip2.txt</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>if exist $(OutDir)\include\bzlib.h (
del $(OutDir)\include\bzlib.h
<Command>if exist "$(OutDir)"\include\bzlib.h (
del "$(OutDir)"\include\bzlib.h
)</Command>
</PreBuildEvent>
<CustomBuildStep>
<Command>if exist $(OutDir)\include\bzlib.h (
del /f /q $(OutDir)\include\bzlib.h
<Command>if exist "$(OutDir)"\include\bzlib.h (
del /f /q "$(OutDir)"\include\bzlib.h
)
if exist $(OutDir)\licenses\bzip2.txt (
del /f /q $(OutDir)\licenses\bzip2.txt
Expand Down Expand Up @@ -485,19 +485,19 @@ del /f /q $(OutDir)\licenses\bzip2.txt
<OutputFile>$(OutDir)\lib\x86\$(TargetName)$(TargetExt)</OutputFile>
</Lib>
<PostBuildEvent>
<Command>mkdir $(OutDir)\include
copy ..\bzlib.h $(OutDir)\include
<Command>mkdir "$(OutDir)"\include
copy ..\bzlib.h "$(OutDir)"\include
mkdir $(OutDir)\licenses
copy ..\LICENSE $(OutDir)\licenses\bzip2.txt</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>if exist $(OutDir)\include\bzlib.h (
del $(OutDir)\include\bzlib.h
<Command>if exist "$(OutDir)"\include\bzlib.h (
del "$(OutDir)"\include\bzlib.h
)</Command>
</PreBuildEvent>
<CustomBuildStep>
<Command>if exist $(OutDir)\include\bzlib.h (
del /f /q $(OutDir)\include\bzlib.h
<Command>if exist "$(OutDir)"\include\bzlib.h (
del /f /q "$(OutDir)"\include\bzlib.h
)
if exist $(OutDir)\licenses\bzip2.txt (
del /f /q $(OutDir)\licenses\bzip2.txt
Expand Down Expand Up @@ -539,19 +539,19 @@ del /f /q $(OutDir)\licenses\bzip2.txt
<OutputFile>$(OutDir)\lib\x64\$(TargetName)$(TargetExt)</OutputFile>
</Lib>
<PostBuildEvent>
<Command>mkdir $(OutDir)\include
copy ..\bzlib.h $(OutDir)\include
<Command>mkdir "$(OutDir)"\include
copy ..\bzlib.h "$(OutDir)"\include
mkdir $(OutDir)\licenses
copy ..\LICENSE $(OutDir)\licenses\bzip2.txt</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>if exist $(OutDir)\include\bzlib.h (
del $(OutDir)\include\bzlib.h
<Command>if exist "$(OutDir)"\include\bzlib.h (
del "$(OutDir)"\include\bzlib.h
)</Command>
</PreBuildEvent>
<CustomBuildStep>
<Command>if exist $(OutDir)\include\bzlib.h (
del /f /q $(OutDir)\include\bzlib.h
<Command>if exist "$(OutDir)"\include\bzlib.h (
del /f /q "$(OutDir)"\include\bzlib.h
)
if exist $(OutDir)\licenses\bzip2.txt (
del /f /q $(OutDir)\licenses\bzip2.txt
Expand Down Expand Up @@ -593,19 +593,19 @@ del /f /q $(OutDir)\licenses\bzip2.txt
<OutputFile>$(OutDir)\lib\x64\$(TargetName)$(TargetExt)</OutputFile>
</Lib>
<PostBuildEvent>
<Command>mkdir $(OutDir)\include
copy ..\bzlib.h $(OutDir)\include
<Command>mkdir "$(OutDir)"\include
copy ..\bzlib.h "$(OutDir)"\include
mkdir $(OutDir)\licenses
copy ..\LICENSE $(OutDir)\licenses\bzip2.txt</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>if exist $(OutDir)\include\bzlib.h (
del $(OutDir)\include\bzlib.h
<Command>if exist "$(OutDir)"\include\bzlib.h (
del "$(OutDir)"\include\bzlib.h
)</Command>
</PreBuildEvent>
<CustomBuildStep>
<Command>if exist $(OutDir)\include\bzlib.h (
del /f /q $(OutDir)\include\bzlib.h
<Command>if exist "$(OutDir)"\include\bzlib.h (
del /f /q "$(OutDir)"\include\bzlib.h
)
if exist $(OutDir)\licenses\bzip2.txt (
del /f /q $(OutDir)\licenses\bzip2.txt
Expand Down Expand Up @@ -647,19 +647,19 @@ del /f /q $(OutDir)\licenses\bzip2.txt
<MinimumRequiredVersion>5.1</MinimumRequiredVersion>
</Link>
<PostBuildEvent>
<Command>mkdir $(OutDir)\include
copy ..\bzlib.h $(OutDir)\include
<Command>mkdir "$(OutDir)"\include
copy ..\bzlib.h "$(OutDir)"\include
mkdir $(OutDir)\licenses
copy ..\LICENSE $(OutDir)\licenses\bzip2.txt</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>if exist $(OutDir)\include\bzlib.h (
del $(OutDir)\include\bzlib.h
<Command>if exist "$(OutDir)"\include\bzlib.h (
del "$(OutDir)"\include\bzlib.h
)</Command>
</PreBuildEvent>
<CustomBuildStep>
<Command>if exist $(OutDir)\include\bzlib.h (
del /f /q $(OutDir)\include\bzlib.h
<Command>if exist "$(OutDir)"\include\bzlib.h (
del /f /q "$(OutDir)"\include\bzlib.h
)
if exist $(OutDir)\licenses\bzip2.txt (
del /f /q $(OutDir)\licenses\bzip2.txt
Expand Down Expand Up @@ -700,19 +700,19 @@ del /f /q $(OutDir)\licenses\bzip2.txt
<MinimumRequiredVersion>6.0</MinimumRequiredVersion>
</Link>
<PostBuildEvent>
<Command>mkdir $(OutDir)\include
copy ..\bzlib.h $(OutDir)\include
<Command>mkdir "$(OutDir)"\include
copy ..\bzlib.h "$(OutDir)"\include
mkdir $(OutDir)\licenses
copy ..\LICENSE $(OutDir)\licenses\bzip2.txt</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>if exist $(OutDir)\include\bzlib.h (
del $(OutDir)\include\bzlib.h
<Command>if exist "$(OutDir)"\include\bzlib.h (
del "$(OutDir)"\include\bzlib.h
)</Command>
</PreBuildEvent>
<CustomBuildStep>
<Command>if exist $(OutDir)\include\bzlib.h (
del /f /q $(OutDir)\include\bzlib.h
<Command>if exist "$(OutDir)"\include\bzlib.h (
del /f /q "$(OutDir)"\include\bzlib.h
)
if exist $(OutDir)\licenses\bzip2.txt (
del /f /q $(OutDir)\licenses\bzip2.txt
Expand Down

0 comments on commit 04ef451

Please sign in to comment.