-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.xml
33 lines (32 loc) · 987 Bytes
/
build.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
<?xml version="1.0"?>
<project name="delcos" default="all">
<property environment="env"/>
<target name="all" depends="clean,compile"/>
<target name="prepare_version_info">
<exec executable="git.cmd" outputproperty="build.revision">
<arg value="rev-parse" />
<arg value="HEAD" />
</exec>
<echo file="cui/revision.inc">const REVISION='${build.revision}';</echo>
</target>
<target name="compile" depends="prepare_version_info">
<mkdir dir="build/bin" />
<mkdir dir="build/obj" />
<exec executable="dcc32">
<arg value="-q" />
<arg value="-v-" />
<arg value="-$D-" />
<arg value="-$O+" />
<arg value="-$W-" />
<arg value="delcos.dpr" />
</exec>
<ant dir="expert" target="all"/>
</target>
<target name="clean">
<delete dir="build"/>
<delete file="cui/revision.inc"/>
</target>
<target name="install" depends="compile">
<copy file="build/bin/delcos.exe" todir="${env.SystemRoot}"/>
</target>
</project>