Fix build error for mscoree coreclr.exports (#24547)
[platform/upstream/coreclr.git] / dir.common.props
1 <Project>
2
3   <!-- This file contains build properties that apply to product
4        projects and test projects. It's imported by
5        tests/dir.common.props, and the global dir.props. -->
6
7   <PropertyGroup>
8     <CoreclrDir>$(MSBuildThisFileDirectory)</CoreclrDir>
9     <PackagesDir>$(CoreclrDir)/.packages</PackagesDir>
10
11     <!-- [ARCADE_REMOVE] This property can be removed after build-tools is removed. -->
12     <PackageOutputPath>$(PackagesDir)</PackageOutputPath>
13   </PropertyGroup>
14
15   <!-- Define NuGet properties for scenarios where they aren't set. From the command line.
16        Should match Nuget.config at root. -->
17   <PropertyGroup>
18     <NuGetPackageRoot>$(PackagesDir)</NuGetPackageRoot>
19     <RestorePackagesPath>$(PackagesDir)</RestorePackagesPath>
20   </PropertyGroup>
21
22   <!-- Set default Configuration and Platform -->
23   <PropertyGroup>
24     <BuildArch>$(__BuildArch)</BuildArch>
25     <BuildArch Condition="'$(__BuildArch)'==''">x64</BuildArch>
26     <BuildArch Condition="'$(__BuildArch)' == 'amd64'">x64</BuildArch>
27
28     <BuildType>$(__BuildType)</BuildType>
29     <BuildType Condition="'$(__BuildType)'==''">Debug</BuildType>
30     <BuildType Condition="'$(__BuildType)' == 'debug'">Debug</BuildType>
31     <BuildType Condition="'$(__BuildType)' == 'release'">Release</BuildType>
32     <BuildType Condition="'$(__BuildType)' == 'checked'">Checked</BuildType>
33
34     <BuildOS>$(__BuildOS)</BuildOS>
35     <BuildOS Condition="'$(__BuildOS)' == '' And '$([MSBuild]::IsOSPlatform(Windows))' == 'true'">Windows_NT</BuildOS>
36     <BuildOS Condition="'$(__BuildOS)' == '' And '$([MSBuild]::IsOSPlatform(Linux))' == 'true'">Linux</BuildOS>
37     <BuildOS Condition="'$(__BuildOS)' == '' And '$([MSBuild]::IsOSPlatform(OSX))' == 'true'">OSX</BuildOS>
38     <!-- TODO: converge on one property for BuildOS and __BuildOS, and remove this extra line. -->
39     <__BuildOS>$(BuildOS)</__BuildOS>
40
41     <Configuration Condition="'$(Configuration)' == ''">$(BuildType)</Configuration>
42     <Platform Condition="'$(Platform)' == ''">$(BuildArch)</Platform>
43
44     <PlatformConfigPathPart>$(BuildOS).$(BuildArch).$(BuildType)</PlatformConfigPathPart>
45   </PropertyGroup>
46 </Project>