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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
|
<project name="JOGL_ALL" basedir="." default="all">
<import file="build-common.xml"/>
<target name="javadoc-base.init" depends="common.init">
<property name="javadoc.link" value="http://java.sun.com/j2se/1.4.2/docs/api/" />
<!--property name="javadoc.link" value="http://download.oracle.com/javase/1.4.2/docs/api/"/-->
<property name="gluegen.link" value="../../gluegen/javadoc/" /> <!-- http://jogamp.org/deployment/jogamp-next/javadoc/gluegen/javadoc/ -->
<property name="javadoc" value="${build}/javadoc" /> <!-- http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/ -->
<!-- Link offline with relative URLs does not work.
Link online with relative URLs works,
so we have to assume the same relative online folder structure:
http://jogamp.org/deployment/jogamp-next/javadoc/gluegen/javadoc/
http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/
gluegen rel URL: ../../gluegen/javadoc
build structure:
jogl.root: build/javadoc
gluegen.root: build/javadoc
to match the online gluegen rel URL, we need:
jogl.root: gluegen/javadoc
-->
<delete dir="${project.root}/gluegen" includeEmptyDirs="true" quiet="true" failonerror="false" />
<mkdir dir="${project.root}/gluegen" />
<mkdir dir="${project.root}/gluegen/javadoc" />
<copy todir="${project.root}/gluegen/javadoc">
<fileset dir="${gluegen.root}/${rootrel.build}/javadoc/" includes="**" />
</copy>
</target>
<target name="init" depends="javadoc-base.init">
<property name="javadoc.overview" value="doc/jogl/spec-overview.html" />
<property name="javadoc.nw.overview" value="../src/nativewindow/classes/javax/media/nativewindow/package.html" />
<property name="javadoc.nw.spec" value="${build}/javadoc_nativewindow_spec" />
<property name="javadoc.nw.spec.windowtitle" value="NativeWindow API -- ${nativewindow_base_version} Specification" />
<property name="javadoc.nw.spec.packagenames" value="javax.media.nativewindow.*" />
<property name="javadoc.spec" value="${build}/javadoc_jogl_spec" />
<property name="javadoc.spec.windowtitle" value="JOGL API -- JSR-231 ${jogl_base_version} Specification" />
<property name="javadoc.spec.packagenames" value="javax.media.opengl.*" />
<property name="javadoc.windowtitle" value="JOGL, NativeWindow and NEWT APIs" />
<property name="javadoc.packagenames" value="${javadoc.nw.spec.packagenames}, ${javadoc.spec.packagenames}, com.jogamp.opengl, com.jogamp.opengl.util.*, com.jogamp.nativewindow, com.jogamp.newt, com.jogamp.newt.event.*, com.jogamp.newt.opengl" />
<property name="javadoc.dev" value="${build}/javadoc_dev" />
<property name="javadoc.dev.packagenames" value="${javadoc.packagenames}, com.jogamp.opengl.*, com.jogamp.nativewindow.*, com.jogamp.newt.*, com.jogamp.gluegen.opengl.*, com.jogamp.gluegen.runtime.opengl.*" />
<property name="java.excludes.javadoc.packagenames" value="com.jogamp.opengl.impl.gl2.fixme.*,com.jogamp.audio.windows.waveout.TestSpatialization"/>
<property name="javadoc.bottom" value="Copyright 2010 JogAmp Community." />
</target>
<target name="build.nativewindow" depends="init">
<ant antfile="${nativewindow.build.xml}" dir="${nativewindow.make}" target="all" inheritRefs="true" inheritAll="true"/>
</target>
<target name="build.jogl" depends="init">
<ant antfile="${jogl.build.xml}" dir="${jogl.make}" target="all" inheritRefs="true" inheritAll="true"/>
</target>
<target name="build.newt" depends="init">
<ant antfile="${newt.build.xml}" dir="${newt.make}" target="all" inheritRefs="true" inheritAll="true"/>
</target>
<target name="one-lib-dir" depends="init,gluegen.cpptasks.detect.os">
<delete includeEmptyDirs="true" quiet="true" dir="${lib}" failonerror="false" />
<mkdir dir="${lib}" />
<copy todir="${lib}">
<fileset dir="${gluegen.root}/${rootrel.build}/obj" includes="*.${native.library.suffix} *.${native.library.suffix-cdc}" />
<fileset dir="${build}/jogl/obj" includes="*.${native.library.suffix} *.${native.library.suffix-cdc}" />
<fileset dir="${build}/nativewindow/obj" includes="*.${native.library.suffix} *.${native.library.suffix-cdc}" />
<fileset dir="${build}/newt/obj" includes="*.${native.library.suffix} *.${native.library.suffix-cdc}" />
</copy>
</target>
<target name="one-jar-dir" depends="init,gluegen.cpptasks.detect.os">
<delete includeEmptyDirs="true" quiet="true" dir="${jar}" failonerror="false" />
<mkdir dir="${jar}" />
<copy todir="${jar}">
<fileset dir="${gluegen.root}/${rootrel.build}" includes="gluegen-rt*.jar" />
<fileset dir="${build}/jogl" includes="*.jar" />
<fileset dir="${build}/nativewindow" includes="*.jar" />
<fileset dir="${build}/newt" includes="*.jar" />
</copy>
</target>
<target name="one-dir" depends="one-lib-dir,one-jar-dir"/>
<target name="repack-jars" depends="one-jar-dir">
<!-- Re-pack jars we have the intent to compress later, after signing -->
<mkdir dir="${jar}/orig" />
<copy todir="${jar}/orig">
<fileset dir="${jar}" includes="*.jar" />
</copy>
<apply dir="${jar}" executable="${java.home}/bin/pack200"
parallel="false"
vmlauncher="false"
relative="true"
failonerror="false">
<arg line="--repack"/>
<srcfile/>
<fileset dir="${jar}" includes="*.jar" />
</apply>
</target>
<!-- ================================================================== -->
<!--
- Build the per-platform binary zip archive for developers.
- This must be called after all of the build targets complete.
-->
<target name="developer-zip-archive" depends="init" unless="build.noarchives">
<delete includeEmptyDirs="true" quiet="true" dir="${archive}" failonerror="false" />
<mkdir dir="${archive}" />
<copy file="${build}/artifact.properties" todir="${archive}" />
<copy file="../CHANGELOG.txt" todir="${archive}" />
<copy file="../LICENSE.txt" todir="${archive}" />
<copy file="../doc/userguide/index.html" tofile="${archive}/Userguide.html" />
<copy file="README-zip-bundles.txt"
tofile="${archive}/README.txt"
overwrite="true">
<filterset>
<filter token="VERSION" value="${jogl.version}"/>
<filter token="SCM_BRANCH" value="${jogl.build.branch}"/>
<filter token="SCM_COMMIT" value="${jogl.build.commit}"/>
<filter token="BASEVERSION" value="${jogl_base_version}"/>
</filterset>
</copy>
<mkdir dir="${archive}/jar" />
<copy todir="${archive}/jar">
<fileset dir="${build}/jar" includes="*"/>
</copy>
<mkdir dir="${archive}/lib" />
<copy todir="${archive}/lib">
<fileset dir="${build}/lib" includes="*"/>
</copy>
<mkdir dir="${archive}/jnlp-files" />
<copy todir="${archive}/jnlp-files">
<fileset dir="${project.root}/jnlp-files" includes="*" />
</copy>
<mkdir dir="${archive}/etc" />
<copy todir="${archive}/etc">
<fileset dir="${project.root}/etc" includes="*" />
</copy>
<delete quiet="true" file="${build}/${archive.name}.zip"/>
<zip destfile="${build}/${archive.name}.zip"
basedir="${build}"
includes="${archive.name}/**" />
<!-- Clean up after ourselves -->
<delete includeEmptyDirs="true" quiet="true" dir="${archive}" failonerror="false" />
</target>
<target name="tag.build" depends="init">
<copy file="${build.gluegen}/artifact.properties" todir="${build}" overwrite="true"/>
<echo message='jogl.build.number=${jogl.build.number}${line.separator}' file="${build}/artifact.properties" append="true"/>
<echo message='jogl.build.id=${jogl.build.id}${line.separator}' file="${build}/artifact.properties" append="true"/>
<echo message='jogl.build.branch=${jogl.build.branch}${line.separator}' file="${build}/artifact.properties" append="true"/>
<echo message='jogl.build.commit=${jogl.build.commit}${line.separator}' file="${build}/artifact.properties" append="true"/>
</target>
<!-- ================================================================== -->
<!--
- Main build target.
-->
<target name="all" description="Build nativewindow, jogl and newt projects, incl. all junit tests " depends="init,build.nativewindow,build.jogl,build.newt,junit.compile,one-dir,tag.build,developer-zip-archive" />
<target name="all.but-archives" description="Build nativewindow, jogl and newt projects, incl. all junit tests " depends="init,build.nativewindow,build.jogl,build.newt,junit.compile,one-dir" />
<target name="junit.compile">
<ant antfile="build-junit.xml" target="junit.compile" inheritRefs="true" inheritAll="true"/>
</target>
<target name="junit.run" description="Run JUNIT tests in nativewindow, jogl and newt projects">
<ant antfile="build-junit.xml" target="junit.run" inheritRefs="true" inheritAll="true"/>
</target>
<target name="clean" depends="init">
<ant antfile="${nativewindow.build.xml}" dir="${nativewindow.make}" target="clean" inheritRefs="true" inheritAll="true"/>
<ant antfile="${jogl.build.xml}" dir="${jogl.make}" target="clean" inheritRefs="true" inheritAll="true"/>
<ant antfile="${newt.build.xml}" dir="${newt.make}" target="clean" inheritRefs="true" inheritAll="true"/>
<delete includeEmptyDirs="true" quiet="true" failonerror="false">
<fileset dir="${build}" />
<fileset dir="${project.root}/gluegen" />
</delete>
</target>
<target name="javadoc" depends="init">
<!-- Build the general public Javadoc -->
<javadoc packagenames="${javadoc.packagenames}"
excludepackagenames="${java.excludes.javadoc.packagenames}"
sourcepath="${all.srcj.path};${all.genj.path}"
destdir="${javadoc}" windowtitle="${javadoc.windowtitle}"
overview="${javadoc.overview}"
source="1.4"
maxmemory="1024m"
bottom="${javadoc.bottom}" >
<classpath refid="jogl_newt_all.classpath"/>
<link offline="true" href="${javadoc.link}" packagelistLoc="${gluegen.root}/make/142-packages" />
<link offline="false" href="${gluegen.link}" />
<arg line="-J-Dnativetaglet.mapping=${basedir}/native-taglet.properties"/>
<taglet name="net.highteq.nativetaglet.NativeTaglet" path="${gluegen.jar}" />
</javadoc>
<zip destfile="${build}/javadoc.zip"
basedir="${build}"
includes="javadoc/**" />
</target>
<target name="javadoc.jogl.spec" depends="init,javadoc.nw.spec">
<!-- Build the specification Javadoc -->
<javadoc packagenames="${javadoc.spec.packagenames}"
excludepackagenames="${java.excludes.javadoc.packagenames}"
sourcepath="${all.srcj.path};${all.genj.path}"
destdir="${javadoc.spec}" windowtitle="${javadoc.spec.windowtitle}"
overview="${javadoc.overview}"
source="1.4"
maxmemory="1024m"
bottom="${javadoc.bottom}" >
<classpath refid="jogl_newt_all.classpath"/>
<link offline="true" href="${javadoc.link}" packagelistLoc="${gluegen.root}/make/142-packages" />
<link offline="false" href="${gluegen.link}" />
<arg line="-J-Dnativetaglet.mapping=${basedir}/native-taglet.properties"/>
<link offline="false" href="${javadoc.nw.spec}" />
<taglet name="net.highteq.nativetaglet.NativeTaglet" path="${gluegen.jar}" />
</javadoc>
<zip destfile="${build}/javadoc_jogl_spec.zip"
basedir="${build}"
includes="javadoc_jogl_spec/**" />
</target>
<target name="javadoc.dev" depends="init">
<!-- Build the internal developer Javadoc -->
<javadoc packagenames="${javadoc.dev.packagenames}"
excludepackagenames="${java.excludes.javadoc.packagenames}"
sourcepath="${all.srcj.path};${all.genj.path}"
destdir="${javadoc.dev}" windowtitle="${javadoc.windowtitle}"
overview="${javadoc.overview}"
source="1.4"
maxmemory="1024m"
bottom="${javadoc.bottom}" >
<classpath refid="jogl_newt_all.classpath"/>
<link offline="true" href="${javadoc.link}" packagelistLoc="${gluegen.root}/make/142-packages" />
<link offline="false" href="${gluegen.link}" />
<arg line="-J-Dnativetaglet.mapping=${basedir}/native-taglet.properties"/>
<taglet name="net.highteq.nativetaglet.NativeTaglet" path="${gluegen.jar}" />
</javadoc>
<zip destfile="${build}/javadoc_dev.zip"
basedir="${build}"
includes="javadoc_dev/**" />
</target>
<target name="javadoc.nw.spec" depends="init">
<!-- Build the general Javadoc -->
<javadoc packagenames="${javadoc.nw.spec.packagenames}"
excludepackagenames="${java.excludes.javadoc.packagenames}"
sourcepath="${all.srcj.path};${all.genj.path}"
destdir="${javadoc.nw.spec}" windowtitle="${javadoc.nw.spec.windowtitle}"
overview="${javadoc.nw.overview}"
source="1.4"
maxmemory="1024m"
bottom="${javadoc.bottom}" >
<classpath refid="jogl_newt_all.classpath"/>
<link offline="true" href="${javadoc.link}" packagelistLoc="${gluegen.root}/make/142-packages" />
<link offline="false" href="${gluegen.link}" />
<arg line="-J-Dnativetaglet.mapping=${basedir}/native-taglet.properties"/>
<taglet name="net.highteq.nativetaglet.NativeTaglet" path="${gluegen.jar}" />
</javadoc>
<zip destfile="${build}/javadoc_nativewindow_spec.zip"
basedir="${build}"
includes="javadoc_nativewindow_spec/**" />
</target>
<target name="javadoc.spec" description="Build Specifications JOGL and Nativewindow" depends="init,javadoc.jogl.spec" />
<target name="all.doc" description="Build NativeWindow, JOGL and NEWT docs" depends="init,javadoc,javadoc.spec,javadoc.dev" />
</project>
|