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