-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4fe3729
commit 707280b
Showing
1 changed file
with
13 additions
and
11 deletions.
There are no files selected for viewing
24 changes: 13 additions & 11 deletions
24
nuget/OpenSans/Uno.Fonts.OpenSans/buildTransitive/net7.0/Uno.Fonts.OpenSans.targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
<Project> | ||
<Target Name="UnoRemoveUnusedOpenSans" AfterTargets="_UnoAddLibraryAssets"> | ||
<!-- Static font files contain dash in the name, so that's what we remove. --> | ||
<!-- For platforms that already support variable fonts, we remove the static font files. --> | ||
<_AllChildProjectItemsWithTargetPath | ||
Remove="$(MSBuildThisFileDirectory)..\..\lib\net7.0\Uno.Fonts.OpenSans\Fonts\**-**.ttf" | ||
Condition="'$(SupportsFontManifest)'!='true'" /> | ||
|
||
<!-- The variable font file is exactly named OpenSans.ttf --> | ||
<!-- For platforms that don't support variable fonts, we remove that file --> | ||
<_AllChildProjectItemsWithTargetPath | ||
Remove="$(MSBuildThisFileDirectory)..\..\lib\net7.0\Uno.Fonts.OpenSans\Fonts\OpenSans.ttf" | ||
Condition="'$(SupportsFontManifest)'=='true'" /> | ||
<ItemGroup> | ||
<!-- Static font files contain dash in the name, so that's what we remove. --> | ||
<!-- For platforms that already support variable fonts, we remove the static font files. --> | ||
<_AllChildProjectItemsWithTargetPath | ||
Remove="$(MSBuildThisFileDirectory)..\..\lib\net7.0\Uno.Fonts.OpenSans\Fonts\**-**.ttf" | ||
Condition="'$(SupportsFontManifest)'!='true'" /> | ||
|
||
<!-- The variable font file is exactly named OpenSans.ttf --> | ||
<!-- For platforms that don't support variable fonts, we remove that file --> | ||
<_AllChildProjectItemsWithTargetPath | ||
Remove="$(MSBuildThisFileDirectory)..\..\lib\net7.0\Uno.Fonts.OpenSans\Fonts\OpenSans.ttf" | ||
Condition="'$(SupportsFontManifest)'=='true'" /> | ||
</ItemGroup> | ||
</Target> | ||
</Project> |