-
Notifications
You must be signed in to change notification settings - Fork 570
/
Copy pathSkiaSharp.NuGet.targets
117 lines (99 loc) · 5.56 KB
/
SkiaSharp.NuGet.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<Project>
<PropertyGroup>
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);_IncludeAdditionalTfmSpecificPackageFiles</TargetsForTfmSpecificContentInPackage>
<AllowedOutputExtensionsInPackageBuildOutputFolder Condition="'$(ExcludeSymbolsFromPackage)' != 'false'">$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>
<PropertyGroup>
<GetPackageVersionDependsOn>$(GetPackageVersionDependsOn);CollectAssemblyVersionInfo</GetPackageVersionDependsOn>
<GenerateNuspecDependsOn>$(GenerateNuspecDependsOn);CollectAssemblyVersionInfo</GenerateNuspecDependsOn>
<CollectAssemblyVersionInfoDependsOn>$(CollectAssemblyVersionInfoDependsOn);_IncludeAdditionalVersionInfo</CollectAssemblyVersionInfoDependsOn>
</PropertyGroup>
<PropertyGroup>
<PackageTags Condition="$(PackagingGroup.StartsWith('SkiaSharp'))">graphics;cross-platform;skiasharp;skia;$(PackageTags);ios;android;linux;windows;tvos;macos;tizen</PackageTags>
<PackageTags Condition="$(PackagingGroup.StartsWith('HarfBuzzSharp'))">graphics;text;cross-platform;harfbuzzsharp;harfbuzz;$(PackageTags);ios;android;linux;windows;tvos;macos;tizen</PackageTags>
<PackageDescription Condition="'$(PackageNotes)' != ''">$(PackageDescription)
$(PackageNotes)</PackageDescription>
</PropertyGroup>
<ItemGroup>
<None Include="@(PackageFile)" Link="%(PackagePath)" Pack="True" />
</ItemGroup>
<!--
===================================================================================================================
_GeneratePackageReadmeFile
Generate the package README file.
===================================================================================================================
-->
<Target Name="_GeneratePackageReadmeFile"
BeforeTargets="_GetPackageFiles"
Condition="'$(PackageDescription)' != ''">
<WriteLinesToFile File="$(IntermediateOutputPath)$(PackageReadmeFile)" Lines="$(PackageDescription)" Overwrite="True" />
<ItemGroup>
<FileWrites Include="$(IntermediateOutputPath)$(PackageReadmeFile)" />
<None Include="$(IntermediateOutputPath)$(PackageReadmeFile)" PackagePath="$(PackageReadmeFile)" Pack="True" />
</ItemGroup>
</Target>
<!--
===================================================================================================================
_IncludeAdditionalTfmSpecificPackageFilesPrepare
Create all the properties needed to add additional files.
===================================================================================================================
-->
<Target Name="_IncludeAdditionalTfmSpecificPackageFilesPrepare">
<GetNuGetShortFolderName
TargetFrameworkMoniker="$(TargetFrameworkMoniker)"
TargetPlatformMoniker="$(TargetPlatformMoniker)">
<Output TaskParameter="NuGetShortFolderName" PropertyName="NuGetShortFolderName" />
</GetNuGetShortFolderName>
</Target>
<!--
===================================================================================================================
IncludeMDocTfmSpecificPackageFiles
Include the XML docs in the package.
===================================================================================================================
-->
<Target Name="IncludeMDocTfmSpecificPackageFiles">
<ItemGroup>
<TfmSpecificPackageFile Include="$(MDocOutputPath)" PackagePath="lib\$(NuGetShortFolderName)\$(MDocOutputName)"
Exclude="@(DocumentationProjectOutputGroupOutput)" Condition="Exists('$(MDocOutputPath)')" />
</ItemGroup>
</Target>
<!--
===================================================================================================================
IncludeReferenceAssemblyTfmSpecificPackageFiles
Include the reference assembly in the package.
===================================================================================================================
-->
<Target Name="IncludeReferenceAssemblyTfmSpecificPackageFiles">
<ItemGroup>
<TfmSpecificPackageFile Include="$(TargetRefPath)" PackagePath="ref\$(NuGetShortFolderName)\$(TargetFileName)"
Condition="Exists('$(TargetRefPath)')" />
</ItemGroup>
</Target>
<!--
===================================================================================================================
_IncludeAdditionalTfmSpecificPackageFiles
Include all the additional files in the package.
===================================================================================================================
-->
<PropertyGroup>
<_IncludeAdditionalTfmSpecificPackageFilesDependsOn>
_IncludeAdditionalTfmSpecificPackageFilesPrepare;
IncludeMDocTfmSpecificPackageFiles;
IncludeReferenceAssemblyTfmSpecificPackageFiles;
IncludeAdditionalTfmSpecificPackageFiles;
</_IncludeAdditionalTfmSpecificPackageFilesDependsOn>
</PropertyGroup>
<Target Name="_IncludeAdditionalTfmSpecificPackageFiles"
DependsOnTargets="$(_IncludeAdditionalTfmSpecificPackageFilesDependsOn)" />
<!--
===================================================================================================================
_IncludeAdditionalVersionInfo
Set the package version properties.
===================================================================================================================
-->
<Target Name="_IncludeAdditionalVersionInfo">
<PropertyGroup>
<PackageVersion>$(Version)</PackageVersion>
</PropertyGroup>
</Target>
</Project>