Add to model.xml several members we wish to expose in the FX (#6310)
[platform/upstream/coreclr.git] / dir.props
1 <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2
3   <!--
4     $(OS) is set to Unix/Windows_NT. This comes from an environment variable on Windows and MSBuild on Unix.
5   -->
6   <PropertyGroup>
7     <OsEnvironment Condition="'$(OsEnvironment)'=='' and '$(OS)'=='OSX'">Unix</OsEnvironment>
8     <OsEnvironment Condition="'$(OsEnvironment)'==''">$(OS)</OsEnvironment>
9   </PropertyGroup>
10
11   <!-- Build Tools Versions -->
12   <PropertyGroup>
13     <RoslynVersion>1.0.0-rc3-20150510-01</RoslynVersion>
14     <RoslynPackageName>Microsoft.Net.ToolsetCompilers</RoslynPackageName>
15   </PropertyGroup>
16
17     <!--
18      Switching to the .NET Core version of the BuildTools tasks seems to break numerous scenarios, such as VS intellisense and resource designer
19      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.
20      -->
21   <PropertyGroup>
22     <BuildToolsTargets45>true</BuildToolsTargets45>
23   </PropertyGroup>
24
25   <!-- Common properties -->
26   <PropertyGroup>
27     <!-- Set basic properties and normalize -->
28
29     <BuildArch>$(__BuildArch)</BuildArch>
30     <BuildArch Condition="'$(__BuildArch)'==''">x64</BuildArch>
31     <BuildArch Condition="'$(__BuildArch)' == 'amd64'">x64</BuildArch>
32
33     <BuildType Condition="'$(__BuildType)'==''">Debug</BuildType>
34     <BuildType Condition="'$(__BuildType)' == 'debug'">Debug</BuildType>
35     <BuildType Condition="'$(__BuildType)' == 'release'">Release</BuildType>
36     <BuildType Condition="'$(__BuildType)' == 'checked'">Checked</BuildType>
37
38     <BuildOS>$(__BuildOS)</BuildOS>
39     <BuildOS Condition="'$(__BuildOS)' == ''">Windows_NT</BuildOS>
40
41     <ProjectDir>$(__ProjectDir)\</ProjectDir>
42     <ProjectDir Condition="'$(__ProjectDir)'==''">$(MSBuildThisFileDirectory)</ProjectDir>
43
44     <SourceDir>$(__SourceDir)\</SourceDir>
45     <SourceDir Condition="'$(__SourceDir)'==''">$(ProjectDir)src\</SourceDir>
46
47     <PackagesDir>$(__PackagesDir)\</PackagesDir>
48     <PackagesDir Condition="'$(__PackagesDir)'==''">$(ProjectDir)packages\</PackagesDir>
49
50     <RootBinDir>$(__RootBinDir)\</RootBinDir>
51     <RootBinDir Condition="'$(__RootBinDir)'==''">$(ProjectDir)bin\</RootBinDir>
52
53     <BinDir>$(__BinDir)\</BinDir>
54     <BinDir Condition="'$(__BinDir)'==''">$(RootBinDir)Product\$(BuildOS).$(BuildArch).$(BuildType)\</BinDir>
55
56     <IntermediateOutputRootPath Condition="'$(IntermediateOutputRootPath)' == ''">$(__IntermediatesDir)\</IntermediateOutputRootPath>
57
58     <!-- We don't append back slash because this path is used by nuget.exe as output directory and it
59          fails to write packages to it if the path contains the forward slash.
60     -->
61     <PackagesBinDir>$(__PackagesBinDir)</PackagesBinDir>
62     <PackagesBinDir Condition="'$(__PackagesBinDir)'==''">$(BinDir).nuget\</PackagesBinDir>
63
64     <ToolsDir Condition="'$(ToolsDir)'==''">$(ProjectDir)Tools/</ToolsDir>
65     <DotnetCliPath Condition="'$(DotnetCliPath)'==''">$(ToolsDir)dotnetcli/</DotnetCliPath>
66     <OverrideToolHost>$(DotnetCliPath)dotnet</OverrideToolHost> 
67     <BuildToolsSemaphore Condition="'$(BuildToolsSemaphore)' == ''">$(ToolsDir)Microsoft.DotNet.Build.Tasks.dll</BuildToolsSemaphore>
68
69     <TestWorkingDir>$(__TestWorkingDir)\</TestWorkingDir>
70     <TestWorkingDir Condition="'$(__TestWorkingDir)'==''">$(RootBinDir)tests\$(BuildOS).$(BuildArch).$(BuildType)\</TestWorkingDir>
71     <BuildToolsTaskDir Condition="'$(BuildToolsTargets45)' == 'true'">$(ToolsDir)net45/</BuildToolsTaskDir>
72
73     <Platform Condition="'$(Platform)' == ''">$(BuildArch)</Platform>
74     <Platform Condition="'$(Platform)' == 'amd64'">x64</Platform>
75
76   </PropertyGroup>
77
78   <!-- Output paths -->
79   <PropertyGroup>
80     <BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)' == ''">$(RootBinDir)obj/</BaseIntermediateOutputPath>
81     <IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''">$(BaseIntermediateOutputPath)\$(BuildOS).$(BuildArch).$(BuildType)</IntermediateOutputPath>
82     <OutputPath Condition="'$(OutputPath)' == ''">$(BaseIntermediateOutputPath)\$(BuildOS).$(BuildArch).$(BuildType)</OutputPath>
83     <FinalOutputPath Condition="'$(FinalOutputPath)' == ''">$(BinDir)</FinalOutputPath>
84   </PropertyGroup>
85
86   <Import Condition="Exists('$(ToolsDir)BuildVersion.targets')" Project="$(ToolsDir)BuildVersion.targets" />
87
88   <!-- Import Build tools common props file where repo-independent properties are found -->
89   <Import Condition="Exists('$(ToolsDir)Build.Common.props')" Project="$(ToolsDir)Build.Common.props" />
90
91
92   <!-- Common nuget properties -->
93   <PropertyGroup>
94     <NuGetToolPath Condition="'$(NuGetToolPath)'==''">$(PackagesDir)NuGet.exe</NuGetToolPath>
95     <NuGetConfigFile Condition="'$(NuGetConfigFile)'==''">$(SourceDir)NuGet.Config</NuGetConfigFile>
96     <NuGetConfigCommandLine>-ConfigFile "$(NuGetConfigFile)"</NuGetConfigCommandLine>
97
98     <NugetRestoreCommand>"$(NuGetToolPath)"</NugetRestoreCommand>
99     <NugetRestoreCommand>$(NugetRestoreCommand) install</NugetRestoreCommand>
100     <!-- Trim off the last slash so that nuget doesn't get confused and say there are illegal characters on
101          the path. -->
102     <NugetRestoreCommand>$(NugetRestoreCommand) -OutputDirectory "$(PackagesDir.TrimEnd('\\'))"</NugetRestoreCommand>
103     <NugetRestoreCommand>$(NugetRestoreCommand) $(NuGetConfigCommandLine)</NugetRestoreCommand>
104     <NugetRestoreCommand>$(NugetRestoreCommand) -Verbosity detailed</NugetRestoreCommand>
105     <NugetRestoreCommand Condition="'$(OsEnvironment)'=='Unix'">mono $(NuGetRestoreCommand)</NugetRestoreCommand>
106   </PropertyGroup>
107
108   <PropertyGroup>
109     <DotnetToolCommand Condition="'$(DotnetToolCommand)'=='' and '$(OsEnvironment)'!='Unix'">$(DotnetCliPath)dotnet.exe</DotnetToolCommand>
110     <DotnetToolCommand Condition="'$(DotnetToolCommand)'=='' and '$(OsEnvironment)'=='Unix'">$(DotnetCliPath)dotnet</DotnetToolCommand>
111
112     <DnuRestoreCommand>$(DnuRestoreCommand) "$(DotnetToolCommand)"</DnuRestoreCommand>
113     <DnuRestoreCommand>$(DnuRestoreCommand) restore</DnuRestoreCommand>
114     <DnuRestoreCommand>$(DnuRestoreCommand) --packages "$(PackagesDir.TrimEnd('\\'))"</DnuRestoreCommand>
115   </PropertyGroup>
116
117   <!--
118     Set up Roslyn predefines
119   -->
120   <PropertyGroup>
121     <RoslynPackageDir>$(PackagesDir)/$(RoslynPackageName).$(RoslynVersion)/</RoslynPackageDir>
122     <RoslynPropsFile>$(RoslynPackageDir)build/Microsoft.Net.ToolsetCompilers.props</RoslynPropsFile>
123   </PropertyGroup>
124
125   <!-- Setup common target properties that we use to conditionally include sources -->
126   <PropertyGroup>
127     <TargetsFreeBSD Condition="'$(BuildOS)' == 'FreeBSD'">true</TargetsFreeBSD>
128     <TargetsLinux Condition="'$(BuildOS)' == 'Linux'">true</TargetsLinux>
129     <TargetsNetBSD Condition="'$(BuildOS)' == 'NetBSD'">true</TargetsNetBSD>
130     <TargetsOSX Condition="'$(BuildOS)' == 'OSX'">true</TargetsOSX>
131     <TargetsWindows Condition="'$(BuildOS)' == 'Windows_NT'">true</TargetsWindows>
132
133     <TargetsUnix Condition="'$(TargetsFreeBSD)' == 'true' or '$(TargetsLinux)' == 'true' or '$(TargetsNetBSD)' == 'true' or '$(TargetsOSX)' == 'true'">true</TargetsUnix>
134
135     <!-- We are only tracking Linux Distributions for Nuget RID mapping -->
136     <DistroRid Condition="'$(TargetsLinux)' == 'true'">$(__DistroRid)</DistroRid>
137
138   </PropertyGroup>
139
140   <!-- Packaging properties -->
141   <PropertyGroup>
142     <PreReleaseLabel>beta</PreReleaseLabel>
143     <PackageDescriptionFile>$(SourceDir).nuget/descriptions.json</PackageDescriptionFile>
144     <PackageLicenseFile>$(SourceDir).nuget/dotnet_library_license.txt</PackageLicenseFile>
145     <PackageThirdPartyNoticesFile>$(SourceDir).nuget/ThirdPartyNotices.txt</PackageThirdPartyNoticesFile>
146
147     <!-- This should be kept in sync with package details in src/.nuget/init/project.json -->
148     <RuntimeIdGraphDefinitionFile>$(PackagesDir)/Microsoft.NETCore.Platforms/1.0.2-beta-24224-02/runtime.json</RuntimeIdGraphDefinitionFile>
149
150     <!-- This link should be updated for each release milestone, currently this points to 1.1.0-beta -->
151     <ReleaseNotes>https://go.microsoft.com/fwlink/?LinkID=799421</ReleaseNotes>
152
153     <ProjectUrl>https://dot.net</ProjectUrl>
154
155     <!-- PreReleaseSuffix for packages published from closed build (e.g. CoreCLR for Arm32, APISet, etc) -->
156     <ExternalExpectedPrerelease>beta-24311-00</ExternalExpectedPrerelease>
157
158     <!-- On Windows, MSbuild still runs against Desktop FX while it runs on .NET Core on non-Windows. this requires
159          pulling in different packaging dependencies.
160      -->
161     <PackagingTaskDir Condition="'$(TargetsWindows)' == 'true'">$(ToolsDir)net45/</PackagingTaskDir>
162     <BuildNumberMajor Condition="'$(BuildNumberMajor)' == ''">00001</BuildNumberMajor>
163     <!-- defined in buildtools packaging.targets, but we need this before targets are imported -->
164     <PackagePlatform Condition="'$(PackagePlatform)' == ''">$(Platform)</PackagePlatform>
165     <PackagePlatform Condition="'$(PackagePlatform)' == 'amd64'">x64</PackagePlatform>
166     <MinOSForArch>win7</MinOSForArch>
167     <MinOSForArch Condition="'$(PackagePlatform)' == 'arm'">win8</MinOSForArch>
168     <MinOSForArch Condition="'$(PackagePlatform)' == 'arm64'">win10</MinOSForArch>
169     
170     <!-- Arm64 cross target components are x64 hosted -->
171     <HasCrossTargetComponents Condition="'$(PackagePlatform)' =='arm64'">true</HasCrossTargetComponents>
172     <CrossTargetComponentFolder Condition="'$(PackagePlatform)' == 'arm64'">x64</CrossTargetComponentFolder>
173
174     <PackageOutputPath>$(PackagesBinDir)/pkg/</PackageOutputPath>
175     <SymbolPackageOutputPath>$(PackagesBinDir)/symbolpkg/</SymbolPackageOutputPath>
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   </ItemGroup>
189
190 </Project>