Skip to content

Commit

Permalink
Make the build fail if any of the xcopy calls fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Orderud committed Feb 6, 2018
1 parent 5d744d3 commit 213c6eb
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions Image3dAPI/Image3dAPI.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@
<PostBuildEvent>
<Command>TlbImp.exe /machine:x86 "$(OutDir)$(TargetName).tlb" /out:$(OutDir)$(TargetName).dll
:: Copy interface definitions to shared project dir
xcopy /Y /D "$(IntDir)*.h" "$(ProjectDir)"
xcopy /Y /D "$(IntDir)*.c" "$(ProjectDir)"
xcopy /Y /D "$(IntDir)*.h" "$(ProjectDir)" || exit /b 1
xcopy /Y /D "$(IntDir)*.c" "$(ProjectDir)" || exit /b 1
:: Copy type libraries to shared platform folder
xcopy /Y /D "$(OutDir)$(TargetName).tlb" "$(SolutionDir)$(Platform)"
xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)"</Command>
xcopy /Y /D "$(OutDir)$(TargetName).tlb" "$(SolutionDir)$(Platform)" || exit /b 1
xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)" || exit /b 1</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
Expand All @@ -114,11 +114,11 @@ xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)"</Command>
<PostBuildEvent>
<Command>TlbImp.exe /machine:x64 "$(OutDir)$(TargetName).tlb" /out:$(OutDir)$(TargetName).dll
:: Copy interface definitions to shared project dir
xcopy /Y /D "$(IntDir)*.h" "$(ProjectDir)"
xcopy /Y /D "$(IntDir)*.c" "$(ProjectDir)"
xcopy /Y /D "$(IntDir)*.h" "$(ProjectDir)" || exit /b 1
xcopy /Y /D "$(IntDir)*.c" "$(ProjectDir)" || exit /b 1
:: Copy type libraries to shared platform folder
xcopy /Y /D "$(OutDir)$(TargetName).tlb" "$(SolutionDir)$(Platform)"
xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)"</Command>
xcopy /Y /D "$(OutDir)$(TargetName).tlb" "$(SolutionDir)$(Platform)" || exit /b 1
xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)" || exit /b 1</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
Expand All @@ -142,11 +142,11 @@ xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)"</Command>
<PostBuildEvent>
<Command>TlbImp.exe /machine:x86 "$(OutDir)$(TargetName).tlb" /out:$(OutDir)$(TargetName).dll
:: Copy interface definitions to shared project dir
xcopy /Y /D "$(IntDir)*.h" "$(ProjectDir)"
xcopy /Y /D "$(IntDir)*.c" "$(ProjectDir)"
xcopy /Y /D "$(IntDir)*.h" "$(ProjectDir)" || exit /b 1
xcopy /Y /D "$(IntDir)*.c" "$(ProjectDir)" || exit /b 1
:: Copy type libraries to shared platform folder
xcopy /Y /D "$(OutDir)$(TargetName).tlb" "$(SolutionDir)$(Platform)"
xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)"</Command>
xcopy /Y /D "$(OutDir)$(TargetName).tlb" "$(SolutionDir)$(Platform)" || exit /b 1
xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)" || exit /b 1</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
Expand All @@ -170,11 +170,11 @@ xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)"</Command>
<PostBuildEvent>
<Command>TlbImp.exe /machine:x64 "$(OutDir)$(TargetName).tlb" /out:$(OutDir)$(TargetName).dll
:: Copy interface definitions to shared project dir
xcopy /Y /D "$(IntDir)*.h" "$(ProjectDir)"
xcopy /Y /D "$(IntDir)*.c" "$(ProjectDir)"
xcopy /Y /D "$(IntDir)*.h" "$(ProjectDir)" || exit /b 1
xcopy /Y /D "$(IntDir)*.c" "$(ProjectDir)" || exit /b 1
:: Copy type libraries to shared platform folder
xcopy /Y /D "$(OutDir)$(TargetName).tlb" "$(SolutionDir)$(Platform)"
xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)"</Command>
xcopy /Y /D "$(OutDir)$(TargetName).tlb" "$(SolutionDir)$(Platform)" || exit /b 1
xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)" || exit /b 1</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
Expand Down

0 comments on commit 213c6eb

Please sign in to comment.