Merge pull request #654 from cmckinsey/coreclr446
[platform/upstream/coreclr.git] / dir.props
1 <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2   <!-- Common properties -->
3   <PropertyGroup>
4     <!-- Set basic properties and normalize -->
5     
6     <BuildArch>$(__BuildArch)</BuildArch>
7     <BuildArch Condition="'$(__BuildArch)'==''">x64</BuildArch>
8     <BuildArch Condition="'$(__BuildArch)' == 'amd64'">x64</BuildArch>
9
10     <BuildType Condition="'$(__BuildType)'==''">Debug</BuildType>
11     <BuildType Condition="'$(__BuildType)' == 'debug'">Debug</BuildType>
12     <BuildType Condition="'$(__BuildType)' == 'release'">Release</BuildType>
13     
14     <BuildOS>$(__BuildOS)</BuildOS>
15     <BuildOS Condition="'$(__BuildOS)' == ''">Windows_NT</BuildOS>
16
17     <ProjectDir>$(__ProjectDir)\</ProjectDir>
18     <ProjectDir Condition="'$(__ProjectDir)'==''">$(MSBuildThisFileDirectory)\</ProjectDir>
19
20     <SourceDir>$(__SourceDir)\</SourceDir>
21     <SourceDir Condition="'$(__SourceDir)'==''">$(ProjectDir)\src\</SourceDir>
22
23     <PackagesGlobalConfig>$(SourceDir).nuget\packages.config</PackagesGlobalConfig>
24     <PackagesDir>$(__PackagesDir)\</PackagesDir>
25     <PackagesDir Condition="'$(__PackagesDir)'==''">$(ProjectDir)\packages\</PackagesDir>
26
27     <RootBinDir>$(__RootBinDir)\</RootBinDir>
28     <RootBinDir Condition="'$(__RootBinDir)'==''">$(ProjectDir)\bin\</RootBinDir>
29
30     <BinDir>$(__BinDir)\</BinDir>
31     <BinDir Condition="'$(__BinDir)'==''">$(RootBinDir)\Product\$(BuildOS).$(BuildArch).$(BuildType)\</BinDir>
32
33     <!-- We don't append back slash because this path is used by nuget.exe as output directory and it
34          fails to write packages to it if the path contains the forward slash.
35     -->
36     <PackagesBinDir>$(__PackagesBinDir)</PackagesBinDir>
37     <PackagesBinDir Condition="'$(__PackagesBinDir)'==''">$(BinDir)\.nuget</PackagesBinDir>
38
39     <ToolsDir>$(__ToolsDir)\</ToolsDir>
40     <ToolsDir Condition="'$(__ToolsDir)'==''">$(RootBinDir)\tools\</ToolsDir>
41
42     <TestWorkingDir>$(__TestWorkingDir)\</TestWorkingDir>
43     <TestWorkingDir Condition="'$(__TestWorkingDir)'==''">$(RootBinDir)\tests\$(BuildOS).$(BuildArch).$(BuildType)\</TestWorkingDir>
44   </PropertyGroup>
45
46   <!-- Setup Nuget properties -->
47   <ItemGroup>
48     <NuSpecSrcs Include="$(SourceDir)\.nuget\Microsoft.DotNet.CoreCLR.nuspec" />
49     <NuSpecSrcs Condition="'$(Configuration)'=='Release'" Include="$(SourceDir)\.nuget\Microsoft.DotNet.CoreCLR.Development.nuspec" />
50     <NuSpecSrcs Condition="'$(Configuration)'=='Debug'" Include="$(SourceDir)\.nuget\Microsoft.DotNet.CoreCLR.Debug.Development.nuspec" />
51   </ItemGroup>
52   <ItemGroup>
53     <!-- Backslash appended, see note in dir.props about the PackagesBinDir property -->
54     <NuSpecs Include="$(PackagesBinDir)\Microsoft.DotNet.CoreCLR.nuspec" />
55     <NuSpecs Condition="'$(Configuration)'=='Release'" Include="$(PackagesBinDir)\Microsoft.DotNet.CoreCLR.Development.nuspec" />
56     <NuSpecs Condition="'$(Configuration)'=='Debug'" Include="$(PackagesBinDir)\Microsoft.DotNet.CoreCLR.Debug.Development.nuspec" />
57   </ItemGroup>
58
59   <!-- Setup common target properties that we use to conditionally include sources -->
60   <PropertyGroup>
61     <TargetsWindows Condition="'$(BuildOS)' == 'Windows_NT'">true</TargetsWindows>
62     <TargetsLinux Condition="'$(BuildOS)' == 'Linux'">true</TargetsLinux>
63     <TargetsOSX Condition="'$(BuildOS)' == 'OSX'">true</TargetsOSX>
64
65     <TargetsUnix Condition="'$(TargetsLinux)' == 'true' or '$(TargetsOSX)' == 'true'">true</TargetsUnix>
66   </PropertyGroup>
67   
68   <!-- Common NuGet properties -->
69   <PropertyGroup>
70     <NuGetToolPath>$(ToolsDir)NuGet.exe</NuGetToolPath>
71     <NuGetConfigFile>$(SourceDir)NuGet.Config</NuGetConfigFile>
72     <NuGetConfigCommandLine
73       Condition="Exists('$(NuGetConfigFile)')">-ConfigFile &quot;$(NuGetConfigFile)&quot;</NuGetConfigCommandLine>
74   </PropertyGroup>
75
76   <!-- Common build tool properties -->
77   <PropertyGroup>
78
79     <BuildToolsCoreCLRPackageName>Microsoft.DotNet.BuildTools.CoreCLR</BuildToolsCoreCLRPackageName>
80     <BuildToolsCoreCLRVersion>1.0.1-prerelease</BuildToolsCoreCLRVersion>
81     <BuildToolsCoreCLRInstallSempahore>$(ToolsDir)BuildTools.$(BuildToolsCoreCLRVersion).installed.semaphore</BuildToolsCoreCLRInstallSempahore>
82
83     <BuildToolsPackageName>Microsoft.DotNet.BuildTools</BuildToolsPackageName>
84     <BuildToolsVersion>1.0.25-prerelease-00009</BuildToolsVersion>
85
86     <BuildToolsCoreCLRTargetInputs>$(MSBuildThisFileFullPath);$(MSBuildThisFileDirectory)build.proj</BuildToolsCoreCLRTargetInputs>
87     <BuildToolsCoreCLRTargetOutputs>$(BuildToolsCoreCLRInstallSempahore)</BuildToolsCoreCLRTargetOutputs>
88
89     <BuildToolsCoreCLRLocation>$(ToolsDir)\$(BuildToolsCoreCLRPackageName).$(BuildToolsCoreCLRVersion)</BuildToolsCoreCLRLocation>
90     <BuildToolsLocation>$(ToolsDir)\$(BuildToolsPackageName).$(BuildToolsVersion)</BuildToolsLocation>
91   </PropertyGroup>
92 </Project>