[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:
parent
42e617238a
commit
cf55313650
|
@ -11,7 +11,7 @@
|
||||||
or with different appropriate switches. It also works with Visual Studio.
|
or with different appropriate switches. It also works with Visual Studio.
|
||||||
Additional customization can be made in `freetype.user.props`.
|
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">
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
<ProjectConfiguration Include="Debug|Win32">
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
<Configuration>Debug</Configuration>
|
<Configuration>Debug</Configuration>
|
||||||
|
@ -508,7 +508,7 @@
|
||||||
<DlgSrc Include="..\..\..\subprojects\dlg\src\dlg\dlg.c" />
|
<DlgSrc Include="..\..\..\subprojects\dlg\src\dlg\dlg.c" />
|
||||||
<DlgDst Include="..\..\..\src\dlg\dlg.c" />
|
<DlgDst Include="..\..\..\src\dlg\dlg.c" />
|
||||||
</ItemGroup>
|
</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" />
|
<Copy SourceFiles="@(DlgSrc)" DestinationFiles="@(DlgDst)" SkipUnchangedFiles="true" />
|
||||||
</Target>
|
</Target>
|
||||||
<Target Name="AfterBuild">
|
<Target Name="AfterBuild">
|
||||||
|
|
Loading…
Reference in New Issue