Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWes Haggard <Wes.Haggard@microsoft.com>2014-12-15 11:22:32 +0300
committerWes Haggard <Wes.Haggard@microsoft.com>2014-12-18 07:43:38 +0300
commit3d95f9cf6e4532df595dd1c694079415afe7d212 (patch)
tree5c1fce68687d5d853cd5a2b3a82a8e41fb034e32 /dir.traversal.targets
parent34b9c0ce3476292edf0ad3838a3693ddff330aed (diff)
Update build to be more consistent no matter how you build it.
This is the initial change to switch to using common targets across the repo. This change adds a dir.props and dir.targets file that each project file will import at the top and bottom of the project to default a lot of the common properties and targets.
Diffstat (limited to 'dir.traversal.targets')
-rw-r--r--dir.traversal.targets21
1 files changed, 21 insertions, 0 deletions
diff --git a/dir.traversal.targets b/dir.traversal.targets
new file mode 100644
index 0000000000..c94b244241
--- /dev/null
+++ b/dir.traversal.targets
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
+ <Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" />
+
+ <Target Name="Build">
+ <!-- To Serialize we use msbuild's batching functionality '%' to force it to batch all similar projects with the same identity
+ however since the project names are unique it will essentially force each to run in its own batch -->
+ <MSBuild Targets="Build" Projects="@(Project)" Condition="'$(SerializeProjects)'=='true'" Properties="Dummy=%(Identity)"/>
+ <MSBuild Targets="Build" Projects="@(Project)" Condition="'$(SerializeProjects)'!='true'" BuildInParallel="true" />
+ </Target>
+
+ <Target Name="Clean">
+ <!-- To Serialize we use msbuild's batching functionality '%' to force it to batch all similar projects with the same identity
+ however since the project names are unique it will essentially force each to run in its own batch -->
+ <MSBuild Targets="Clean" Projects="@(Project)" Condition="'$(SerializeProjects)'=='true'" Properties="Dummy=%(Identity)"/>
+ <MSBuild Targets="Clean" Projects="@(Project)" Condition="'$(SerializeProjects)'!='true'" BuildInParallel="true" />
+ </Target>
+
+ <Target Name="Rebuild" DependsOnTargets="Clean;Build" />
+
+</Project> \ No newline at end of file