diff options
author | Adam Frisby | 2007-06-21 17:08:21 +0000 |
---|---|---|
committer | Adam Frisby | 2007-06-21 17:08:21 +0000 |
commit | e93869c7a785a4f375685ffa33c913033ed1c85a (patch) | |
tree | abb5e2c58f8750a1bc05acf58716b6b025da4d15 /tools/mass test client/TestClient.build | |
parent | Fixed the struct and null compare bug. (diff) | |
download | opensim-SC-e93869c7a785a4f375685ffa33c913033ed1c85a.zip opensim-SC-e93869c7a785a4f375685ffa33c913033ed1c85a.tar.gz opensim-SC-e93869c7a785a4f375685ffa33c913033ed1c85a.tar.bz2 opensim-SC-e93869c7a785a4f375685ffa33c913033ed1c85a.tar.xz |
* Importing Ming's mass test client
Diffstat (limited to '')
-rw-r--r-- | tools/mass test client/TestClient.build | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/tools/mass test client/TestClient.build b/tools/mass test client/TestClient.build new file mode 100644 index 0000000..803377b --- /dev/null +++ b/tools/mass test client/TestClient.build | |||
@@ -0,0 +1,125 @@ | |||
1 | <?xml version="1.0"?> | ||
2 | |||
3 | <project | ||
4 | name="libsecondlife" | ||
5 | default="build"> | ||
6 | |||
7 | <!-- global framework settings --> | ||
8 | <property | ||
9 | name="target.framework" | ||
10 | value="${framework::get-target-framework()}" /> | ||
11 | <property | ||
12 | name="assembly.dir" | ||
13 | value="${framework::get-assembly-directory(target.framework)}" /> | ||
14 | |||
15 | <!-- global project settings --> | ||
16 | <xmlpeek | ||
17 | file="../../../libsecondlife.build" | ||
18 | xpath="/project/property[@name = 'project.version']/@value" | ||
19 | property="project.version" /> | ||
20 | <property | ||
21 | name="build.number" | ||
22 | value="${math::abs(math::floor(timespan::get-total-days(datetime::now() | ||
23 | - datetime::parse('01/01/2002'))))}" /> | ||
24 | <property | ||
25 | name="assembly" | ||
26 | value="TestClient"/> | ||
27 | <property | ||
28 | name="bin_dir" | ||
29 | value="../../../bin" /> | ||
30 | |||
31 | <!-- default configuration --> | ||
32 | <property | ||
33 | name="project.config" | ||
34 | value="debug" /> <!-- debug|release --> | ||
35 | |||
36 | <!-- named configurations --> | ||
37 | <target | ||
38 | name="init" | ||
39 | description="Initializes build properties"> | ||
40 | <call target="${project.config}" /> | ||
41 | </target> | ||
42 | |||
43 | <target | ||
44 | name="debug" | ||
45 | description="configures a debug build"> | ||
46 | <property | ||
47 | name="build.debug" | ||
48 | value="true" /> | ||
49 | <property | ||
50 | name="package.name" | ||
51 | value="${project::get-name()}-${project.version}-${project.config}" /> | ||
52 | <property | ||
53 | name="assembly.configuration" | ||
54 | value="${framework::get-target-framework()}.${platform::get-name()} [${project.config}]" /> | ||
55 | </target> | ||
56 | |||
57 | <target | ||
58 | name="release" | ||
59 | description="configures a release build"> | ||
60 | <property | ||
61 | name="project.config" | ||
62 | value="release" /> | ||
63 | <property | ||
64 | name="build.debug" | ||
65 | value="false" /> | ||
66 | <property | ||
67 | name="package.name" | ||
68 | value="${project::get-name()}-${project.version}" /> | ||
69 | <property | ||
70 | name="assembly.configuration" | ||
71 | value="${framework::get-target-framework()}.${platform::get-name()}" /> | ||
72 | </target> | ||
73 | |||
74 | <!-- build tasks --> | ||
75 | <target | ||
76 | name="build" | ||
77 | depends="init" | ||
78 | description="Builds the binaries for the current configuration"> | ||
79 | <echo message="Build Directory is ${bin_dir}/" /> | ||
80 | <mkdir | ||
81 | dir="${bin_dir}" | ||
82 | failonerror="false" /> | ||
83 | <csc | ||
84 | target="exe" | ||
85 | debug="${build.debug}" | ||
86 | output="${bin_dir}/${assembly}.exe"> | ||
87 | <sources failonempty="true"> | ||
88 | <include name="*.cs" /> | ||
89 | <include name="Commands/**.cs" /> | ||
90 | <exclude name="Commands/Communication/TtsCommand.cs" /> | ||
91 | </sources> | ||
92 | <references basedir="${bin_dir}/"> | ||
93 | <include name="libsecondlife.dll"/> | ||
94 | <include name="openjpegnet.dll"/> | ||
95 | </references> | ||
96 | </csc> | ||
97 | </target> | ||
98 | |||
99 | <target | ||
100 | name="build-dll" | ||
101 | description="Builds libsecondlife dll"> | ||
102 | <nant | ||
103 | buildfile="../../libsecondlife-cs/libsecondlife.build" | ||
104 | target="${project.config} build"/> | ||
105 | </target> | ||
106 | |||
107 | <target | ||
108 | name="clean" | ||
109 | depends="init" | ||
110 | description="Deletes the current configuration"> | ||
111 | <delete failonerror="false"> | ||
112 | <fileset basedir="${bin_dir}/"> | ||
113 | <include name="${assembly}.exe" /> | ||
114 | <include name="${assembly}.pdb" /> | ||
115 | <include name="**/${assembly}.*.resources" /> | ||
116 | </fileset> | ||
117 | </delete> | ||
118 | </target> | ||
119 | |||
120 | <target | ||
121 | name="*" | ||
122 | description="Handles unknown targets"> | ||
123 | <echo message="skip" /> | ||
124 | </target> | ||
125 | </project> | ||