forked from kerryjiang/SuperSocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSuperSocket.build
111 lines (96 loc) · 4.02 KB
/
SuperSocket.build
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
107
108
109
110
<?xml version="1.0" ?>
<project name="SuperSocket" default="makeRelease" xmlns="http://nant.sf.net/schemas/nant.xsd">
<property name="build.dir" value="${project::get-base-directory()}" />
<property name="releaseVersion" overwrite="false" value=""></property>
<target name="zipSourceCode" description="zip the source code">
<zip zipfile="SuperSocket${releaseVersionTag}.Source.zip">
<fileset basedir=".">
<include name="**/*" />
<exclude name="**/bin/**" />
<exclude name="**/obj/**" />
<exclude name="**/.git/**" />
<exclude name="**/*.user" />
<exclude name="**/*.suo" />
<exclude name="**/.gitignore" />
<exclude name="*Push.bat" />
<exclude name="*SuperSocket.build" />
</fileset>
</zip>
</target>
<target name="cleanObjDir" description="clear the obj dir">
<delete>
<fileset>
<include name="**/obj/**"/>
</fileset>
</delete>
</target>
<target name="zipBinaries" description="zip the binary output">
<zip zipfile="SuperSocket${releaseVersionTag}.Binaries.zip">
<fileset basedir="bin">
<include name="**/*" />
</fileset>
</zip>
</target>
<target name="buildSln" description="build the solution">
<msbuild project="${solutionFile}" verbose="true">
<arg value="/t:Clean;Build" />
<arg value="/p:OutputPath=..\bin\${netFxVersion}\${configuration}" />
</msbuild>
</target>
<target name="buildPrj" description="build the project">
<msbuild project="${solutionFile}" verbose="true">
<arg value="/t:Clean;Build" />
<arg value="/p:OutputPath=..\..\bin\${netFxVersion}\${configuration}" />
</msbuild>
</target>
<target name="makeRelease" description="make the release package">
<property name="releaseVersionTag" value=""/>
<if test="${string::get-length(releaseVersion) > 0}">
<property name="releaseVersionTag" value="(${releaseVersion})"/>
</if>
<call target="zipSourceCode" />
<property name="netFxVersion" value="Net35" />
<property name="configuration" value="Debug" />
<property name="solutionFile" value="SuperSocket.2010.NET35.sln" />
<call target="buildSln" />
<property name="solutionFile" value="Management\Server\SuperSocket.ServerManager.Net35.csproj" />
<call target="buildPrj" />
<call target="cleanObjDir" />
<property name="netFxVersion" value="Net35" />
<property name="configuration" value="Release" />
<property name="solutionFile" value="SuperSocket.2010.NET35.sln" />
<call target="buildSln" />
<property name="solutionFile" value="Management\Server\SuperSocket.ServerManager.Net35.csproj" />
<call target="buildPrj" />
<call target="cleanObjDir" />
<property name="netFxVersion" value="Net40" />
<property name="configuration" value="Debug" />
<property name="solutionFile" value="SuperSocket.2010.sln" />
<call target="buildSln" />
<property name="solutionFile" value="Management\Server\SuperSocket.ServerManager.Net40.csproj" />
<call target="buildPrj" />
<call target="cleanObjDir" />
<property name="netFxVersion" value="Net40" />
<property name="configuration" value="Release" />
<property name="solutionFile" value="SuperSocket.2010.sln" />
<call target="buildSln" />
<property name="solutionFile" value="Management\Server\SuperSocket.ServerManager.Net40.csproj" />
<call target="buildPrj" />
<call target="cleanObjDir" />
<property name="netFxVersion" value="Net45" />
<property name="configuration" value="Debug" />
<property name="solutionFile" value="SuperSocket.2012.sln" />
<call target="buildSln" />
<property name="solutionFile" value="Management\Server\SuperSocket.ServerManager.Net45.csproj" />
<call target="buildPrj" />
<call target="cleanObjDir" />
<property name="netFxVersion" value="Net45" />
<property name="configuration" value="Release" />
<property name="solutionFile" value="SuperSocket.2012.sln" />
<call target="buildSln" />
<property name="solutionFile" value="Management\Server\SuperSocket.ServerManager.Net45.csproj" />
<call target="buildPrj" />
<call target="cleanObjDir" />
<call target="zipBinaries" />
</target>
</project>