forked from NETMF/Llvm.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildEnv.props
53 lines (43 loc) · 3.72 KB
/
BuildEnv.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
Description:
This property file is imported by the projects in this repository to set global locations
common to all of the projects for a consistent build.
-->
<!--
Allow for a parent to provide/override the defaults provided here
Projects importing this property sheet can still override those settings.
Implementation Note:
ALL properties defined here should be done conditionally to allow inheriting from
a parent. Conditional properties makes this project a well behaved sub module for
other projects that might want to set the build outputs etc... into a different place.
-->
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., BuildEnv.props))\BuildEnv.props" Condition=" '$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., BuildEnv.props))' != '' " />
<PropertyGroup>
<!-- Default to x64 | Debug build if not otherwise specified -->
<Platform Condition="'$(Platform)'==''">x64</Platform>
<Configuration Condition="'$(Configuration)'==''">Debug</Configuration>
<!-- Use the location of this file (at the top of the build tree) to define the root directory, if not already set -->
<BuildRootDir Condition="'$(BuildRootDir)'==''">$(MSBuildThisFileDirectory)</BuildRootDir>
<BuildRootDir Condition="!HasTrailingSlash('$(BuildRootDir)')">$(BuildRootDir)\</BuildRootDir>
<!-- Put build output and intermediate output files into a well known location outside of the source tree -->
<BaseBuildOutputPath Condition="'$(BaseBuildOutputPath)'==''">$(BuildRootDir)BuildOutput</BaseBuildOutputPath>
<BaseBuildOutputPath Condition="!HasTrailingSlash('$(BaseBuildOutputPath)')">$(BaseBuildOutputPath)\</BaseBuildOutputPath>
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'==''" >$(BaseBuildOutputPath)Intermediate\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
<IntDir Condition="'$(IntDir)'==''">$(BaseIntermediateOutputPath)$(Platform)\$(Configuration)\</IntDir>
<BaseOutputPath Condition="'$(BaseOutputPath)'==''">$(BaseBuildOutputPath)Unsigned\</BaseOutputPath>
<OutputPath Condition="'$(OutputPath)'==''">$(BaseOutputPath)$(Platform)\$(Configuration)\</OutputPath>
<OutputPath Condition="!HasTrailingSlash('$(OutputPath)')">$(OutputPath)\</OutputPath>
<OutDir Condition="'$(OutDir)'==''">$(OutputPath)</OutDir>
<BaseSignedOutputPath Condition="'$(SignedOutputPath)'==''">$(BaseBuildOutputPath)Signed\</BaseSignedOutputPath>
<SignedOutputPath Condition="'$(SignedOutputPath)'==''">$(BaseSignedOutputPath)$(Platform)\$(Configuration)\</SignedOutputPath>
<SignedOutputPath Condition="!HasTrailingSlash('$(SignedOutputPath)')">$(SignedOutputPath)\</SignedOutputPath>
<!-- Fix Major and minor build numbers to match LLVM so it's easier to relate to the LLVM version -->
<BuildMajor Condition="'$(BuildMajor)'=='' AND '$(FullBuildNumber)'==''">3</BuildMajor>
<BuildMinor Condition="'$(BuildMinor)'=='' AND '$(FullBuildNumber)'==''">9</BuildMinor>
<SolutionBuildExtensionsDir Condition="'$(SolutionBuildExtensionsDir)'==''">$(BuildRootDir)BuildExtensions\</SolutionBuildExtensionsDir>
<SolutionBuildExtensionsDir Condition="!HasTrailingSlash('$(SolutionBuildExtensionsDir)')">$(SolutionBuildExtensionsDir)</SolutionBuildExtensionsDir>
<BuildOutputPackagesDir>$(BaseBuildOutputPath)\packages\</BuildOutputPackagesDir>
</PropertyGroup>
</Project>