forked from ligershark/side-waffle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.proj
57 lines (45 loc) · 1.87 KB
/
build.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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="FulLBuild">
<!--
msbuild.exe build.proj
-->
<PropertyGroup>
<SourceRoot Condition=" '$(SourceRoot)'=='' ">$(MSBuildProjectDirectory)\</SourceRoot>
<OutputRootNoTrailingSlash Condition=" '$(OutputRoot)'=='' ">$(SourceRoot)OutputRoot</OutputRootNoTrailingSlash>
<OutputRoot Condition=" '$(OutputRoot)'=='' ">$(OutputRootNoTrailingSlash)\</OutputRoot>
<DevFolder Condition=" '$(DevFolder)'=='' ">c:\temp\msbuild\</DevFolder>
<RestorePackages Condition=" '$(RestorePackages)'=='' ">true</RestorePackages>
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)'=='' ">Release</Configuration>
</PropertyGroup>
<ItemGroup>
<!--<ToolsItems Include="$(SourceRoot)Tools\**\*" />-->
<ContentItems Include="$(SourceRoot)content\**\*">
<DestDir>%(RecursiveDir)</DestDir>
</ContentItems>
<ProjectsToBuild Include="$(SourceRoot)TemplatePack.sln" />
</ItemGroup>
<PropertyGroup>
<FullBuildDependsOn>
CoreFullBuild;
</FullBuildDependsOn>
</PropertyGroup>
<Target Name="FullBuild" DependsOnTargets="$(FullBuildDependsOn)"/>
<Target Name="CoreFullBuild">
<MSBuild Projects="@(ProjectsToBuild)" Properties="Configuration=$(Configuration);OutputPath=$(OutputRoot);RestorePackages=$(RestorePackages)"/>
</Target>
<Target Name="CleanAndInitalize">
<MakeDir Directories="$(OutputRoot)"/>
<MakeDir Directories="$(PackageRoot)"/>
<ItemGroup>
<_FilesToDelete Remove="@(_FilesToDelete)"/>
<_FilesToDelete Include="$(OutputRoot)**\*"/>
</ItemGroup>
<Delete Files="@(_FilesToDelete)"/>
<ItemGroup>
<_FilesToDelete Remove="@(_FilesToDelete)"/>
<_FilesToDelete Include="$(PackageRoot)**\*"/>
</ItemGroup>
<Delete Files="@(_FilesToDelete)"/>
</Target>
</Project>