This repository was archived by the owner on Dec 19, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
47 lines (40 loc) · 1.61 KB
/
build.xml
File metadata and controls
47 lines (40 loc) · 1.61 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
<project name="PROG3" default="jenkins" basedir=".">
<description>
Jenkins Ant file for MEngine
</description>
<!-- set global properties for this build -->
<property name="app" location="PROG3"/>
<property name="make.cmd" value="/usr/bin/make"/>
<property name="build.native" value="./"/>
<property name="src" value="./MurrayEngine/"/>
<property name="src2" value="./Implementation"/>
<property name="cppcheck.cmd" value="/usr/bin/cppcheck"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
</target>
<target name="compile" description="compile the source" >
<exec dir="${build.native}" executable="${make.cmd}" failonerror="true">
</exec>
</target>
<target name="clean" description="clean up" >
<exec dir="${build.native}" executable="${make.cmd}" failonerror="true">
<arg value="clean"/>
</exec>
</target>
<target name="cppcheck" description="C++ code check" >
<exec dir="${build.native}" executable="${cppcheck.cmd}" failonerror="true">
<arg line=" --xml --xml-version=2 --enable=all --inconclusive --language=c++ ./MurrayEngine/*.cpp"/>
<redirector error="cppcheck.xml"/>
</exec>
<!--<exec dir="${build.native}" executable="/bin/sed">
<arg line="-i 's%\(<location file="\)%\1MurrayEngine/%' cppcheck.xml" />
</exec>-->
</target>
<target name="cppcheck2" description="C++ code check" >
<exec dir="${src2}" executable="${cppcheck.cmd}" failonerror="true">
<arg line=" --xml --xml-version=2 --enable=all --inconclusive --language=c++ *.cpp"/>
<redirector error="cppcheck.xml"/>
</exec>
</target>
</project>