Merge pull request #12091 from pgavlin/TailCallStress11689
[platform/upstream/coreclr.git] / dir.props
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
4   <!--
5     $(OS) is set to Unix/Windows_NT. This comes from an environment variable on Windows and MSBuild on Unix.
6   -->
7   <PropertyGroup>
8     <OsEnvironment Condition="'$(OsEnvironment)'=='' and '$(OS)'=='OSX'">Unix</OsEnvironment>
9     <OsEnvironment Condition="'$(OsEnvironment)'==''">$(OS)</OsEnvironment>
10   </PropertyGroup>
11
12   <!-- Version numbers for both managed & native binaries -->
13   <PropertyGroup>
14     <MajorVersion>4</MajorVersion>
15     <MinorVersion>6</MinorVersion>
16   </PropertyGroup>
17
18   <!-- Build Tools Versions -->
19   <PropertyGroup>
20     <RoslynVersion>1.0.0-rc3-20150510-01</RoslynVersion>
21     <RoslynPackageName>Microsoft.Net.ToolsetCompilers</RoslynPackageName>
22   </PropertyGroup>
23
24   <!-- Profile-based optimization data package versions -->
25   <PropertyGroup>
26     <PgoDataPackageVersion>99.99.99-master-20170531-3000</PgoDataPackageVersion>
27     <!--<IbcDataPackageVersion></IbcDataPackageVersion>-->
28   </PropertyGroup>
29
30   <!--
31      Switching to the .NET Core version of the BuildTools tasks seems to break numerous scenarios, such as VS intellisense and resource designer
32      as well as runnning the build on mono. Until we can get these sorted out we will continue using the .NET 4.5 version of the tasks.
33      -->
34   <PropertyGroup>
35     <RunningOnCore>false</RunningOnCore>
36     <RunningOnCore Condition="'$(MSBuildRuntimeType)' == 'Core'">true</RunningOnCore>
37     <BuildToolsTargetsDesktop>false</BuildToolsTargetsDesktop>
38     <BuildToolsTargetsDesktop Condition="'$(RunningOnCore)' != 'true'">true</BuildToolsTargetsDesktop>
39     <BuildToolsTargets45>$(BuildToolsTargetsDesktop)</BuildToolsTargets45>
40   </PropertyGroup>
41
42   <!-- Common properties -->
43   <PropertyGroup>
44     <!-- Set basic properties and normalize -->
45     <BuildArch>$(__BuildArch)</BuildArch>
46     <BuildArch Condition="'$(__BuildArch)'==''">x64</BuildArch>
47     <BuildArch Condition="'$(__BuildArch)' == 'amd64'">x64</BuildArch>
48
49     <BuildType Condition="'$(__BuildType)'==''">Debug</BuildType>
50     <BuildType Condition="'$(__BuildType)' == 'debug'">Debug</BuildType>
51     <BuildType Condition="'$(__BuildType)' == 'release'">Release</BuildType>
52     <BuildType Condition="'$(__BuildType)' == 'checked'">Checked</BuildType>
53
54     <BuildOS>$(__BuildOS)</BuildOS>
55     <BuildOS Condition="'$(__BuildOS)' == ''">Windows_NT</BuildOS>
56
57     <ProjectDir>$(__ProjectDir)\</ProjectDir>
58     <ProjectDir Condition="'$(__ProjectDir)'==''">$(MSBuildThisFileDirectory)</ProjectDir>
59
60     <SourceDir>$(__SourceDir)\</SourceDir>
61     <SourceDir Condition="'$(__SourceDir)'==''">$(ProjectDir)src\</SourceDir>
62
63     <PackagesDir>$(__PackagesDir)\</PackagesDir>
64     <PackagesDir Condition="'$(__PackagesDir)'==''">$(ProjectDir)packages\</PackagesDir>
65
66     <RootBinDir>$(__RootBinDir)\</RootBinDir>
67     <RootBinDir Condition="'$(__RootBinDir)'==''">$(ProjectDir)bin\</RootBinDir>
68
69     <BinDir>$(__BinDir)\</BinDir>
70     <BinDir Condition="'$(__BinDir)'==''">$(RootBinDir)Product\$(BuildOS).$(BuildArch).$(BuildType)\</BinDir>
71     
72     <__IntermediatesDir Condition="'$(__IntermediatesDir)' == ''">$(RootBinDir)obj\$(BuildOS).$(BuildArch).$(BuildType)</__IntermediatesDir>
73     <IntermediateOutputRootPath Condition="'$(IntermediateOutputRootPath)' == ''">$(__IntermediatesDir)\</IntermediateOutputRootPath>
74
75     <!-- We don't append back slash because this path is used by nuget.exe as output directory and it
76          fails to write packages to it if the path contains the forward slash.
77     -->
78     <PackagesBinDir>$(__PackagesBinDir)</PackagesBinDir>
79     <PackagesBinDir Condition="'$(__PackagesBinDir)'==''">$(BinDir).nuget\</PackagesBinDir>
80
81     <ToolsDir Condition="'$(ToolsDir)'==''">$(ProjectDir)Tools\</ToolsDir>
82     <DotnetCliPath Condition="'$(DotnetCliPath)'==''">$(ToolsDir)dotnetcli\</DotnetCliPath>
83     <OverrideToolHost>$(DotnetCliPath)dotnet</OverrideToolHost>
84     <BuildToolsSemaphore Condition="'$(BuildToolsSemaphore)' == ''">$(ToolsDir)Microsoft.DotNet.Build.Tasks.dll</BuildToolsSemaphore>
85
86     <TestWorkingDir>$(__TestWorkingDir)\</TestWorkingDir>
87     <TestWorkingDir Condition="'$(__TestWorkingDir)'==''">$(RootBinDir)tests\$(BuildOS).$(BuildArch).$(BuildType)\</TestWorkingDir>
88
89     <Platform Condition="'$(Platform)' == ''">$(BuildArch)</Platform>
90     <Platform Condition="'$(Platform)' == 'amd64'">x64</Platform>
91
92     <!-- Default to portable build if not explicitly set -->
93     <PortableBuild Condition="'$(PortableBuild)' == ''">true</PortableBuild>
94   </PropertyGroup>
95
96   <!-- Output paths -->
97   <PropertyGroup>
98     <BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)' == ''">$(RootBinDir)obj\</BaseIntermediateOutputPath>
99     <IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''">$(BaseIntermediateOutputPath)$(BuildOS).$(BuildArch).$(BuildType)\$(MSBuildProjectName)</IntermediateOutputPath>
100     <OutputPath Condition="'$(OutputPath)' == ''">$(BinDir)</OutputPath>
101   </PropertyGroup>
102
103   <!-- Import Build tools common props file where repo-independent properties are found -->
104   <Import Condition="Exists('$(ToolsDir)Build.Common.props')" Project="$(ToolsDir)Build.Common.props" />
105
106   <!-- Setup common target properties that we use to conditionally include sources -->
107   <PropertyGroup>
108     <TargetsFreeBSD Condition="'$(BuildOS)' == 'FreeBSD'">true</TargetsFreeBSD>
109     <TargetsLinux Condition="'$(BuildOS)' == 'Linux'">true</TargetsLinux>
110     <TargetsNetBSD Condition="'$(BuildOS)' == 'NetBSD'">true</TargetsNetBSD>
111     <TargetsOSX Condition="'$(BuildOS)' == 'OSX'">true</TargetsOSX>
112     <TargetsWindows Condition="'$(BuildOS)' == 'Windows_NT'">true</TargetsWindows>
113
114     <TargetsUnix Condition="'$(TargetsFreeBSD)' == 'true' or '$(TargetsLinux)' == 'true' or '$(TargetsNetBSD)' == 'true' or '$(TargetsOSX)' == 'true'">true</TargetsUnix>
115
116     <!-- We are only tracking Linux Distributions for Nuget RID mapping -->
117     <DistroRid Condition="'$(TargetsLinux)' == 'true'">$(__DistroRid)</DistroRid>
118
119   </PropertyGroup>
120
121   <!-- Provides properties for dependency versions and configures dependency verification/auto-upgrade. -->
122   <Import Project="$(ProjectDir)dependencies.props" />
123
124   <!-- Packaging properties -->
125   <PropertyGroup>
126     <LicenseUrl>https://github.com/dotnet/coreclr/blob/master/LICENSE.TXT</LicenseUrl>
127     <PreReleaseLabel>preview1</PreReleaseLabel>
128     <PackageDescriptionFile>$(SourceDir).nuget/descriptions.json</PackageDescriptionFile>
129     <PackageLicenseFile>$(ProjectDir)LICENSE.TXT</PackageLicenseFile>
130     <PackageThirdPartyNoticesFile>$(ProjectDir)THIRD-PARTY-NOTICES.TXT</PackageThirdPartyNoticesFile>
131     <SyncInfoDirectory>$(BaseIntermediateOutputPath)</SyncInfoDirectory>
132
133     <!-- This should be kept in sync with package details in src/.nuget/init/project.json -->
134     <RuntimeIdGraphDefinitionVersion>1.0.2-beta-24224-02</RuntimeIdGraphDefinitionVersion>
135     <RuntimeIdGraphDefinitionFile>$(PackagesDir)/microsoft.netcore.platforms/$(RuntimeIdGraphDefinitionVersion)/runtime.json</RuntimeIdGraphDefinitionFile>
136
137     <!-- This link should be updated for each release milestone, currently this points to 1.1.0-beta -->
138     <ReleaseNotes>https://go.microsoft.com/fwlink/?LinkID=799421</ReleaseNotes>
139
140     <ProjectUrl>https://dot.net</ProjectUrl>
141
142     <!-- Central place to set the versions of all nuget packages produced in the repo -->
143     <PackageVersion Condition="'$(PackageVersion)' == ''">2.1.0</PackageVersion>
144     
145     <!-- Set the boolean below to true to generate packages with stabilized versions -->
146     <StabilizePackageVersion Condition="'$(StabilizePackageVersion)' == ''">false</StabilizePackageVersion>
147     <StableVersion Condition="'$(StabilizePackageVersion)' == 'true' and '$(StableVersion)' == ''">$(PackageVersion)</StableVersion>
148     
149     <!-- On Windows, MSbuild still runs against Desktop FX while it runs on .NET Core on non-Windows. this requires
150          pulling in different packaging dependencies.
151      -->
152     <PackagingTaskDir Condition="'$(TargetsWindows)' == 'true'">$(ToolsDir)net46/</PackagingTaskDir>
153     <BuildNumberMajor Condition="'$(BuildNumberMajor)' == ''">00001</BuildNumberMajor>
154     <!-- defined in buildtools packaging.targets, but we need this before targets are imported -->
155     <PackagePlatform Condition="'$(PackagePlatform)' == ''">$(Platform)</PackagePlatform>
156     <PackagePlatform Condition="'$(PackagePlatform)' == 'amd64'">x64</PackagePlatform>
157     <MinOSForArch>win7</MinOSForArch>
158     <MinOSForArch Condition="'$(PackagePlatform)' == 'arm'">win8</MinOSForArch>
159     <MinOSForArch Condition="'$(PackagePlatform)' == 'arm64'">win10</MinOSForArch>
160         <!-- This property must be set to disable local package installation -->
161     <SkipInstallLocallyBuiltPackages>true</SkipInstallLocallyBuiltPackages>
162
163     <!-- Define packaging attributes for cross target components -->
164     <HasCrossTargetComponents Condition="'$(TargetsWindows)' == 'true' and ('$(PackagePlatform)' =='arm64' or '$(PackagePlatform)' =='arm')">true</HasCrossTargetComponents>
165     <CrossTargetComponentFolder Condition="'$(PackagePlatform)' == 'arm64'">x64</CrossTargetComponentFolder>
166     <CrossTargetComponentFolder Condition="'$(PackagePlatform)' == 'arm'">x86</CrossTargetComponentFolder>
167
168     <PackageOutputPath>$(PackagesBinDir)/pkg/</PackageOutputPath>
169     <SymbolPackageOutputPath>$(PackagesBinDir)/symbolpkg/</SymbolPackageOutputPath>
170     <PackageIndexFile>$(MSBuildThisFileDirectory)/src/.nuget/packageIndex.json</PackageIndexFile>
171
172     <!-- coreclr doesn't currently use the index so don't force it to be in sync -->
173     <SkipIndexCheck>true</SkipIndexCheck>
174   </PropertyGroup>
175
176   <!-- Add required legal files to packages -->
177   <ItemGroup Condition="'$(MSBuildProjectExtension)' == '.pkgproj'">
178     <File Condition="Exists('$(PackageLicenseFile)')"
179           Include="$(PackageLicenseFile)" >
180       <SkipPackageFileCheck>true</SkipPackageFileCheck>
181     </File>
182     <File Condition="Exists('$(PackageThirdPartyNoticesFile)')"
183           Include="$(PackageThirdPartyNoticesFile)" >
184       <SkipPackageFileCheck>true</SkipPackageFileCheck>
185     </File>
186     <PackageIndex Include="$(PackageIndexFile)" />
187   </ItemGroup>
188
189   <!-- Use Roslyn Compilers to build -->
190   <Import Project="$(RoslynPropsFile)" Condition="'$(RunningOnUnix)'!='true' and Exists('$(RoslynPropsFile)') and '$(UseRoslynCompilers)'!='false'" />
191   <Import Project="$(RoslynPropsFile)" Condition="'$(RunningOnUnix)'=='true' and Exists('$(RoslynPropsFile)')" />
192 </Project>