summaryrefslogtreecommitdiff
path: root/dir.props
diff options
context:
space:
mode:
authoralexghiondea <ghiondea.alexandru@microsoft.com>2015-02-09 13:32:28 -0800
committeralexghiondea <ghiondea.alexandru@microsoft.com>2015-02-09 13:32:28 -0800
commitfcd8b5a658da87f113d5babec608526a644fd5a9 (patch)
tree6028c11eebf7cf2628dff70d4bf2d683dabb24d9 /dir.props
parentb0ac89b6589d1dc34c0b3421bf732e5bf2118b82 (diff)
downloadcoreclr-fcd8b5a658da87f113d5babec608526a644fd5a9.tar.gz
coreclr-fcd8b5a658da87f113d5babec608526a644fd5a9.tar.bz2
coreclr-fcd8b5a658da87f113d5babec608526a644fd5a9.zip
Provide defaults for the values that come from the build.cmd script.
Diffstat (limited to 'dir.props')
-rw-r--r--dir.props20
1 files changed, 20 insertions, 0 deletions
diff --git a/dir.props b/dir.props
index 5d4cd1e0ef..ed034d6a29 100644
--- a/dir.props
+++ b/dir.props
@@ -1,20 +1,40 @@
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Common properties -->
<PropertyGroup>
+ <BuildArch Condition="'$(__BuildArch)'==''">amd64</BuildArch>
<BuildArch Condition="'$(__BuildArch)' == 'x64'">amd64</BuildArch>
+
+ <BuildType Condition="'$(__BuildType)'==''">Debug</BuildType>
<BuildType Condition="'$(__BuildType)' == 'debug'">Debug</BuildType>
<BuildType Condition="'$(__BuildType)' == 'release'">Release</BuildType>
+
+
<ProjectDir>$(__ProjectDir)\</ProjectDir>
+ <ProjectDir Condition="'$(__ProjectDir)'==''">$(MSBuildThisFileDirectory)\</ProjectDir>
+
<SourceDir>$(__SourceDir)\</SourceDir>
+ <SourceDir Condition="'$(__SourceDir)'==''">$(ProjectDir)\src\</SourceDir>
+
<PackagesDir>$(__PackagesDir)\</PackagesDir>
+ <PackagesDir Condition="'$(__PackagesDir)'==''">$(SourceDir)\.nuget\</PackagesDir>
+
<RootBinDir>$(__RootBinDir)\</RootBinDir>
+ <RootBinDir Condition="'$(__RootBinDir)'==''">$(ProjectDir)\binaries\</RootBinDir>
+
<BinDir>$(__BinDir)\</BinDir>
+ <BinDir Condition="'$(__BinDir)'==''">$(RootBinDir)\Product\$(BuildArch)\$(BuildType)\</BinDir>
+
<!-- We dont append back slash because this path is used by nuget.exe as output directory and it
fails to write packages to it if the path contains the forward slash.
-->
<PackagesBinDir>$(__PackagesBinDir)</PackagesBinDir>
+ <PackagesBinDir Condition="'$(__PackagesBinDir)'==''">$(BinDir)\.nuget</PackagesBinDir>
+
<ToolsDir>$(__ToolsDir)\</ToolsDir>
+ <ToolsDir Condition="'$(__ToolsDir)'==''">$(RootBinDir)\tools\</ToolsDir>
+
<TestWorkingDir>$(__TestWorkingDir)\</TestWorkingDir>
+ <TestWorkingDir Condition="'$(__TestWorkingDir)'==''">$(RootBinDir)\tests\$(BuildArch)\$(BuildType)\</TestWorkingDir>
</PropertyGroup>
<!-- Common NuGet properties -->