-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
69 lines (62 loc) · 2.22 KB
/
build.xml
File metadata and controls
69 lines (62 loc) · 2.22 KB
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
<project name="Matrix" default="build" basedir=".">
<description>
Jenkins Ant file for Matrix
</description>
<!-- set global properties for this build -->
<property name="app" location="matrix"/>
<property name="make.cmd" value="/usr/bin/make"/>
<property name="doxygen.cmd" value="/usr/bin/doxygen"/>
<property name="build.native" value="./newspaper"/>
<property name="build.src" value="./newspaper/src"/>
<property name="basedir" value="./"/>
<target name="build" depends="sloccount,compile" />
<!-- configuration du projet -->
<target name="configure"
description="configure the project">
<exec dir="${build.native}" executable="./configure" failonerror="false"/>
</target>
<!-- Verifie la presence du fichier Makefile -->
<target name="check-Makefile" depends="configure">
<available file="${build.native}/Makefile" property="makefile.present"/>
</target>
<!-- Nettoie le projet -->
<target name="clean"
description="clean binaries"
depends="check-Makefile"
if="makefile.present">
<exec dir="${build.native}" executable="${make.cmd}" failonerror="true">
<arg value="clean"/>
</exec>
</target>
<!-- Compile le projet -->
<target name="compile"
description="compile the source"
depends="clean">
<exec dir="${build.native}" executable="${make.cmd}" failonerror="false"/>
</target>
<target name="sloccount"
description="Source Lines Of Code count" >
<delete file="${basedir}/sloccount.sc"/>
<mkdir dir="${basedir}/slocdata"/>
<exec executable="sloccount"
output="sloccount.sc"
failonerror="true">
<arg line="--duplicates --wide --details --addlangall --datadir slocdata ${build.src}"/>
</exec>
</target>
<target name="cleanDoc" description="clean docs">
<delete quiet="true">
<fileset dir="${build.native}/Docs/html" includes="**/*" />
</delete>
</target>
<target name="doxygen"
description="Process documentation"
depends="cleanDoc">
<mkdir dir="${basedir}/Docs"/>
<exec executable="${doxygen.cmd}"
dir="${basedir}"
failonerror="false">
<arg value="Doxygen.cfg"/>
</exec>
</target>
</project>