-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.xml
executable file
·92 lines (81 loc) · 2.37 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
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
<!-- ant build file for the Northern-Bites tool -->
<!-- @author Octavian Neamtu -->
<project name="tool" default="run" basedir=".">
<description>
tool ant build file
</description>
<!-- set global properties for this build -->
<property name="classpath" location="."/>
<!-- PATH structure that holds the classpath for the build-->
<path id="tool.paths">
<pathelement path="${classpath}"/>
<!-- look into folder lib and add all jars to the classpath -->
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="compile.all"
description="compile TOOL and TOOLVisionLink"
depends="compile,vision">
</target>
<target name="compile"
description="compile the source " >
<javac srcdir="." destdir="">
<classpath refid="tool.paths"/>
</javac>
</target>
<target name="vision.check">
<!-- check if we already have the TOOLVisionLink dynamic lib -->
<pathconvert property="vision.make" setonempty="false" pathsep=" ">
<path>
<fileset dir="."
includes="*TOOLVisionLink.*" />
</path>
</pathconvert>
</target>
<target name="vision"
depends="vision.check"
description="compile the TOOLVisionLink">
<!-- at this point we just run an external calling make vision -->
<!-- TODO unify the build systems -->
<exec executable="make">
<arg value="vision"/>
</exec>
</target>
<target name="run"
depends="compile,vision"
description="runs the tool ">
<java classname="TOOL.TOOL"
fork="true"
maxmemory="512m">
<sysproperty key="java.library.path" value="./"/>
<classpath refid="tool.paths"/>
<arg value="-d32"/>
</java>
</target>
<!-- Clean up everything -->
<target name="clean.all"
depends="clean.vision,clean"
description="clean up everything" >
</target>
<target name="clean.vision"
description="clean VisionLink library">
<delete>
<fileset dir=".">
<!-- delete the TOOLVisionLink dynamic lib -->
<include name="*TOOLVisionLink.*"/>
<!-- delete the JNI header generated for the TOOLVisionLink -->
<include name="TOOL/**/*.h"/>
</fileset>
</delete>
</target>
<!-- Clean class files -->
<target name="clean"
description="clean .class files" >
<delete>
<fileset dir=".">
<include name="**/*.class"/>
</fileset>
</delete>
</target>
</project>