shithub: freetype+ttf2subf

Download patch

ref: cf55313650c443dc5d31786d02bec65a4e70ecc8
parent: 42e617238abdf39c68b77a438c3a8ff57e3ca92b
author: Alexei Podtelezhnikov <apodtele@gmail.com>
date: Fri Nov 12 17:27:18 EST 2021

[builds/windows] Improve `DlgCopy` target.

Fixes #1113.

* builds/windows/vc2010/freetype.vcxproj: Run `DlgCopy` conditionally
and decouple it from `Build`.

git/fs: mount .git/fs: mount/attach disallowed
--- 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">