-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
34 lines (30 loc) · 1.17 KB
/
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
34
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="systemCommand" default="all" xmlns:cpptasks="antlib:net.sf.antcontrib.cpptasks">
<import file="../../build-common.xml"/>
<!-- Clean -->
<target name="clean" description="Deletes generated files">
<delete verbose="true">
<fileset dir="." includes="*.obj,*.o"/>
<fileset dir="." includes="pcontroller,pcontroller.exe,pcontroller.exe.manifest"/>
<fileset dir="." includes="history.xml"/>
<fileset dir="." includes="output.txt"/>
</delete>
</target>
<!-- All -->
<target name="all" description="Runs all targets">
<cpptasks:cc outtype="executable" subsystem="console" outfile="pcontroller">
<compiler name="${cc}"/>
<linker name="${cc}"/>
<fileset dir="." includes="*.c"/>
</cpptasks:cc>
</target>
<!-- Unit test -->
<target name="unitTest" description="Runs unit tests">
<echo message="Starting unit test in ${basedir}"/>
<exec executable="${ptUnitTestExecutable}"
failonerror="true"
vmlauncher="false"> <!-- vmlauncher="false" is needed for Windows -->
<arg line="${ptExecutableFlags} system.xml"/>
</exec>
</target>
</project>