-
Notifications
You must be signed in to change notification settings - Fork 0
/
want.xml
277 lines (230 loc) · 9.48 KB
/
want.xml
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<!--
WANT - A build management tool.
Copyright (c) 2001-2003 Juancarlo Anez, Caracas, Venezuela.
All rights reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
{ $Id: want.xml,v 1.83 2004/05/29 17:23:09 juanco Exp $ }
This is the Want script for building Want.
See http://www.suigeneris.org/want/ for details.
-->
<project name="OposWebkassa"
basedir="."
default="buildns" >
<property name="old.version" value="?{release.ini:releases:current}" />
<regexp property="old.build" text="${old.version}" pattern="^.*\.([0-9]+)$" subst ="\1" />
<property name="build" value="={${old.build}}"/>
<regexp property="version" text="${old.version}" pattern="\.[0-9]*$" subst=".${build}" />
<regexp property="comma.version" pattern="\." subst="," text="${version}" />
<regexp property="version2" pattern="^[0-9]*\.[0-9]*" text="${version}" />
<tstamp>
<format property="when" pattern="yyyy,mm,dd,HH,nn,ss" />
<format property="date.tag" pattern="yyyy-mm-dd" />
</tstamp>
<property name="basepath" value="" />
<regexp property="basepath" text="${basedir}" pattern="^\/" subst="" />
<property name="bin" value="${basepath}/bin" />
<property name="dcu" value="${basepath}/dcu" />
<property name="src" value="${basepath}/src" />
<property name="test" value="${basepath}/test" />
<property name="setup" value="${basepath}/setup" />
<property name="OposTest" value="${src}/OposTest" />
<property name="OposConfig" value="${src}/OposConfig" />
<property name="OposWebkassa" value="${src}/OposWebkassa" />
<property name="OposWebkassaTest" value="${test}/OposWebkassaTest" />
<target name="prepare" >
<mkdir dir="${dcu}" />
<mkdir dir="${bin}" />
<echo message="version=${version}" />
<echo message="build=${build}" />
<delete dir="${src}" >
<include name="**/*.dcu" />
<include name="**/*.exe" />
<include name="**/*.rsm" />
<include name="**/*.dsm" />
<include name="**/*.log" />
<include name="**/*.~*" />
<include name="**/*.bak" />
</delete>
<echo input="${src}/Shared/ServiceVersion.pas.template" file="${src}/Shared/ServiceVersion.pas" />
</target>
<target name="clean">
<delete dir="${dcu}" >
<include name="*.dcu" />
</delete>
<delete dir="${bin}" >
<include name="*.exe" />
</delete>
<delete dir="${basedir}" >
<include name="*.exe" />
</delete>
</target>
<target name="finalclean" >
</target >
<!-- ***** Compile OposConfig ***** -->
<target name="Compile-OposConfig" depends="prepare">
<echo input="${OposConfig}/OposConfig.rt" file="${OposConfig}/OposConfig.rc" />
<brcc file="${OposConfig}/OposConfig.rc" output="${OposConfig}/OposConfig.res" />
<delete dir="${dcu}" >
<include name="*.dcu" />
</delete>
<dcc basedir="${OposConfig}" source="OposConfig.dpr">
<exeoutput path="${bin}" />
<dcuoutput path="${dcu}" />
<debug value="false" />
<console value="false" />
<hugestrings value="true" />
<writeableconst value="true" />
<align value="false" />
<optimize value="false" />
<warnings value="true" />
<warning name="SYMBOL_PLATFORM" value="off" />
<warning name="SYMBOL_DEPRECATED" value="off" />
<warning name="UNIT_PLATFORM" value="off" />
<warning name="UNSAFE_CODE" value="off" />
<warning name="UNSAFE_TYPE" value="off" />
<warning name="UNSAFE_CAST" value="off" />
<hints value="true" />
<overflowchecks value="false" />
<rangechecks value="false" />
<iochecks value="false" />
<build value="true" />
</dcc>
</target>
<!-- ***** Compile OposTest ***** -->
<target name="Compile-OposTest" depends="prepare">
<echo input="${OposTest}/OposTest.rt" file="${OposTest}/OposTest.rc" />
<brcc file="${OposTest}/OposTest.rc" output="${OposTest}/OposTest.res" />
<delete dir="${dcu}" >
<include name="*.dcu" />
</delete>
<dcc basedir="${OposTest}" source="OposTest.dpr">
<exeoutput path="${bin}" />
<dcuoutput path="${dcu}" />
<debug value="false" />
<console value="false" />
<hugestrings value="true" />
<writeableconst value="true" />
<align value="false" />
<optimize value="false" />
<warnings value="true" />
<warning name="SYMBOL_PLATFORM" value="off" />
<warning name="SYMBOL_DEPRECATED" value="off" />
<warning name="UNIT_PLATFORM" value="off" />
<warning name="UNSAFE_CODE" value="off" />
<warning name="UNSAFE_TYPE" value="off" />
<warning name="UNSAFE_CAST" value="off" />
<hints value="true" />
<overflowchecks value="false" />
<rangechecks value="false" />
<iochecks value="false" />
<build value="true" />
</dcc>
</target>
<!-- ***** Compile OposWebkassa ***** -->
<target name="Compile-OposWebkassa" depends="prepare">
<delete dir="${dcu}" >
<include name="*.dcu" />
</delete>
<echo input="${OposWebkassa}/OposWebkassa.rt" file="${OposWebkassa}/OposWebkassa.rc" />
<brcc file="${OposWebkassa}/OposWebkassa.rc" output="${OposWebkassa}/OposWebkassa.res" />
<dcc basedir="${OposWebkassa}" source="OposWebkassa.dpr">
<exeoutput path="${bin}" />
<dcuoutput path="${dcu}" />
<console value="false" />
<hugestrings value="true" />
<writeableconst value="true" />
<stackframes value="true" />
<align value="false" />
<optimize value="false" />
<warnings value="true" />
<warning name="SYMBOL_PLATFORM" value="off" />
<warning name="SYMBOL_DEPRECATED" value="off" />
<warning name="UNIT_PLATFORM" value="off" />
<warning name="UNSAFE_CODE" value="off" />
<warning name="UNSAFE_TYPE" value="off" />
<warning name="UNSAFE_CAST" value="off" />
<hints value="true" />
<overflowchecks value="false" />
<rangechecks value="false" />
<iochecks value="false" />
<build value="true" />
</dcc>
</target>
<!-- ***** Tests ***** -->
<target name="Test-OposWebkassa" depends="prepare">
<dcc basedir="${OposWebkassaTest}" source="OposWebkassaTestLib.dpr" >
<exeoutput path="${test}/OposWebkassaTest/Bin" />
<dcuoutput path="${dcu}" />
<build value="true" />
<debug value="true" />
<console value="true" />
<writeableconst value="true" />
<warnings value="true" />
<warning name="SYMBOL_PLATFORM" value="off" />
<warning name="SYMBOL_DEPRECATED" value="off" />
<warning name="UNIT_PLATFORM" value="off" />
<warning name="UNSAFE_CODE" value="off" />
<warning name="UNSAFE_TYPE" value="off" />
<warning name="UNSAFE_CAST" value="off" />
<hints value="true" />
<define name="DUNIT_DLL" />
<define name="DEBUG" />
<define name="SUPPORTS_WIDESTRING" />
</dcc>
<dunit basedir="${OposWebkassaTest}/bin" testlib="${OposWebkassaTest}/bin/OposWebkassaTestLib.dll" />
</target>
<target name="sign">
<exec executable="SignShtrih.bat">
<arg value="${bin}/OposConfig.exe" />
</exec>
<exec executable="SignShtrih.bat">
<arg value="${bin}/OposTest.exe" />
</exec>
<exec executable="SignShtrih.bat">
<arg value="${bin}/OposWebkassa.dll" />
</exec>
</target>
<target name="makesetup">
<echo input="${setup}/setup_template.iss" file="${basedir}/setup.iss"/>
<exec executable="iscc">
<arg value="Setup.iss" />
<arg value="/Q" />
</exec>
<exec executable="SignShtrih.bat">
<arg value="${basepath}/setup.exe" />
</exec>
<move tofile="${basepath}/OposWebkassa_${version2}_${build}.exe">
<include name="${basepath}/setup.exe" />
</move>
<delete file="${basepath}/setup.iss" />
</target>
<target name="makesetupns">
<echo input="${setup}/setup_template.iss" file="${basedir}/setup.iss"/>
<exec executable="iscc">
<arg value="Setup.iss" />
<arg value="/Q" />
</exec>
<move tofile="${basepath}/OposWebkassa_${version2}_${build}.exe">
<include name="${basepath}/setup.exe" />
</move>
<delete file="${basepath}/setup.iss" />
</target>
<target name="build" >
<ini file="release.ini" >
<write section="releases" key="current" value="${version}" />
<write section="releases" key="last_date" value="${date.tag}" />
</ini>
</target>
<target name="release" depends="clean,prepare,Test-OposWebkassa,Compile-OposConfig,Compile-OposTest,Compile-OposWebkassa,sign,makesetup,finalclean"/>
<target name="buildns" depends="clean,prepare,Test-OposWebkassa,Compile-OposConfig,Compile-OposTest,Compile-OposWebkassa,makesetupns,finalclean"/>
</project>