-
Notifications
You must be signed in to change notification settings - Fork 0
/
ht4c.buildproj
87 lines (74 loc) · 3.39 KB
/
ht4c.buildproj
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0" DefaultTargets="Make">
<!-- Master files to make -->
<PropertyGroup>
<Version>0.9.8.11</Version>
</PropertyGroup>
<!-- Check for MSBuildCommunityTasks -->
<PropertyGroup>
<MSBuildCommunityTasksTargets>$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets</MSBuildCommunityTasksTargets>
<HasMSBuildCommunityTasks>false</HasMSBuildCommunityTasks>
<HasMSBuildCommunityTasks Condition="Exists('$(MSBuildCommunityTasksTargets)')">true</HasMSBuildCommunityTasks>
</PropertyGroup>
<!-- Get machine's architecture -->
<PropertyGroup>
<MachineProcessorArchitecture>$(registry:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment@PROCESSOR_ARCHITECTURE)</MachineProcessorArchitecture>
<Is32Bit>False</Is32Bit>
<Is32Bit Condition="'$(MachineProcessorArchitecture)' == 'x86'">true</Is32Bit>
<Is64Bit>False</Is64Bit>
<Is64Bit Condition="'$(MachineProcessorArchitecture)' == 'AMD64'">true</Is64Bit>
</PropertyGroup>
<!-- Platform toolset -->
<PropertyGroup>
<PlatformToolset Condition="'$(PlatformToolset)' == ''">v142</PlatformToolset>
</PropertyGroup>
<!-- Make configuration Debug or Release -->
<PropertyGroup>
<Debug>false</Debug>
<Debug Condition="'$(Configuration)' == '' Or '$(Configuration)' == 'Debug'">true</Debug>
<Release>false</Release>
<Release Condition="'$(Configuration)' == '' Or '$(Configuration)' == 'Release'">true</Release>
</PropertyGroup>
<!-- Configuration group -->
<ItemGroup>
<MakeConfiguration Include="." Condition="$(Is64Bit) == true And $(Debug) == true" >
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</MakeConfiguration>
<MakeConfiguration Include="." Condition="$(Is64Bit) == true And $(Release) == true" >
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</MakeConfiguration>
</ItemGroup>
<!-- Import MSBuildCommunityTasksTargets if available -->
<Import Project="$(MSBuildCommunityTasksTargets)"
Condition="$(HasMSBuildCommunityTasks) == true"/>
<!-- Build and make master -->
<Target Name="Make"
DependsOnTargets="CleanMaster;Build;MakeMaster">
</Target>
<!-- Build -->
<Target Name="Build">
<MSBuild
Projects="ht4c.sln"
Targets="Build"
Properties="Configuration=%(MakeConfiguration.Configuration);Platform=%(MakeConfiguration.Platform);PlatformToolset=$(PlatformToolset)"
ContinueOnError="false" />
</Target>
<!-- Make master -->
<Target Name="MakeMaster"
Condition="$(HasMSBuildCommunityTasks) == true" >
</Target>
<!-- Cleans build and deletes the master files -->
<Target Name="Clean"
DependsOnTargets="CleanMaster">
<MSBuild
Projects="ht4c.sln"
Targets="Clean"
Properties="Configuration=%(MakeConfiguration.Configuration);Platform=%(MakeConfiguration.Platform);PlatformToolset=$(PlatformToolset)"
ContinueOnError="false" />
</Target>
<!-- Deletes the master files -->
<Target Name="CleanMaster">
</Target>
</Project>