forked from loresoft/msbuildtasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Master.proj
72 lines (58 loc) · 2.51 KB
/
Master.proj
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="Build" DependsOnTargets="BoostrapCompile;SetCurrentTargetToBuild" >
<CallTarget Targets="ContinueBuild" />
</Target>
<Target Name="SetCurrentTargetToBuild">
<CreateProperty Value="Build">
<Output TaskParameter="Value" PropertyName="CurrentTarget"/>
</CreateProperty>
</Target>
<Target Name="Nightly" DependsOnTargets="BoostrapCompile;SetCurrentTargetToNightly">
<CallTarget Targets="ContinueBuild" />
</Target>
<Target Name="SetCurrentTargetToNightly">
<CreateProperty Value="Nightly">
<Output TaskParameter="Value" PropertyName="CurrentTarget"/>
</CreateProperty>
</Target>
<Target Name="Installer" DependsOnTargets="BoostrapCompile;SetCurrentTargetToInstaller">
<CallTarget Targets="ContinueBuild" />
</Target>
<Target Name="SetCurrentTargetToInstaller">
<CreateProperty Value="Installer">
<Output TaskParameter="Value" PropertyName="CurrentTarget"/>
</CreateProperty>
</Target>
<Target Name="Zip" DependsOnTargets="BoostrapCompile;SetCurrentTargetToZip">
<CallTarget Targets="ContinueBuild" />
</Target>
<Target Name="SetCurrentTargetToZip">
<CreateProperty Value="Zip">
<Output TaskParameter="Value" PropertyName="CurrentTarget"/>
</CreateProperty>
</Target>
<Target Name="Compile" DependsOnTargets="BoostrapCompile;SetCurrentTargetToCompile">
<CallTarget Targets="ContinueBuild" />
</Target>
<Target Name="SetCurrentTargetToCompile">
<CreateProperty Value="Compile">
<Output TaskParameter="Value" PropertyName="CurrentTarget"/>
</CreateProperty>
</Target>
<Target Name="BoostrapCompile">
<CreateItem Include="Build\*">
<Output TaskParameter="Include" ItemName="RemoveFiles" />
</CreateItem>
<Delete Files="@(RemoveFiles)" />
<MSBuild Projects="Source\MSBuild.Community.Tasks.sln" Properties="Configuration=Release" />
<CreateItem Include="Build\*">
<Output TaskParameter="Include" ItemName="BootstrapFiles" />
</CreateItem>
<Copy SourceFiles="@(BootstrapFiles)" DestinationFolder="Bootstrap" />
</Target>
<Target Name="ContinueBuild">
<MSBuild Projects="Master-helper.proj" Targets="$(CurrentTarget)"
Properties="CalledFromMaster=true;MSBuildCommunityTasksPath=$(MSBuildProjectDirectory)\Bootstrap" />
</Target>
</Project>