Remove Debian Armel (#11978)
[platform/upstream/coreclr.git] / src / .nuget / dir.props
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3   <Import Project="$(MSBuildThisFileDirectory)..\..\dir.props" />
4
5   <PropertyGroup>
6     <!-- defined in buildtools packaging.targets, but we need this before targets are imported -->
7     <PackagePlatform>AnyCPU</PackagePlatform>
8     
9     <!-- build the transport package which includes product and symbols in addition to standard packages -->
10     <CreatePackedPackage Condition="'$(CreatePackedPackage)' == ''">true</CreatePackedPackage>
11
12     <!-- Distro rid is passed as runtimeos-arch-->
13     <_parseDistroRid>$(__DistroRid)</_parseDistroRid>
14     <_parseDistroRid Condition="'$(_parseDistroRid)' == '' and '$(__BuildOS)' == 'OSX'">osx.10.12-x64</_parseDistroRid>
15     <_distroRidIndex>$(_parseDistroRid.IndexOfAny("-"))</_distroRidIndex>
16     <_archRidIndex>$([MSBuild]::Add($(_distroRidIndex), 1))</_archRidIndex>
17     <OSRid Condition="'$(OSRid)' == '' and '$(_distroRidIndex)' != '-1'">$(_parseDistroRid.SubString(0, $(_distroRidIndex)))</OSRid>
18     <OSRid Condition="'$(OSRid)' == ''">win10</OSRid>
19
20     <ArchGroup Condition="'$(ArchGroup)' == '' and '$(_archRidIndex)' != '0'">$(_parseDistroRid.SubString($(_archRidIndex)))</ArchGroup>
21     <ArchGroup Condition="'$(ArchGroup)' == '' and '$(Platform)' != ''">$(Platform)</ArchGroup>
22     <ArchGroup Condition="'$(ArchGroup)' == ''">$(BuildArch)</ArchGroup>
23
24     <RuntimeOS Condition="'$(RuntimeOS)' == ''">$(OSRid)</RuntimeOS>
25
26     <SupportedPackageOSGroups Condition="'$(SupportedPackageOSGroups)' == ''">Windows_NT;OSX;Linux</SupportedPackageOSGroups>
27     <SupportedPackageOSGroups>;$(SupportedPackageOSGroups);</SupportedPackageOSGroups>
28
29     <_runtimeOSVersionIndex>$(RuntimeOS.IndexOfAny(".-0123456789"))</_runtimeOSVersionIndex>
30     <_runtimeOSFamily Condition="'$(_runtimeOSVersionIndex)' != '-1'">$(RuntimeOS.SubString(0, $(_runtimeOSVersionIndex)))</_runtimeOSFamily>
31     <_isSupportedOSGroup>true</_isSupportedOSGroup>
32   </PropertyGroup>
33
34   <!-- derive an OS Group based on the OS Family -->
35   <PropertyGroup>
36     <_derivedPackageTargetOSGroup Condition="'$(_derivedPackageTargetOSGroup)' == '' and '$(_runtimeOSFamily)' == 'osx'">OSX</_derivedPackageTargetOSGroup>
37     <_derivedPackageTargetOSGroup Condition="'$(_derivedPackageTargetOSGroup)' == '' and '$(_runtimeOSFamily)' == 'win'">Windows_NT</_derivedPackageTargetOSGroup>
38     <_derivedPackageTargetOSGroup Condition="'$(_derivedPackageTargetOSGroup)' == '' and '$(__BuildOS)' != ''">$(__BuildOS)</_derivedPackageTargetOSGroup>
39     <_derivedPackageTargetOSGroup Condition="'$(_derivedPackageTargetOSGroup)' == ''">Linux</_derivedPackageTargetOSGroup>
40
41     <_isSupportedOSGroup Condition="!$(SupportedPackageOSGroups.Contains(';$(_derivedPackageTargetOSGroup);'))">false</_isSupportedOSGroup>
42   </PropertyGroup>
43
44   <!-- _packageTargetOSGroup is used to control the runtime package imports, don't import runtime package targets for 
45        an unsupported OS Group -->
46   <PropertyGroup Condition="'$(PackageTargetRuntime)' != '' and '$(_isSupportedOSGroup)' == 'true'">
47     <_packageTargetOSGroup>$(_derivedPackageTargetOSGroup)</_packageTargetOSGroup>
48   </PropertyGroup>
49
50   <PropertyGroup>
51     <SkipPackageFileCheck>true</SkipPackageFileCheck>
52     <OutputPath>$(PackageOutputPath)</OutputPath>
53   </PropertyGroup>
54
55   <PropertyGroup Condition="'$(IsLineupPackage)' == 'true'">
56     <SkipValidatePackage>true</SkipValidatePackage>
57     <IncludeRuntimeJson>true</IncludeRuntimeJson>
58   </PropertyGroup>
59
60   <Choose>
61     <When Condition="'$(PackageRID)' != ''" />
62     <When Condition="'$(_runtimeOSFamily)' == 'win'">
63       <PropertyGroup>
64         <RIDPlatform>win7</RIDPlatform>
65         <RIDPlatform Condition="'$(ArchGroup)' == 'arm'">win8</RIDPlatform>
66         <RIDPlatform Condition="'$(ArchGroup)' == 'arm64'">win10</RIDPlatform>
67         
68         <!-- Set the platform part of the RID if we are doing a portable build -->
69         <RIDPlatform Condition="'$(PortableBuild)' == '1'">win</RIDPlatform>
70         <PackageRID>$(RIDPlatform)-$(ArchGroup)</PackageRID>
71       </PropertyGroup>
72     </When>
73     <When Condition="'$(_runtimeOSFamily)' == 'osx'">
74       <PropertyGroup>
75         <PackageRID>osx.10.12-$(ArchGroup)</PackageRID>
76         <!-- Set the platform part of the RID if we are doing a portable build -->
77         <PackageRID Condition="'$(PortableBuild)' == '1'">osx-$(ArchGroup)</PackageRID>
78       </PropertyGroup>
79     </When>
80     <When Condition="'$(_runtimeOSFamily)' == 'rhel'">
81       <PropertyGroup>
82         <PackageRID>rhel.7-$(ArchGroup)</PackageRID>
83         <!-- Set the platform part of the RID if we are doing a portable build -->
84         <PackageRID Condition="'$(PortableBuild)' == '1'">linux-$(ArchGroup)</PackageRID>
85       </PropertyGroup>
86     </When>
87     <Otherwise>
88       <PropertyGroup>
89         <PackageRID>$(RuntimeOS)-$(ArchGroup)</PackageRID>
90         <!-- Set the platform part of the RID if we are doing a portable build -->
91         <PackageRID Condition="'$(PortableBuild)' == '1'">linux-$(ArchGroup)</PackageRID>
92       </PropertyGroup>
93     </Otherwise>
94   </Choose>
95
96   <!-- Determine per-platform native binary extensions. -->
97   <Choose>
98     <When Condition="'$(_runtimeOSFamily)' == 'win'" />
99     <When Condition="'$(_runtimeOSFamily)' == 'osx'">
100       <PropertyGroup>
101         <LibraryFileExtension>.dylib</LibraryFileExtension>
102         <SymbolFileExtension>.dwarf</SymbolFileExtension>
103       </PropertyGroup>
104     </When>
105     <Otherwise>
106       <PropertyGroup>
107         <LibraryFileExtension>.so</LibraryFileExtension>
108         <SymbolFileExtension>.dbg</SymbolFileExtension>
109       </PropertyGroup>
110     </Otherwise>
111   </Choose>
112
113   <ItemGroup Condition="$(SupportedPackageOSGroups.Contains(';Linux;'))">
114     <OfficialBuildRID Include="alpine.3.4.3-x64" />
115     <OfficialBuildRID Include="debian.8-x64" />
116     <OfficialBuildRID Include="fedora.23-x64" />
117     <OfficialBuildRID Include="fedora.24-x64" />
118     <OfficialBuildRID Include="linux-x64" />
119     <OfficialBuildRID Include="linux-arm">
120       <Platform>arm</Platform>
121     </OfficialBuildRID>
122     <OfficialBuildRID Include="opensuse.42.1-x64" />
123     <OfficialBuildRID Include="rhel.7-x64" />
124     <OfficialBuildRID Include="tizen.4.0.0-armel">
125       <Platform>armel</Platform>
126     </OfficialBuildRID>
127     <OfficialBuildRID Include="ubuntu.14.04-arm">
128       <Platform>arm</Platform>
129     </OfficialBuildRID>
130     <OfficialBuildRID Include="ubuntu.14.04-x64" />
131     <OfficialBuildRID Include="ubuntu.16.04-arm">
132       <Platform>arm</Platform>
133     </OfficialBuildRID>
134     <OfficialBuildRID Include="ubuntu.16.04-x64" />
135     <OfficialBuildRID Include="ubuntu.16.10-x64" />
136   </ItemGroup>
137   <ItemGroup Condition="$(SupportedPackageOSGroups.Contains(';OSX;'))">
138     <OfficialBuildRID Include="osx.10.12-x64" />
139     <OfficialBuildRID Include="osx-x64" />
140   </ItemGroup>
141   <ItemGroup Condition="$(SupportedPackageOSGroups.Contains(';Windows_NT;'))">
142     <OfficialBuildRID Include="win7-x86">
143       <Platform>x86</Platform>
144     </OfficialBuildRID>
145     <OfficialBuildRID Include="win-x86">
146       <Platform>x86</Platform>
147     </OfficialBuildRID>
148     <OfficialBuildRID Include="win7-x64" />
149     <OfficialBuildRID Include="win-x64" />
150     <OfficialBuildRID Include="win8-arm">
151       <Platform>arm</Platform>
152     </OfficialBuildRID>
153     <OfficialBuildRID Include="win10-arm64">
154       <Platform>arm64</Platform>
155     </OfficialBuildRID>
156     <OfficialBuildRID Include="win-arm">
157       <Platform>arm</Platform>
158     </OfficialBuildRID>
159     <OfficialBuildRID Include="win-arm64">
160       <Platform>arm64</Platform>
161     </OfficialBuildRID>
162   </ItemGroup>
163   <ItemGroup>
164     <!-- Ensure we have a RID-specific package for the current build, even if it isn't in our official set, but 
165          don't build the RID-specific package if we're in an unsupported os family -->
166     <BuildRID Include="@(OfficialBuildRID)" Exclude="$(PackageRID)"/>
167     <BuildRID Include="$(PackageRID)"
168               Condition="'$(_isSupportedOSGroup)' == 'true'">
169       <Platform Condition="'$(ArchGroup)' == 'x64'">amd64</Platform>
170       <Platform Condition="'$(ArchGroup)' != 'x64'">$(ArchGroup)</Platform>
171     </BuildRID>
172   </ItemGroup>
173
174   <ItemGroup>
175     <_project Include="@(BuildRID)">
176       <Platform Condition="'%(Platform)' == ''">amd64</Platform>
177       <PackageTargetRuntime>%(Identity)</PackageTargetRuntime>
178       <AdditionalProperties>PackageTargetRuntime=%(Identity);Platform=%(Platform)</AdditionalProperties>
179     </_project>
180
181     <_buildRidProjects Include="@(_project->'$(MSBuildProjectName).pkgproj')" />
182     <!-- Only include rid projects for a builds file, not for a lineup package -->
183     <Project Condition="'$(IsLineupPackage)' != 'true'" Include="@(_buildRidProjects)" />
184   </ItemGroup>
185
186   <ItemGroup Condition="'$(IsLineupPackage)' == 'true'">
187     <!-- Include project references for a lineup package to generate the runtime.json file -->
188     <ProjectReference Include="@(_buildRidProjects)" />
189   </ItemGroup>
190 </Project>