summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2021-11-12 22:27:18 -0500
committerAlexei Podtelezhnikov <apodtele@gmail.com>2021-11-12 22:27:18 -0500
commitcf55313650c443dc5d31786d02bec65a4e70ecc8 (patch)
tree3bf1283d875d738c610c7f239b29224693b79023
parent42e617238abdf39c68b77a438c3a8ff57e3ca92b (diff)
downloadfreetype2-cf55313650c443dc5d31786d02bec65a4e70ecc8.tar.gz
[builds/windows] Improve `DlgCopy` target.
Fixes #1113. * builds/windows/vc2010/freetype.vcxproj: Run `DlgCopy` conditionally and decouple it from `Build`.
-rw-r--r--builds/windows/vc2010/freetype.vcxproj4
1 files changed, 2 insertions, 2 deletions
diff --git a/builds/windows/vc2010/freetype.vcxproj b/builds/windows/vc2010/freetype.vcxproj
index aa8243fab..dfe773548 100644
--- a/builds/windows/vc2010/freetype.vcxproj
+++ b/builds/windows/vc2010/freetype.vcxproj
@@ -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">