-
Notifications
You must be signed in to change notification settings - Fork 6
/
jabber-net.proj
106 lines (90 loc) · 4.28 KB
/
jabber-net.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>
<Import Project="version"/>
<Import Project="build.targets"/>
<PropertyGroup>
<JabberNetDirectory>$(MSBuildProjectDirectory)</JabberNetDirectory>
<MonoOutput>MonoZip</MonoOutput>
<SetupOutput>dist</SetupOutput>
</PropertyGroup>
<Target Name="Compile2005" DependsOnTargets="Version">
<MSBuild Projects="2005-jabber-net.sln" Targets="2005-jabber-net;2005-muzzle" Properties="Configuration=Debug" />
</Target>
<Target Name="NUnitBuild2005" DependsOnTargets="Compile2005">
<MSBuild Projects="2005-jabber-net.sln" Targets="2005-test" Properties="Configuration=Debug">
<Output ItemName="NUnitFiles" TaskParameter="TargetOutputs"/>
</MSBuild>
</Target>
<Target Name="Setup2005" DependsOnTargets="NUnit2005;Doc">
<MSBuild Projects="2005-jabber-net.sln" Targets="JabberNetInstaller" Properties="Configuration=Debug;WixVersion=$(Major).$(Minor).$(Build).$(Revision)">
<Output ItemName="JabberNetInstallerFiles" TaskParameter="TargetOutputs"/>
</MSBuild>
</Target>
<Target Name="CompileMono" DependsOnTargets="Version">
<MSBuild Projects="mono-jabber-net.csproj"
Properties="TargetFrameworkVersion=Mono v2.0">
<Output ItemName="MonoFiles" TaskParameter="TargetOutputs"/>
</MSBuild>
</Target>
<Target Name="Zip" DependsOnTargets="CompileMono">
<CreateItem Include="@(MonoFiles->'%(rootdir)%(directory)\*.dll')">
<Output TaskParameter="Include" ItemName="MonoZipFiles"/>
</CreateItem>
<CreateProperty Value="$(MonoOutput)\Jabber-Net.Mono.v$(Major).$(Minor).$(Build).$(Revision).zip">
<Output TaskParameter="Value" PropertyName="MonoZipFile"/>
</CreateProperty>
<MakeDir Directories="$(MonoOutput)"
Condition="!Exists('$(MonoOutput)')"/>
<Message Text="Zip Working Directory: @(MonoFiles->'%(rootdir)%(directory)')"/>
<Zip Files="@(MonoZipFiles)"
WorkingDirectory="@(MonoFiles->'%(rootdir)%(directory)')"
ZipFileName="$(MonoZipFile)"/>
</Target>
<ItemGroup>
<TestAssembly Include="test\bin5\Debug\test.dll"/>
</ItemGroup>
<Target Name="NUnit2005" DependsOnTargets="NUnitBuild2005">
<NUnit Assemblies="@(TestAssembly)"/>
</Target>
<Target Name="NDoc" DependsOnTargets="Compile2005">
<NDoc Documenter="MSDN" ProjectFilePath="docs\jabber-net.ndoc"/>
</Target>
<Target Name="Doc" DependsOnTargets="Compile2005">
<Exec Command=""C:\Program Files\EWSoftware\Sandcastle Help File Builder\SandcastleBuilderConsole.exe" jabber-net-helpfilebuilder.shfb" />
</Target>
<ItemGroup>
<VsContent Include="vsi\Jabber-Net.vscontent"/>
</ItemGroup>
<ItemGroup>
<DllFiles Include="muzzle\bin5\Debug\*.dll" />
</ItemGroup>
<Target Name="VSI" DependsOnTargets="Compile2005">
<Copy SourceFiles="@(DllFiles)" DestinationFolder="vsi\Jabber-Net">
<Output TaskParameter="DestinationFiles" ItemName="AdditionalFiles"/>
</Copy>
<Zip Files="@(VsContent);@(AdditionalFiles)"
WorkingDirectory="vsi"
ZipFileName="vsi\jabber-net.vsi" />
<Delete Files="@(AdditionalFiles)" />
</Target>
<Target Name="Clean">
<Delete Files="vsi\jabber-net.vsi"/>
<MSBuild Projects="2005-jabber-net.sln" Targets="Clean" />
<MSBuild Projects="mono-jabber-net.csproj" Properties="TargetFrameworkVersion=Mono v2.0"
Targets="Clean" />
<RemoveDir Directories="$(MonoOutput)"/>
<RemoveDir Directories="$(SetupOutput)"/>
</Target>
<Target Name="CopySetupFiles" DependsOnTargets="Zip;Setup2005">
<MakeDir Directories="$(SetupOutput)"
Condition="!Exists('$(SetupOutput)')"/>
<Message Text="VS2005 Installation files: @(JabberNetInstallerFiles)"/>
<Message Text="Mono Installation files: $(MonoZipFile)"/>
<Copy SourceFiles="@(JabberNetInstallerFiles)" DestinationFolder="$(SetupOutput)"/>
<Copy SourceFiles="$(MonoZipFile)" DestinationFolder="$(SetupOutput)"/>
</Target>
<Target Name="Build" DependsOnTargets="CopySetupFiles">
<Message Text="Jabber-NET Build Complete"/>
</Target>
</Project>