-
Notifications
You must be signed in to change notification settings - Fork 571
/
Copy pathNativeAssets.Build.targets
57 lines (50 loc) · 2.77 KB
/
NativeAssets.Build.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
<Project>
<PropertyGroup>
<!-- There is nothing to sign if there is no build -->
<SignAssembly>false</SignAssembly>
<!-- Don't include build output in a package since NoTargets projects don't emit an assembly. -->
<IncludeBuildOutput>false</IncludeBuildOutput>
<!-- Disable symbol generation -->
<DebugType>None</DebugType>
<DebugSymbols>false</DebugSymbols>
<!-- Don't generate docs -->
<SkipMDocGenerateDocs>true</SkipMDocGenerateDocs>
</PropertyGroup>
<ItemGroup>
<!-- legal -->
<None Include="$(MSBuildThisFileDirectory)..\External-Dependency-Info.txt" PackagePath="THIRD-PARTY-NOTICES.txt" Pack="True" Visible="False" />
</ItemGroup>
<Target Name="_IncludePlaceholders" AfterTargets="_IncludeAdditionalTfmSpecificPackageFilesPrepare">
<Touch Files="$(IntermediateOutputPath)_._" AlwaysCreate="True" />
<ItemGroup>
<FileWrites Include="$(IntermediateOutputPath)_._" />
<TfmSpecificPackageFile Include="$(IntermediateOutputPath)_._" PackagePath="lib\$(NuGetShortFolderName)\_._" />
</ItemGroup>
</Target>
<PropertyGroup Condition="'$(IsWindowsNativeAssets)' == 'true'">
<IncludeBuildOutput>true</IncludeBuildOutput>
<IncludeSymbols>true</IncludeSymbols>
<BuildOutputTargetFolder>runtimes</BuildOutputTargetFolder>
<ExcludeSymbolsFromPackage>false</ExcludeSymbolsFromPackage>
</PropertyGroup>
<ItemGroup Condition="'$(IsWindowsNativeAssets)' == 'true'">
<_NativeWindowsPackageFileToUse Include="@(NativeWindowsPackageFile->HasMetadata('Folder'))" />
<_NativeWindowsPackageFileWithNoFolder Include="@(NativeWindowsPackageFile)" />
<_NativeWindowsPackageFileWithNoFolder Remove="@(_NativeWindowsPackageFileToUse)" />
<_NativeWindowsPackageFileToUse Include="@(_NativeWindowsPackageFileWithNoFolder)" Folder="native" />
<None Include="@(_NativeWindowsPackageFileToUse)" Link="runtimes\%(RuntimeIdentifier)\%(Folder)\%(Filename)%(Extension)" />
</ItemGroup>
<Target Name="_IncludeRuntimesPackageFiles" BeforeTargets="_GetPackageFiles" Condition="'$(IsWindowsNativeAssets)' == 'true'">
<ItemGroup>
<_CompletedNativeWindowsPackageFile
Include="@(_NativeWindowsPackageFileToUse)"
TargetFramework="%(RuntimeIdentifier)"
TargetPath="%(Folder)\%(Filename)%(Extension)"
PackagePath="runtimes\%(RuntimeIdentifier)\%(Folder)\%(Filename)%(Extension)" />
<_BuildOutputInPackage Remove="@(_BuildOutputInPackage)" />
<_BuildOutputInPackage Include="@(_CompletedNativeWindowsPackageFile)" Condition="'%(Extension)' != '.pdb'" />
<_TargetPathsToSymbols Remove="@(_TargetPathsToSymbols)" />
<_TargetPathsToSymbols Include="@(_CompletedNativeWindowsPackageFile)" Condition="'%(Extension)' == '.pdb'" />
</ItemGroup>
</Target>
</Project>