[builds/windows] Improve `DlgCopy` target.

Fixes #1113.

* builds/windows/vc2010/freetype.vcxproj: Run `DlgCopy` conditionally
and decouple it from `Build`.
This commit is contained in:
Alexei Podtelezhnikov 2021-11-12 22:27:18 -05:00
parent 42e617238a
commit cf55313650
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
or with different appropriate switches. It also works with Visual Studio.
Additional customization can be made in `freetype.user.props`.
-->
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project DefaultTargets="DlgCopy;Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
@ -508,7 +508,7 @@
<DlgSrc Include="..\..\..\subprojects\dlg\src\dlg\dlg.c" />
<DlgDst Include="..\..\..\src\dlg\dlg.c" />
</ItemGroup>
<Target Name="DlgCopy" Inputs="@(DlgSrc)" Outputs="@(DlgDst)" BeforeTargets="PrepareForBuild">
<Target Name="DlgCopy" Inputs="@(DlgSrc)" Outputs="@(DlgDst)" Condition="Exists('..\..\..\subprojects\dlg\.git')">
<Copy SourceFiles="@(DlgSrc)" DestinationFiles="@(DlgDst)" SkipUnchangedFiles="true" />
</Target>
<Target Name="AfterBuild">