forked from freddy33/jzy3d
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
110 lines (95 loc) · 4.18 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?xml version="1.0" encoding="UTF-8"?>
<project name="jzy3d" default="release">
<property name="dir.src" value="src/"/>
<property name="dir.src.api" value="src/api/"/>
<property name="dir.src.bridge" value="src/bridge/"/>
<property name="dir.src.demos" value="src/demos/"/>
<property name="dir.src.trials" value="src/trials/"/>
<property name="dir.src.redbook" value="src/glredbook/"/>
<property name="dir.src.groovy" value="src/groovy/"/>
<property name="dir.src.jogl" value="src/jogl/"/>
<property name="dir.lib" value="lib/"/>
<property name="dir.build" value="build/ant/"/>
<property name="dir.bin" value="run/"/>
<property name="dir.dist" value="dist/"/>
<property name="lib.name" value="org.jzy3d"/>
<property name="lib.version" value="0.9"/>
<property name="lib.path" value="org/jzy3d/"/>
<dirname property="dir.basedir" file="${ant.file}"/>
<path id="compile.classpath">
<fileset dir="${dir.lib}"><include name="*.jar"/></fileset>
<fileset dir="${dir.lib}/jogl"><include name="*.jar"/></fileset>
</path>
<path id="dir.classpath">
<!--<path refid="jdk.classpath"/>-->
<path refid="compile.classpath"/>
</path>
<target name="clean">
<delete dir="${dir.build}"/>
<delete dir="${dir.dist}"/>
</target>
<target name="compile.api" description="Compile Jzy3d API and Bridge" depends="clean">
<mkdir dir="${dir.build}"/>
<javac destdir="${dir.build}" debug="yes" target="1.5">
<classpath refid="dir.classpath"/>
<src path="${dir.src.api}/" />
<src path="${dir.src.bridge}/" />
<!-- <src path="${dir.src.trials}/" />-->
</javac>
</target>
<target name="jar.api" description="Export Jzy3d API and Bridge in a jar" depends="compile.api">
<echo message="Create a jar containing classes AND sources." />
<mkdir dir="${dir.dist}" />
<jar destfile="${dir.dist}/${lib.name}-${lib.version}.jar" >
<fileset dir="${dir.build}" includes="${lib.path}/**/*.class" excludes="${lib.path}/trials/**, ${lib.path}/demos/**"/>
<!-- includes sources for debugging -->
<fileset dir="${dir.src.api}" includes="**/*.java"/>
<fileset dir="${dir.src.bridge}" includes="**/*.java"/>
</jar>
</target>
<target name="zip.demos">
<zip destfile="${dir.dist}/${lib.name}-${lib.version}-demos.zip" update="false">
<fileset dir="${dir.src.demos}"/>
<fileset dir="${dir.src.trials}"/>
</zip>
</target>
<target name="zip.groovy">
<zip destfile="${dir.dist}/${lib.name}-${lib.version}-groovy.zip" update="false">
<fileset dir="${dir.src.groovy}"/>
</zip>
</target>
<target name="zip.jogl">
<zip destfile="${dir.dist}/${lib.name}-${lib.version}-jogl-demos.zip" update="false">
<fileset dir="${dir.src.jogl}"/>
</zip>
</target>
<target name="zip.redbook">
<zip destfile="${dir.dist}/${lib.name}-${lib.version}-redbook.zip" update="false">
<fileset dir="${dir.src.redbook}"/>
</zip>
</target>
<target name="zip.dependencies">
<zip destfile="${dir.dist}/${lib.name}-${lib.version}-dependencies.zip" update="false">
<fileset dir="${dir.lib}"/>
</zip>
</target>
<target name="zip.binaries">
<zip destfile="${dir.dist}/${lib.name}-${lib.version}-binaries-windows-amd64.zip" update="false">
<fileset dir="${dir.bin}/windows-amd64"/>
</zip>
<zip destfile="${dir.dist}/${lib.name}-${lib.version}-binaries-windows-i586.zip" update="false">
<fileset dir="${dir.bin}/windows-i586"/>
</zip>
<zip destfile="${dir.dist}/${lib.name}-${lib.version}-binaries-macosx.zip" update="false">
<fileset dir="${dir.bin}/macosx"/>
</zip>
<zip destfile="${dir.dist}/${lib.name}-${lib.version}-binaries-linux-i586.zip" update="false">
<fileset dir="${dir.bin}/linux-i586"/>
</zip>
<zip destfile="${dir.dist}/${lib.name}-${lib.version}-binaries-linux-amd64.zip" update="false">
<fileset dir="${dir.bin}/linux-amd64"/>
</zip>
</target>
<target name="release" depends="clean,jar.api,zip.demos,zip.groovy,zip.dependencies,zip.binaries,zip.jogl,zip.redbook">
</target>
</project>