Merge pull request #11366 from ruben-ayrapetyan/remove-zap-code-relocs-for-linux...
[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   <!--
25      Switching to the .NET Core version of the BuildTools tasks seems to break numerous scenarios, such as VS intellisense and resource designer
26      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.
27      -->
28   <PropertyGroup>
29     <BuildToolsTargets45>true</BuildToolsTargets45>
30   </PropertyGroup>
31
32   <!-- Common properties -->
33   <PropertyGroup>
34     <!-- Set basic properties and normalize -->
35     <BuildArch>$(__BuildArch)</BuildArch>
36     <BuildArch Condition="'$(__BuildArch)'==''">x64</BuildArch>
37     <BuildArch Condition="'$(__BuildArch)' == 'amd64'">x64</BuildArch>
38
39     <BuildType Condition="'$(__BuildType)'==''">Debug</BuildType>
40     <BuildType Condition="'$(__BuildType)' == 'debug'">Debug</BuildType>
41     <BuildType Condition="'$(__BuildType)' == 'release'">Release</BuildType>
42     <BuildType Condition="'$(__BuildType)' == 'checked'">Checked</BuildType>
43
44     <BuildOS>$(__BuildOS)</BuildOS>
45     <BuildOS Condition="'$(__BuildOS)' == ''">Windows_NT</BuildOS>
46
47     <ProjectDir>$(__ProjectDir)\</ProjectDir>
48     <ProjectDir Condition="'$(__ProjectDir)'==''">$(MSBuildThisFileDirectory)</ProjectDir>
49
50     <SourceDir>$(__SourceDir)\</SourceDir>
51     <SourceDir Condition="'$(__SourceDir)'==''">$(ProjectDir)src\</SourceDir>
52
53     <PackagesDir>$(__PackagesDir)\</PackagesDir>
54     <PackagesDir Condition="'$(__PackagesDir)'==''">$(ProjectDir)packages\</PackagesDir>
55
56     <RootBinDir>$(__RootBinDir)\</RootBinDir>
57     <RootBinDir Condition="'$(__RootBinDir)'==''">$(ProjectDir)bin\</RootBinDir>
58
59     <BinDir>$(__BinDir)\</BinDir>
60     <BinDir Condition="'$(__BinDir)'==''">$(RootBinDir)Product\$(BuildOS).$(BuildArch).$(BuildType)\</BinDir>
61     
62     <__IntermediatesDir Condition="'$(__IntermediatesDir)' == ''">$(RootBinDir)obj\$(BuildOS).$(BuildArch).$(BuildType)</__IntermediatesDir>
63     <IntermediateOutputRootPath Condition="'$(IntermediateOutputRootPath)' == ''">$(__IntermediatesDir)\</IntermediateOutputRootPath>
64
65     <!-- We don't append back slash because this path is used by nuget.exe as output directory and it
66          fails to write packages to it if the path contains the forward slash.
67     -->
68     <PackagesBinDir>$(__PackagesBinDir)</PackagesBinDir>
69     <PackagesBinDir Condition="'$(__PackagesBinDir)'==''">$(BinDir).nuget\</PackagesBinDir>
70
71     <ToolsDir Condition="'$(ToolsDir)'==''">$(ProjectDir)Tools/</ToolsDir>
72     <DotnetCliPath Condition="'$(DotnetCliPath)'==''">$(ToolsDir)dotnetcli/</DotnetCliPath>
73     <OverrideToolHost>$(DotnetCliPath)dotnet</OverrideToolHost>
74     <BuildToolsSemaphore Condition="'$(BuildToolsSemaphore)' == ''">$(ToolsDir)Microsoft.DotNet.Build.Tasks.dll</BuildToolsSemaphore>
75
76     <TestWorkingDir>$(__TestWorkingDir)\</TestWorkingDir>
77     <TestWorkingDir Condition="'$(__TestWorkingDir)'==''">$(RootBinDir)tests\$(BuildOS).$(BuildArch).$(BuildType)\</TestWorkingDir>
78
79     <Platform Condition="'$(Platform)' == ''">$(BuildArch)</Platform>
80     <Platform Condition="'$(Platform)' == 'amd64'">x64</Platform>
81   </PropertyGroup>
82
83   <!-- Output paths -->
84   <PropertyGroup>
85     <BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)' == ''">$(RootBinDir)obj\</BaseIntermediateOutputPath>
86     <IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''">$(BaseIntermediateOutputPath)$(BuildOS).$(BuildArch).$(BuildType)\$(MSBuildProjectName)</IntermediateOutputPath>
87     <OutputPath Condition="'$(OutputPath)' == ''">$(BinDir)</OutputPath>
88   </PropertyGroup>
89
90   <!-- Import Build tools common props file where repo-independent properties are found -->
91   <Import Condition="Exists('$(ToolsDir)Build.Common.props')" Project="$(ToolsDir)Build.Common.props" />
92
93   <!-- Setup common target properties that we use to conditionally include sources -->
94   <PropertyGroup>
95     <TargetsFreeBSD Condition="'$(BuildOS)' == 'FreeBSD'">true</TargetsFreeBSD>
96     <TargetsLinux Condition="'$(BuildOS)' == 'Linux'">true</TargetsLinux>
97     <TargetsNetBSD Condition="'$(BuildOS)' == 'NetBSD'">true</TargetsNetBSD>
98     <TargetsOSX Condition="'$(BuildOS)' == 'OSX'">true</TargetsOSX>
99     <TargetsWindows Condition="'$(BuildOS)' == 'Windows_NT'">true</TargetsWindows>
100
101     <TargetsUnix Condition="'$(TargetsFreeBSD)' == 'true' or '$(TargetsLinux)' == 'true' or '$(TargetsNetBSD)' == 'true' or '$(TargetsOSX)' == 'true'">true</TargetsUnix>
102
103     <!-- We are only tracking Linux Distributions for Nuget RID mapping -->
104     <DistroRid Condition="'$(TargetsLinux)' == 'true'">$(__DistroRid)</DistroRid>
105
106   </PropertyGroup>
107
108   <!-- Provides properties for dependency versions and configures dependency verification/auto-upgrade. -->
109   <Import Project="$(ProjectDir)dependencies.props" />
110
111   <!-- Packaging properties -->
112   <PropertyGroup>
113     <LicenseUrl>https://github.com/dotnet/coreclr/blob/master/LICENSE.TXT</LicenseUrl>
114     <PreReleaseLabel>preview1</PreReleaseLabel>
115     <PackageDescriptionFile>$(SourceDir).nuget/descriptions.json</PackageDescriptionFile>
116     <PackageLicenseFile>$(ProjectDir)LICENSE.TXT</PackageLicenseFile>
117     <PackageThirdPartyNoticesFile>$(ProjectDir)THIRD-PARTY-NOTICES.TXT</PackageThirdPartyNoticesFile>
118     <SyncInfoDirectory>$(BaseIntermediateOutputPath)</SyncInfoDirectory>
119
120     <!-- This should be kept in sync with package details in src/.nuget/init/project.json -->
121     <RuntimeIdGraphDefinitionVersion>1.0.2-beta-24224-02</RuntimeIdGraphDefinitionVersion>
122     <RuntimeIdGraphDefinitionFile>$(PackagesDir)/microsoft.netcore.platforms/$(RuntimeIdGraphDefinitionVersion)/runtime.json</RuntimeIdGraphDefinitionFile>
123
124     <!-- This link should be updated for each release milestone, currently this points to 1.1.0-beta -->
125     <ReleaseNotes>https://go.microsoft.com/fwlink/?LinkID=799421</ReleaseNotes>
126
127     <ProjectUrl>https://dot.net</ProjectUrl>
128
129     <!-- Central place to set the versions of all nuget packages produced in the repo -->
130     <PackageVersion Condition="'$(PackageVersion)' == ''">2.1.0</PackageVersion>
131     
132     <!-- Set the boolean below to true to generate packages with stabilized versions -->
133     <StabilizePackageVersion Condition="'$(StabilizePackageVersion)' == ''">false</StabilizePackageVersion>
134     <StableVersion Condition="'$(StabilizePackageVersion)' == 'true' and '$(StableVersion)' == ''">$(PackageVersion)</StableVersion>
135     
136     <!-- On Windows, MSbuild still runs against Desktop FX while it runs on .NET Core on non-Windows. this requires
137          pulling in different packaging dependencies.
138      -->
139     <PackagingTaskDir Condition="'$(TargetsWindows)' == 'true'">$(ToolsDir)net46/</PackagingTaskDir>
140     <BuildNumberMajor Condition="'$(BuildNumberMajor)' == ''">00001</BuildNumberMajor>
141     <!-- defined in buildtools packaging.targets, but we need this before targets are imported -->
142     <PackagePlatform Condition="'$(PackagePlatform)' == ''">$(Platform)</PackagePlatform>
143     <PackagePlatform Condition="'$(PackagePlatform)' == 'amd64'">x64</PackagePlatform>
144     <MinOSForArch>win7</MinOSForArch>
145     <MinOSForArch Condition="'$(PackagePlatform)' == 'arm'">win8</MinOSForArch>
146     <MinOSForArch Condition="'$(PackagePlatform)' == 'arm64'">win10</MinOSForArch>
147         <!-- This property must be set to disable local package installation -->
148     <SkipInstallLocallyBuiltPackages>true</SkipInstallLocallyBuiltPackages>
149
150     <!-- Define packaging attributes for cross target components -->
151     <HasCrossTargetComponents Condition="'$(TargetsWindows)' == 'true' and ('$(PackagePlatform)' =='arm64' or '$(PackagePlatform)' =='arm')">true</HasCrossTargetComponents>
152     <CrossTargetComponentFolder Condition="'$(PackagePlatform)' == 'arm64'">x64</CrossTargetComponentFolder>
153     <CrossTargetComponentFolder Condition="'$(PackagePlatform)' == 'arm'">x86</CrossTargetComponentFolder>
154
155     <PackageOutputPath>$(PackagesBinDir)/pkg/</PackageOutputPath>
156     <SymbolPackageOutputPath>$(PackagesBinDir)/symbolpkg/</SymbolPackageOutputPath>
157     <PackageIndexFile>$(MSBuildThisFileDirectory)/src/.nuget/packageIndex.json</PackageIndexFile>
158
159     <!-- coreclr doesn't currently use the index so don't force it to be in sync -->
160     <SkipIndexCheck>true</SkipIndexCheck>
161   </PropertyGroup>
162
163   <!-- Add required legal files to packages -->
164   <ItemGroup Condition="'$(MSBuildProjectExtension)' == '.pkgproj'">
165     <File Condition="Exists('$(PackageLicenseFile)')"
166           Include="$(PackageLicenseFile)" >
167       <SkipPackageFileCheck>true</SkipPackageFileCheck>
168     </File>
169     <File Condition="Exists('$(PackageThirdPartyNoticesFile)')"
170           Include="$(PackageThirdPartyNoticesFile)" >
171       <SkipPackageFileCheck>true</SkipPackageFileCheck>
172     </File>
173     <PackageIndex Include="$(PackageIndexFile)" />
174   </ItemGroup>
175
176   <!-- Use Roslyn Compilers to build -->
177   <Import Project="$(RoslynPropsFile)" Condition="'$(RunningOnUnix)'!='true' and Exists('$(RoslynPropsFile)') and '$(UseRoslynCompilers)'!='false'" />
178   <Import Project="$(RoslynPropsFile)" Condition="'$(RunningOnUnix)'=='true' and Exists('$(RoslynPropsFile)')" />
179 </Project>