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 bc28eed commit c9946ac
Showing 1 changed file with 60 additions and 60 deletions.
120 changes: 60 additions & 60 deletions SMP/libxvidcore.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@
<SubSystem>Windows</SubSystem>
</Lib>
<PostBuildEvent>
<Command>mkdir $(OutDir)\include
copy ..\src\xvid.h $(OutDir)\include
<Command>mkdir "$(OutDir)"\include
copy ..\src\xvid.h "$(OutDir)"\include
mkdir $(OutDir)\licenses
copy ..\LICENSE $(OutDir)\licenses\xvid.txt</Command>
</PostBuildEvent>
Expand All @@ -255,17 +255,17 @@ copy ..\LICENSE $(OutDir)\licenses\xvid.txt</Command>
<GenerateDebugInformation>true</GenerateDebugInformation>
</YASM>
<PreBuildEvent>
<Command>if exist $(OutDir)\include\xvid.h (
del $(OutDir)\include\xvid.h
<Command>if exist "$(OutDir)"\include\xvid.h (
del "$(OutDir)"\include\xvid.h
)</Command>
</PreBuildEvent>
<CustomBuildStep>
<Message>Custom Clean Step</Message>
</CustomBuildStep>
<CustomBuildStep>
<Outputs>force_clean</Outputs>
<Command>if exist $(OutDir)\include\xvid.h (
del /f /q $(OutDir)\include\xvid.h
<Command>if exist "$(OutDir)"\include\xvid.h (
del /f /q "$(OutDir)"\include\xvid.h
)
if exist $(OutDir)\licenses\xvid.txt (
del /f /q $(OutDir)\licenses\xvid.txt
Expand All @@ -292,8 +292,8 @@ del /f /q $(OutDir)\licenses\xvid.txt
<SubSystem>Windows</SubSystem>
</Lib>
<PostBuildEvent>
<Command>mkdir $(OutDir)\include
copy ..\src\xvid.h $(OutDir)\include
<Command>mkdir "$(OutDir)"\include
copy ..\src\xvid.h "$(OutDir)"\include
mkdir $(OutDir)\licenses
copy ..\LICENSE $(OutDir)\licenses\xvid.txt</Command>
</PostBuildEvent>
Expand All @@ -303,17 +303,17 @@ copy ..\LICENSE $(OutDir)\licenses\xvid.txt</Command>
<GenerateDebugInformation>true</GenerateDebugInformation>
</YASM>
<PreBuildEvent>
<Command>if exist $(OutDir)\include\xvid.h (
del $(OutDir)\include\xvid.h
<Command>if exist "$(OutDir)"\include\xvid.h (
del "$(OutDir)"\include\xvid.h
)</Command>
</PreBuildEvent>
<CustomBuildStep>
<Message>Custom Clean Step</Message>
</CustomBuildStep>
<CustomBuildStep>
<Outputs>force_clean</Outputs>
<Command>if exist $(OutDir)\include\xvid.h (
del /f /q $(OutDir)\include\xvid.h
<Command>if exist "$(OutDir)"\include\xvid.h (
del /f /q "$(OutDir)"\include\xvid.h
)
if exist $(OutDir)\licenses\xvid.txt (
del /f /q $(OutDir)\licenses\xvid.txt
Expand Down Expand Up @@ -345,8 +345,8 @@ del /f /q $(OutDir)\licenses\xvid.txt
<MinimumRequiredVersion>5.1</MinimumRequiredVersion>
</Link>
<PostBuildEvent>
<Command>mkdir $(OutDir)\include
copy ..\src\xvid.h $(OutDir)\include
<Command>mkdir "$(OutDir)"\include
copy ..\src\xvid.h "$(OutDir)"\include
mkdir $(OutDir)\licenses
copy ..\LICENSE $(OutDir)\licenses\xvid.txt</Command>
</PostBuildEvent>
Expand All @@ -356,17 +356,17 @@ copy ..\LICENSE $(OutDir)\licenses\xvid.txt</Command>
<GenerateDebugInformation>true</GenerateDebugInformation>
</YASM>
<PreBuildEvent>
<Command>if exist $(OutDir)\include\xvid.h (
del $(OutDir)\include\xvid.h
<Command>if exist "$(OutDir)"\include\xvid.h (
del "$(OutDir)"\include\xvid.h
)</Command>
</PreBuildEvent>
<CustomBuildStep>
<Message>Custom Clean Step</Message>
</CustomBuildStep>
<CustomBuildStep>
<Outputs>force_clean</Outputs>
<Command>if exist $(OutDir)\include\xvid.h (
del /f /q $(OutDir)\include\xvid.h
<Command>if exist "$(OutDir)"\include\xvid.h (
del /f /q "$(OutDir)"\include\xvid.h
)
if exist $(OutDir)\licenses\xvid.txt (
del /f /q $(OutDir)\licenses\xvid.txt
Expand Down Expand Up @@ -397,8 +397,8 @@ del /f /q $(OutDir)\licenses\xvid.txt
<MinimumRequiredVersion>6.0</MinimumRequiredVersion>
</Link>
<PostBuildEvent>
<Command>mkdir $(OutDir)\include
copy ..\src\xvid.h $(OutDir)\include
<Command>mkdir "$(OutDir)"\include
copy ..\src\xvid.h "$(OutDir)"\include
mkdir $(OutDir)\licenses
copy ..\LICENSE $(OutDir)\licenses\xvid.txt</Command>
</PostBuildEvent>
Expand All @@ -408,17 +408,17 @@ copy ..\LICENSE $(OutDir)\licenses\xvid.txt</Command>
<GenerateDebugInformation>true</GenerateDebugInformation>
</YASM>
<PreBuildEvent>
<Command>if exist $(OutDir)\include\xvid.h (
del $(OutDir)\include\xvid.h
<Command>if exist "$(OutDir)"\include\xvid.h (
del "$(OutDir)"\include\xvid.h
)</Command>
</PreBuildEvent>
<CustomBuildStep>
<Message>Custom Clean Step</Message>
</CustomBuildStep>
<CustomBuildStep>
<Outputs>force_clean</Outputs>
<Command>if exist $(OutDir)\include\xvid.h (
del /f /q $(OutDir)\include\xvid.h
<Command>if exist "$(OutDir)"\include\xvid.h (
del /f /q "$(OutDir)"\include\xvid.h
)
if exist $(OutDir)\licenses\xvid.txt (
del /f /q $(OutDir)\licenses\xvid.txt
Expand Down Expand Up @@ -454,8 +454,8 @@ del /f /q $(OutDir)\licenses\xvid.txt
<SubSystem>Windows</SubSystem>
</Lib>
<PostBuildEvent>
<Command>mkdir $(OutDir)\include
copy ..\src\xvid.h $(OutDir)\include
<Command>mkdir "$(OutDir)"\include
copy ..\src\xvid.h "$(OutDir)"\include
mkdir $(OutDir)\licenses
copy ..\LICENSE $(OutDir)\licenses\xvid.txt</Command>
</PostBuildEvent>
Expand All @@ -464,17 +464,17 @@ copy ..\LICENSE $(OutDir)\licenses\xvid.txt</Command>
<PreprocessorDefinitions>WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</YASM>
<PreBuildEvent>
<Command>if exist $(OutDir)\include\xvid.h (
del $(OutDir)\include\xvid.h
<Command>if exist "$(OutDir)"\include\xvid.h (
del "$(OutDir)"\include\xvid.h
)</Command>
</PreBuildEvent>
<CustomBuildStep>
<Message>Custom Clean Step</Message>
</CustomBuildStep>
<CustomBuildStep>
<Outputs>force_clean</Outputs>
<Command>if exist $(OutDir)\include\xvid.h (
del /f /q $(OutDir)\include\xvid.h
<Command>if exist "$(OutDir)"\include\xvid.h (
del /f /q "$(OutDir)"\include\xvid.h
)
if exist $(OutDir)\licenses\xvid.txt (
del /f /q $(OutDir)\licenses\xvid.txt
Expand Down Expand Up @@ -510,8 +510,8 @@ del /f /q $(OutDir)\licenses\xvid.txt
<SubSystem>Windows</SubSystem>
</Lib>
<PostBuildEvent>
<Command>mkdir $(OutDir)\include
copy ..\src\xvid.h $(OutDir)\include
<Command>mkdir "$(OutDir)"\include
copy ..\src\xvid.h "$(OutDir)"\include
mkdir $(OutDir)\licenses
copy ..\LICENSE $(OutDir)\licenses\xvid.txt</Command>
</PostBuildEvent>
Expand All @@ -520,17 +520,17 @@ copy ..\LICENSE $(OutDir)\licenses\xvid.txt</Command>
<PreprocessorDefinitions>WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</YASM>
<PreBuildEvent>
<Command>if exist $(OutDir)\include\xvid.h (
del $(OutDir)\include\xvid.h
<Command>if exist "$(OutDir)"\include\xvid.h (
del "$(OutDir)"\include\xvid.h
)</Command>
</PreBuildEvent>
<CustomBuildStep>
<Message>Custom Clean Step</Message>
</CustomBuildStep>
<CustomBuildStep>
<Outputs>force_clean</Outputs>
<Command>if exist $(OutDir)\include\xvid.h (
del /f /q $(OutDir)\include\xvid.h
<Command>if exist "$(OutDir)"\include\xvid.h (
del /f /q "$(OutDir)"\include\xvid.h
)
if exist $(OutDir)\licenses\xvid.txt (
del /f /q $(OutDir)\licenses\xvid.txt
Expand Down Expand Up @@ -566,8 +566,8 @@ del /f /q $(OutDir)\licenses\xvid.txt
<SubSystem>Windows</SubSystem>
</Lib>
<PostBuildEvent>
<Command>mkdir $(OutDir)\include
copy ..\src\xvid.h $(OutDir)\include
<Command>mkdir "$(OutDir)"\include
copy ..\src\xvid.h "$(OutDir)"\include
mkdir $(OutDir)\licenses
copy ..\LICENSE $(OutDir)\licenses\xvid.txt</Command>
</PostBuildEvent>
Expand All @@ -576,17 +576,17 @@ copy ..\LICENSE $(OutDir)\licenses\xvid.txt</Command>
<PreprocessorDefinitions>WINDOWS;ARCH_IS_X86_64;NO_PREFIX;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</YASM>
<PreBuildEvent>
<Command>if exist $(OutDir)\include\xvid.h (
del $(OutDir)\include\xvid.h
<Command>if exist "$(OutDir)"\include\xvid.h (
del "$(OutDir)"\include\xvid.h
)</Command>
</PreBuildEvent>
<CustomBuildStep>
<Message>Custom Clean Step</Message>
</CustomBuildStep>
<CustomBuildStep>
<Outputs>force_clean</Outputs>
<Command>if exist $(OutDir)\include\xvid.h (
del /f /q $(OutDir)\include\xvid.h
<Command>if exist "$(OutDir)"\include\xvid.h (
del /f /q "$(OutDir)"\include\xvid.h
)
if exist $(OutDir)\licenses\xvid.txt (
del /f /q $(OutDir)\licenses\xvid.txt
Expand Down Expand Up @@ -622,8 +622,8 @@ del /f /q $(OutDir)\licenses\xvid.txt
<SubSystem>Windows</SubSystem>
</Lib>
<PostBuildEvent>
<Command>mkdir $(OutDir)\include
copy ..\src\xvid.h $(OutDir)\include
<Command>mkdir "$(OutDir)"\include
copy ..\src\xvid.h "$(OutDir)"\include
mkdir $(OutDir)\licenses
copy ..\LICENSE $(OutDir)\licenses\xvid.txt</Command>
</PostBuildEvent>
Expand All @@ -632,17 +632,17 @@ copy ..\LICENSE $(OutDir)\licenses\xvid.txt</Command>
<PreprocessorDefinitions>WINDOWS;ARCH_IS_X86_64;NO_PREFIX;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</YASM>
<PreBuildEvent>
<Command>if exist $(OutDir)\include\xvid.h (
del $(OutDir)\include\xvid.h
<Command>if exist "$(OutDir)"\include\xvid.h (
del "$(OutDir)"\include\xvid.h
)</Command>
</PreBuildEvent>
<CustomBuildStep>
<Message>Custom Clean Step</Message>
</CustomBuildStep>
<CustomBuildStep>
<Outputs>force_clean</Outputs>
<Command>if exist $(OutDir)\include\xvid.h (
del /f /q $(OutDir)\include\xvid.h
<Command>if exist "$(OutDir)"\include\xvid.h (
del /f /q "$(OutDir)"\include\xvid.h
)
if exist $(OutDir)\licenses\xvid.txt (
del /f /q $(OutDir)\licenses\xvid.txt
Expand Down Expand Up @@ -682,8 +682,8 @@ del /f /q $(OutDir)\licenses\xvid.txt
<MinimumRequiredVersion>5.1</MinimumRequiredVersion>
</Link>
<PostBuildEvent>
<Command>mkdir $(OutDir)\include
copy ..\src\xvid.h $(OutDir)\include
<Command>mkdir "$(OutDir)"\include
copy ..\src\xvid.h "$(OutDir)"\include
mkdir $(OutDir)\licenses
copy ..\LICENSE $(OutDir)\licenses\xvid.txt</Command>
</PostBuildEvent>
Expand All @@ -692,17 +692,17 @@ copy ..\LICENSE $(OutDir)\licenses\xvid.txt</Command>
<PreprocessorDefinitions>WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</YASM>
<PreBuildEvent>
<Command>if exist $(OutDir)\include\xvid.h (
del $(OutDir)\include\xvid.h
<Command>if exist "$(OutDir)"\include\xvid.h (
del "$(OutDir)"\include\xvid.h
)</Command>
</PreBuildEvent>
<CustomBuildStep>
<Message>Custom Clean Step</Message>
</CustomBuildStep>
<CustomBuildStep>
<Outputs>force_clean</Outputs>
<Command>if exist $(OutDir)\include\xvid.h (
del /f /q $(OutDir)\include\xvid.h
<Command>if exist "$(OutDir)"\include\xvid.h (
del /f /q "$(OutDir)"\include\xvid.h
)
if exist $(OutDir)\licenses\xvid.txt (
del /f /q $(OutDir)\licenses\xvid.txt
Expand Down Expand Up @@ -741,8 +741,8 @@ del /f /q $(OutDir)\licenses\xvid.txt
<MinimumRequiredVersion>6.0</MinimumRequiredVersion>
</Link>
<PostBuildEvent>
<Command>mkdir $(OutDir)\include
copy ..\src\xvid.h $(OutDir)\include
<Command>mkdir "$(OutDir)"\include
copy ..\src\xvid.h "$(OutDir)"\include
mkdir $(OutDir)\licenses
copy ..\LICENSE $(OutDir)\licenses\xvid.txt</Command>
</PostBuildEvent>
Expand All @@ -751,17 +751,17 @@ copy ..\LICENSE $(OutDir)\licenses\xvid.txt</Command>
<PreprocessorDefinitions>WINDOWS;ARCH_IS_X86_64;NO_PREFIX;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</YASM>
<PreBuildEvent>
<Command>if exist $(OutDir)\include\xvid.h (
del $(OutDir)\include\xvid.h
<Command>if exist "$(OutDir)"\include\xvid.h (
del "$(OutDir)"\include\xvid.h
)</Command>
</PreBuildEvent>
<CustomBuildStep>
<Message>Custom Clean Step</Message>
</CustomBuildStep>
<CustomBuildStep>
<Outputs>force_clean</Outputs>
<Command>if exist $(OutDir)\include\xvid.h (
del /f /q $(OutDir)\include\xvid.h
<Command>if exist "$(OutDir)"\include\xvid.h (
del /f /q "$(OutDir)"\include\xvid.h
)
if exist $(OutDir)\licenses\xvid.txt (
del /f /q $(OutDir)\licenses\xvid.txt
Expand Down

0 comments on commit c9946ac

Please sign in to comment.