-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBoot.Runtime.props
114 lines (103 loc) · 6.48 KB
/
Boot.Runtime.props
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
<!--
Inputs
[WinRuntimePrefix]
[OsxRuntimePrefix]
[LinuxRuntimePrefix]
[RuntimeIdentifier]
BuildWin
BuildOsx
BuildLinux
Outputs
WinRuntimePrefix
OsxRuntimePrefix
LinuxRuntimePrefix
RuntimeIdentifier
RuntimeOs
RuntimeFolder
@RuntimeIdentifier
-->
<Project InitialTargets="TraceBootRuntime"
TreatAsLocalProperty="RuntimeIdentifier;WinRuntimePrefix;OsxRuntimePrefix;LinuxRuntimePrefix">
<PropertyGroup>
<BootRuntimeImported>true</BootRuntimeImported>
</PropertyGroup>
<Import Project="Boot.Platform.props" />
<Import Project="Boot.CrossBuild.props" />
<!-- Supported RuntimeIdentifier prefix -->
<PropertyGroup Condition="!$(RuntimeIdentifier.StartsWith('browser'))">
<RuntimeIdentifiers Condition="'$(RuntimeIdentifiers)' == ''">win-x86;win-x64;osx-x64;linux-x64</RuntimeIdentifiers>
</PropertyGroup>
<!-- Supported RuntimeIdentifier prefix -->
<PropertyGroup>
<WinRuntimePrefix Condition="'$(WinRuntimePrefix)' == ''">win</WinRuntimePrefix>
<OsxRuntimePrefix Condition="'$(OsxRuntimePrefix)' == ''">osx</OsxRuntimePrefix>
<LinuxRuntimePrefix Condition="'$(LinuxRuntimePrefix)' == ''">linux</LinuxRuntimePrefix>
</PropertyGroup>
<!-- RuntimeIdentifier property -->
<Choose>
<When Condition="$(TargetFramework.StartsWith('netstandard'))">
<PropertyGroup>
<RuntimeIdentifier />
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup Condition="'$(ZouAgentType)' == '' And '$(RuntimeIdentifier)' == '' And '$(RuntimePlatform)' != ''">
<RuntimeIdentifier Condition="$([MSBuild]::IsOsPlatform(Windows))">$(WinRuntimePrefix)-$(RuntimePlatform)</RuntimeIdentifier>
<RuntimeIdentifier Condition="$([MSBuild]::IsOsPlatform(OSX))">$(OsxRuntimePrefix)-$(RuntimePlatform)</RuntimeIdentifier>
<RuntimeIdentifier Condition="$([MSBuild]::IsOsPlatform(Linux))">$(LinuxRuntimePrefix)-$(RuntimePlatform)</RuntimeIdentifier>
</PropertyGroup>
</Otherwise>
</Choose>
<!-- RuntimeOs and RuntimeFolder properties -->
<PropertyGroup Condition="'$(ZouAgentType)' == ''">
<RuntimeOs Condition="$([MSBuild]::IsOsPlatform(Windows))">win</RuntimeOs>
<RuntimeOs Condition="$([MSBuild]::IsOsPlatform(OSX))">osx</RuntimeOs>
<RuntimeOs Condition="$([MSBuild]::IsOsPlatform(Linux))">linux</RuntimeOs>
<RuntimeFolder Condition="'$(RuntimePlatform)' == ''">$(RuntimeOs)</RuntimeFolder>
<RuntimeFolder Condition="'$(RuntimePlatform)' != ''">$(RuntimeOs)-$(RuntimePlatform)</RuntimeFolder>
</PropertyGroup>
<!-- RuntimeOs items -->
<ItemGroup Condition="'$(ZouAgentType)' != ''">
<RuntimeOs Condition="$(BuildWin)" Include="win">
<RuntimeIdentifier Condition=" $(RuntimeIdentifier.StartsWith('win'))">$(RuntimeIdentifier)</RuntimeIdentifier>
<RuntimeIdentifier Condition="!$(RuntimeIdentifier.StartsWith('win')) And '$(RuntimePlatform)' != ''">$(WinRuntimePrefix)-$(RuntimePlatform)</RuntimeIdentifier>
<RuntimeFolder Condition="'$(RuntimePlatform)' == ''">win</RuntimeFolder>
<RuntimeFolder Condition="'$(RuntimePlatform)' != ''">win-$(RuntimePlatform)</RuntimeFolder>
</RuntimeOs>
<RuntimeOs Condition="$(BuildOsx)" Include="osx">
<RuntimeIdentifier Condition=" $(RuntimeIdentifier.StartsWith('osx'))">$(RuntimeIdentifier)</RuntimeIdentifier>
<RuntimeIdentifier Condition="!$(RuntimeIdentifier.StartsWith('osx')) And '$(RuntimePlatform)' != ''">$(OsxRuntimePrefix)-$(RuntimePlatform)</RuntimeIdentifier>
<RuntimeFolder Condition="'$(RuntimePlatform)' == ''">osx</RuntimeFolder>
<RuntimeFolder Condition="'$(RuntimePlatform)' != ''">osx-$(RuntimePlatform)</RuntimeFolder>
</RuntimeOs>
<RuntimeOs Condition="$(BuildLinux)" Include="linux">
<RuntimeIdentifier Condition=" $(RuntimeIdentifier.StartsWith('linux'))">$(RuntimeIdentifier)</RuntimeIdentifier>
<RuntimeIdentifier Condition="!$(RuntimeIdentifier.StartsWith('linux')) And '$(RuntimePlatform)' != ''">$(LinuxRuntimePrefix)-$(RuntimePlatform)</RuntimeIdentifier>
<RuntimeFolder Condition="'$(RuntimePlatform)' == ''">linux</RuntimeFolder>
<RuntimeFolder Condition="'$(RuntimePlatform)' != ''">linux-$(RuntimePlatform)</RuntimeFolder>
</RuntimeOs>
</ItemGroup>
<Target Name="TraceBootRuntime" Condition="'$(ZouDebug)' == 'true' Or '$(MSBuildProjectFile)' == '$(MSBuildThisFile)'">
<Message Importance="high" Text="zou/Boot.Runtime.props [$(MSBuildProjectFile)]" />
<Message Importance="high" Text="----------------------" />
<Message Importance="high" Text="ZouAgentType = $(ZouAgentType)" Condition="'$(ZouAgentType)' != ''" />
<Message Importance="high" Text="BuildWin = $(BuildWin)" Condition="'$(ZouAgentType)' != ''" />
<Message Importance="high" Text="BuildOsx = $(BuildOsx)" Condition="'$(ZouAgentType)' != ''" />
<Message Importance="high" Text="BuildLinux = $(BuildLinux)" Condition="'$(ZouAgentType)' != ''" />
<Message Importance="high" Text="BuildAny = $(BuildAny)" Condition="'$(ZouAgentType)' != ''" />
<Message Importance="high" Text=" " Condition="'$(ZouAgentType)' != ''" />
<Message Importance="high" Text="PlatformTarget = $(PlatformTarget)" Condition="'$(PlatformTarget)' != ''"/>
<Message Importance="high" Text="Platform = $(Platform)" Condition="'$(Platform)' != ''"/>
<Message Importance="high" Text="TargetFramework = $(TargetFramework)" Condition="'$(TargetFramework)' != ''"/>
<Message Importance="high" Text="TargetFrameworks = $(TargetFrameworks)" Condition="'$(TargetFrameworks)' != ''"/>
<Message Importance="high" Text="RuntimeOs = $(RuntimeOs)" Condition="'$(RuntimeOs)' != ''" />
<Message Importance="high" Text="RuntimePlatform = $(RuntimePlatform)" Condition="'$(RuntimePlatform)' != ''" />
<Message Importance="high" Text="RuntimeFolder = $(RuntimeFolder)" Condition="'$(RuntimeFolder)' != ''" />
<Message Importance="high" Text="RuntimeIdentifier = $(RuntimeIdentifier)" Condition="'$(RuntimeIdentifier)' != ''" />
<Message Importance="high" Text="RuntimeIdentifiers = $(RuntimeIdentifiers)" Condition="'$(RuntimeIdentifiers)' != ''" />
<Message Importance="high" Text="OutDir = $(OutDir)" />
<Message Importance="high" Text="OutputPath = $(OutputPath)" />
<LogItems Items="@(RuntimeOs)" Title="@RuntimeOs" />
<Message Importance="high" Text=" " />
</Target>
</Project>