-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
91 lines (75 loc) · 4.71 KB
/
build.xml
File metadata and controls
91 lines (75 loc) · 4.71 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project name="Build template" default="create-bundle">
<!-- Name of the main class (e.g. com.example.package.Main) -->
<property name="class.main" value="nl.sensorlab.videowall.LedWallApplication" />
<!-- Name of the app -->
<property name="target" value="VideoWall" />
<!-- Build properties you shouldn't need to change -->
<property name="dir.buildfile" value="." />
<property name="dir.dist" location="dist" />
<property name="dir.lib" location="lib" />
<!-- Clean / (re)create the dist folder -->
<target name="clean">
<delete dir="${dir.dist}" />
<mkdir dir="${dir.dist}" />
</target>
<!-- Compile the jar -->
<target name="compile-jar" depends="clean">
<jar destfile="${dir.dist}/${target}.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="${class.main}" />
<attribute name="Class-Path" value="." />
</manifest>
<fileset dir="${dir.buildfile}/bin" />
<!-- Core libraries -->
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/core/core.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/core/gluegen-rt.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/core/gluegen-rt-natives-linux-aarch64.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/core/gluegen-rt-natives-linux-amd64.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/core/gluegen-rt-natives-linux-armv6hf.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/core/gluegen-rt-natives-linux-i586.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/core/gluegen-rt-natives-macosx-universal.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/core/gluegen-rt-natives-windows-amd64.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/core/gluegen-rt-natives-windows-i586.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/core/jogl-all.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/core/jogl-all-natives-linux-aarch64.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/core/jogl-all-natives-linux-amd64.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/core/jogl-all-natives-linux-armv6hf.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/core/jogl-all-natives-linux-i586.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/core/jogl-all-natives-macosx-universal.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/core/jogl-all-natives-windows-amd64.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/core/jogl-all-natives-windows-i586.jar" />
<!-- Video library -->
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/video/gstreamer-java.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/video/jna.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/video/video.jar" />
<!-- Serial library -->
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/serial/jssc.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/serial/serial.jar" />
<!-- Ani library -->
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/processing/ani/Ani.jar" />
<!-- Commons library -->
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/org.apache/commons-configuration2-2.0.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/org.apache/commons-lang3-3.3.2.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/org.apache/commons-logging-1.2.jar" />
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/lib/org.apache/commons-beanutils-1.9.3.jar" />
</jar>
</target>
<!-- Create the dist bundle -->
<target name="create-bundle" depends="compile-jar">
<!-- Add the native video libraries -->
<copy todir="${dir.dist}/lib/processing/video">
<fileset dir="lib/processing/video">
<filename name="**/*.jar*" negate="true" />
</fileset>
</copy>
<!-- Add the native serial libraries -->
<copy todir="${dir.dist}/lib/processing/serial">
<fileset dir="lib/processing/serial">
<filename name="**/*.jar*" negate="true" />
</fileset>
</copy>
<!-- Copy default settings -->
<copy file="settings.config" tofile="${dir.dist}/settings.config" overwrite="true" />
</target>
</project>