Merge lp:~xranby/ubuntu/precise/libjogl2-java/fix-for-908765 into lp:ubuntu/precise/libjogl2-java

Proposed by Xerxes Rånby
Status: Needs review
Proposed branch: lp:~xranby/ubuntu/precise/libjogl2-java/fix-for-908765
Merge into: lp:ubuntu/precise/libjogl2-java
Diff against target: 9331 lines (+66/-9002)
22 files modified
.pc/applied-patches (+0/-9)
.pc/arch_naming.diff/make/build-nativewindow.xml (+0/-901)
.pc/disable_android.diff/make/build-newt.xml (+0/-762)
.pc/disable_android.diff/make/build-test.xml (+0/-495)
.pc/disable_android_2.diff/make/build-common.xml (+0/-486)
.pc/disable_git_call.diff/make/build-common.xml (+0/-498)
.pc/linker.cfg.id.os.diff/make/build-jogl.xml (+0/-1655)
.pc/otherArchsoswin.diff/make/build-nativewindow.xml (+0/-865)
.pc/otherArchsoswin_2.diff/make/build-nativewindow.xml (+0/-901)
.pc/otherArchsoswin_2.diff/make/build-newt.xml (+0/-762)
.pc/swt.diff/make/build-common.xml (+0/-504)
.pc/variousFixes.diff/make/build-common.xml (+0/-501)
.pc/variousFixes.diff/make/build.xml (+0/-502)
debian/changelog (+6/-0)
debian/patches/otherArchsoswin_armv7.patch (+18/-0)
debian/patches/series (+1/-0)
make/build-common.xml (+26/-11)
make/build-jogl.xml (+2/-38)
make/build-nativewindow.xml (+6/-43)
make/build-newt.xml (+6/-66)
make/build-test.xml (+0/-2)
make/build.xml (+1/-1)
To merge this branch: bzr merge lp:~xranby/ubuntu/precise/libjogl2-java/fix-for-908765
Reviewer Review Type Date Requested Status
Sylvestre Ledru Pending
Review via email: mp+86907@code.launchpad.net

Description of the change

The jogl2 ant build script took a different code path on armv7 builders, the new otherArchsoswin_armv7.patch removes the use of dir="${env.TARGET_PLATFORM_LIBS}" in similar spirit of the already existing otherArchsoswin_2.diff.

To post a comment you must log in.

Unmerged revisions

14. By Xerxes Rånby

debian/patches/otherArchsoswin_armv7.patch: Fix armv7 FTBFS (LP: #908765)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed file '.pc/applied-patches'
2--- .pc/applied-patches 2011-11-22 00:42:13 +0000
3+++ .pc/applied-patches 1970-01-01 00:00:00 +0000
4@@ -1,9 +0,0 @@
5-variousFixes.diff
6-swt.diff
7-otherArchsoswin.diff
8-disable_android.diff
9-disable_git_call.diff
10-disable_android_2.diff
11-arch_naming.diff
12-linker.cfg.id.os.diff
13-otherArchsoswin_2.diff
14
15=== removed directory '.pc/arch_naming.diff'
16=== removed directory '.pc/arch_naming.diff/make'
17=== removed file '.pc/arch_naming.diff/make/build-nativewindow.xml'
18--- .pc/arch_naming.diff/make/build-nativewindow.xml 2011-10-09 19:26:30 +0000
19+++ .pc/arch_naming.diff/make/build-nativewindow.xml 1970-01-01 00:00:00 +0000
20@@ -1,901 +0,0 @@
21-<?xml version="1.0" encoding="UTF-8"?>
22-<!--
23- - Ant build for the NativeWindow package. This build has been tested with ANT 1.7.0. The
24- - optional.jar that contains the optional ANT tasks must be in the ANT
25- - classpath (typically the ant/lib directory).
26- -
27- - A clean download of the NativeWindow sources is required for this build.
28- -
29- - This build has no dependence on environment variables; the needed
30- - ones (e.g. java.home, ANT_HOME) are all set by the Ant wrapper shell
31- - script, by the virtual machine, or elsewhere. However, on all platforms,
32- - the C compiler and linker should be in the path. All other paths that
33- - need to be set are in host.properties.
34- -
35- - NOTE: because the GlueGen config files have their own relative paths
36- - which cannot be overridden by GlueGen, GlueGen MUST be run from
37- - the "make" directory. This also means that this build.xml MUST
38- - be run from the "make" directory.
39- -
40- - Public targets:
41- - all: (default; autodetects OS and chooses C compiler from gluegen.properties)
42- - clean: clean all built
43- - javadoc: create the standard developer Javadoc (recommended)
44- - (Note: should build all first - may be dependence in the future)
45- - javadoc.spec: create the standard developer Javadoc but exclude com.jogamp.* classes
46- - javadoc.dev: create the internal developer Javadoc. This includes the
47- - Java and C file generators. Note that it is only supported
48- - to create the Javadoc for the platform on which you are
49- - currently running.
50- -
51- - Note: on Windows the "win32.c.compiler" property in gluegen.properties
52- - is required to select the appropriate C compiler. See the example
53- - gluegen.properties in the gluegen workspace for valid values. On Mac OS X
54- - universal binaries may also be built by setting the "macosxfat"
55- - property in gluegen.properties; again see the example file in this
56- - directory.
57- -
58- - Thanks to Rob Grzywinski and Artur Biesiadowski for the bulk of the
59- - ANT build, including the GlueGen tasks, the building of
60- - the Java generated sources, the first and second phase Java compiles, and
61- - the building of the jar file. Thanks to Alex Radeski for the bulk of the
62- - port to the ant-contrib CPPTask framework. Thanks to Athomas Goldberg for
63- - the original OS detection code.
64- -
65- - Some environment defs affecting native compilation
66- setup.noNativeAWT
67-
68- - Internal settings, may not be necessary to set them manually,
69- since all JAR archives are orthogonal.
70- setup.noAWT
71- -->
72-<project name="NativeWindow" basedir="." default="all">
73-
74- <import file="build-common.xml"/>
75-
76- <!-- needed for outofdate task -->
77- <taskdef resource="net/sf/antcontrib/antlib.xml">
78- <classpath> <pathelement location="${ant-contrib.jar}"/> </classpath>
79- </taskdef>
80-
81- <!-- ================================================================== -->
82- <!--
83- - Base initialization and detection of operating system.
84- -->
85- <target name="base.init" depends="common.init">
86-
87- <!-- partitioning -->
88-
89- <property name="java.part.swt"
90- value="jogamp/nativewindow/swt/**"/>
91-
92- <property name="java.part.core"
93- value="javax/media/nativewindow/* javax/media/nativewindow/util/* javax/media/nativewindow/egl/* com/jogamp/nativewindow/* jogamp/nativewindow/* jogamp/nativewindow/jvm/* ${java.part.swt}"/>
94-
95- <property name="java.part.awt"
96- value="javax/media/nativewindow/awt/* jogamp/nativewindow/jawt/** jogamp/nativewindow/**/awt/**"/>
97-
98- <property name="java.part.x11"
99- value="jogamp/nativewindow/x11/** javax/media/nativewindow/x11/*" />
100-
101- <property name="java.part.windows"
102- value="jogamp/nativewindow/windows/** javax/media/nativewindow/windows/*" />
103-
104- <property name="java.part.macosx"
105- value="jogamp/nativewindow/macosx/** javax/media/nativewindow/macosx/*" />
106-
107- <!-- condition excludes -->
108-
109- <condition property="java.excludes.awt"
110- value="${java.part.awt}">
111- <isset property="setup.noAWT"/>
112- </condition>
113-
114- <property name="java.excludes.all" value="${java.excludes.awt}" />
115- <echo message="java.excludes.all: ${java.excludes.all}" />
116- </target>
117-
118-
119- <!-- ================================================================== -->
120- <!--
121- - Declare all paths and user defined variables.
122- -->
123- <target name="declare.common" description="Declare properties" depends="base.init">
124-
125- <property name="config.nativewindow" value="${config}/nativewindow" />
126-
127- <property name="rootrel.src" value="src/nativewindow" />
128- <property name="rootrel.src.java" value="${rootrel.src}/classes" />
129- <property name="rootrel.src.c" value="${rootrel.src}/native" />
130-
131- <property name="rootrel.src.generated" value="${rootrel.build}/nativewindow/gensrc" />
132- <property name="rootrel.generated.c" value="${rootrel.src.generated}/native" />
133-
134- <!-- The source directories. -->
135- <property name="src.java" value="${project.root}/${rootrel.src.java}" />
136- <property name="src.c" value="${project.root}/${rootrel.src.c}" />
137-
138- <!-- The generated source directories. -->
139- <property name="src.generated" value="${build.nativewindow}/gensrc" />
140- <property name="src.generated.java" value="${src.generated}/classes" />
141- <property name="src.generated.c" value="${src.generated}/native" />
142-
143- <!-- The compiler output directories. -->
144- <property name="classes" value="${build.nativewindow}/classes" />
145-
146- <property name="javah.classpath" value="${gluegen-rt.jar}:${classes}" />
147-
148- <!-- The headers from which Java files are generated -->
149- <dirset id="stub.includes.fileset.all" dir=".">
150- <include name="${stub.includes}/macosx/**" />
151- <include name="${stub.includes}/win32/**" />
152- <include name="${stub.includes}/x11/**" />
153- <include name="${stub.includes}/gluegen/**" />
154- <include name="${stub.includes}/khr/**" />
155- <include name="${stub.includes}/jni/**" />
156- </dirset>
157- <fileset id="stub.includes.dependencies.fileset.1" dir="${stub.includes}">
158- <include name="macosx/**" />
159- <include name="win32/**" />
160- <include name="x11/**" />
161- <include name="common/**" />
162- <include name="jni/**" />
163- </fileset>
164- <fileset id="stub.includes.dependencies.fileset.2" file="${gluegen.jar}" />
165- <fileset id="stub.includes.dependencies.fileset.3" dir="${config.nativewindow}">
166- <include name="*.cfg" />
167- <include name="*.java" />
168- <include name="*.c" />
169- </fileset>
170-
171- <!-- The javadoc dirs. -->
172- <property name="javadoc" value="${project.root}/javadoc_nativewindow_public" />
173- <property name="javadoc.spec" value="${project.root}/javadoc_nativewindow_spec" />
174- <property name="javadoc.dev" value="${project.root}/javadoc_nativewindow_dev" />
175- <property name="javadoc.windowtitle" value="Native Windowing Interface (NativeWindow) API -- ${nativewindow_base_version} Specification" />
176- <property name="javadoc.overview" value="../src/nativewindow/classes/javax/media/nativewindow/package.html" />
177- <property name="javadoc.spec.packagenames" value="javax.media.nativewindow.*" />
178-
179- <property name="javadoc.packagenames" value="${javadoc.spec.packagenames}" />
180-
181- <property name="javadoc.dev.packagenames" value="${javadoc.packagenames},com.jogamp.nativewindow.util.*,jogamp.nativewindow.*,com.jogamp.gluegen,com.jogamp.gluegen.runtime" />
182- <property name="javadoc.bottom" value="Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to &lt;a href=&quot;http://jcp.org/en/jsr/detail?id=231&quot;&gt;license terms&lt;/a&gt;." />
183- </target>
184-
185- <!-- ================================================================== -->
186- <!--
187- - Initialize all parameters required for the build and create any
188- - required directories.
189- -->
190- <target name="init" depends="declare.common">
191- <!-- Create the required output directories. -->
192- <mkdir dir="${src.generated.java}" />
193- <mkdir dir="${src.generated.c}" />
194- <mkdir dir="${src.generated.c}/MacOSX" />
195- <mkdir dir="${src.generated.c}/Windows" />
196- <mkdir dir="${src.generated.c}/X11" />
197- <mkdir dir="${classes}" />
198- <mkdir dir="${obj.nativewindow}" />
199- </target>
200-
201- <!--
202- - Check to see whether we need to rebuild the generated sources.
203- -->
204- <target name="java.generate.check">
205- <!-- Blow away all target files if any dependencies are violated
206- (the uptodate task doesn't allow arbitrary source and target filesets but should) -->
207- <!--
208- <dependset>
209- <srcfileset refid="stub.includes.dependencies.fileset.1" />
210- <srcfileset refid="stub.includes.dependencies.fileset.2" />
211- <srcfileset refid="stub.includes.dependencies.fileset.3" />
212- <targetfileset dir="${src.generated}">
213- <include name="**/*.java" />
214- <include name="**/*.c" />
215- </targetfileset>
216- </dependset>
217- -->
218-
219- <!-- Now check for the presence of one well-known file -->
220- <uptodate property="java.generate.skip.x11windowlib"
221- targetfile="${src.generated.java}/jogamp/nativewindow/x11/X11Lib.java">
222- <srcfiles refid="stub.includes.dependencies.fileset.1" />
223- <srcfiles refid="stub.includes.dependencies.fileset.2" />
224- <srcfiles refid="stub.includes.dependencies.fileset.3" />
225- </uptodate>
226- <uptodate property="java.generate.skip.jawt"
227- targetfile="${src.generated.java}/jogamp/nativewindow/jawt/JAWT.java">
228- <srcfiles refid="stub.includes.dependencies.fileset.1" />
229- <srcfiles refid="stub.includes.dependencies.fileset.2" />
230- <srcfiles refid="stub.includes.dependencies.fileset.3" />
231- </uptodate>
232-
233- <condition property="java.generate.skip">
234- <and>
235- <isset property="java.generate.skip.x11windowlib"/>
236- <isset property="java.generate.skip.jawt"/>
237- </and>
238- </condition>
239-
240- <!--property name="java.generate.skip" value="true"/-->
241- </target>
242-
243- <target name="java.generate.windowlib" if="windowlib.os.cfg">
244- <echo message="Generating Windowing Lib implementation class" />
245- <gluegen src="${stub.includes}/${window.os.system}/window-lib.c"
246- outputRootDir="${build.nativewindow}"
247- config="${windowlib.os.cfg}"
248- includeRefid="stub.includes.fileset.platform"
249- literalInclude="${stub.includes.gluegen.gg}"
250- emitter="com.jogamp.gluegen.JavaEmitter"
251- debug="false"
252- dumpCPP="false">
253- <classpath refid="gluegen.classpath" />
254- </gluegen>
255- </target>
256-
257- <target name="java.generate.jawt" unless="setup.noAWT">
258- <!-- NOTE: the "literalInclude" in this GlueGen call is simply to
259- - get around the fact that neither FileSet nor DirSet can
260- - handle different drives in an effective manner. -->
261- <echo message="Generating JAWT interface class" />
262- <echo message="java.home.dir=${java.home.dir}" />
263- <gluegen src="${jawt.platform.header}"
264- outputRootDir="${build.nativewindow}"
265- config="${jawt.cfg}"
266- includeRefid="stub.includes.fileset.platform"
267- literalInclude="${stub.includes.gluegen.gg}, ${stub.includes}/jni"
268- emitter="com.jogamp.gluegen.JavaEmitter">
269- <classpath refid="gluegen.classpath" />
270- </gluegen>
271- </target>
272-
273- <target name="java.generate.platforms" >
274- <echo message="Generating platform-specifics: os: ${window.os.system}, cfgs: ${windowlib.os.cfg}, ${jawt.cfg}" />
275- <dirset id="stub.includes.fileset.platform" dir="." includes="${stub.includes}/${window.os.system}/** ${stub.includes}/gluegen/** ${stub.includes}/khr/**" />
276- <antcall target="java.generate.windowlib" inheritRefs="true" />
277- <antcall target="java.generate.jawt" inheritRefs="true" />
278- </target>
279-
280- <!--
281- - Setup the generating ANT tasks and use it to generate the Java files
282- - from the C GL headers. This involves setting the taskdef and creating
283- - the classpath reference id then running the task on each header.
284- -->
285- <target name="java.generate" depends="init, common.gluegen.build, java.generate.check" unless="java.generate.skip">
286-
287- <!-- Add the GlueGen task to ANT -->
288- <taskdef name="gluegen" classname="com.jogamp.gluegen.ant.GlueGenTask"
289- classpathref="gluegen.classpath" />
290-
291- <!-- Use the GlueGen task to generate the Java files -->
292-
293- <echo message="Generating platform-specifics: X11" />
294- <antcall target="java.generate.platforms" inheritRefs="true">
295- <param name="window.os.system" value="x11"/>
296- <param name="windowlib.os.cfg" value="${config.nativewindow}/x11-lib.cfg" />
297- <param name="jawt.cfg" value="${config.nativewindow}/jawt-x11.cfg" />
298- <param name="jawt.platform.header" value="${stub.includes}/jni/x11/jawt_md.h" />
299- </antcall>
300-
301- <echo message="Generating platform-specifics: Win32" />
302- <antcall target="java.generate.platforms" inheritRefs="true">
303- <param name="window.os.system" value="win32"/>
304- <param name="windowlib.os.cfg" value="${config.nativewindow}/win32-lib.cfg" />
305- <param name="jawt.cfg" value="${config.nativewindow}/jawt-win32.cfg" />
306- <param name="jawt.platform.header" value="${stub.includes}/jni/win32/jawt_md.h" />
307- </antcall>
308-
309- <echo message="Generating platform-specifics: MaxOsX" />
310- <antcall target="java.generate.platforms" inheritRefs="true">
311- <param name="window.os.system" value="macosx"/>
312- <param name="jawt.cfg" value="${config.nativewindow}/jawt-macosx.cfg" />
313- <param name="jawt.platform.header" value="${stub.includes}/jni/macosx/jawt_md.h" />
314- </antcall>
315-
316- <!-- Inform the user that the generators have successfully created
317- - the necessary Java files -->
318- <echo message="" />
319- <echo message="GlueGen has successfully generated files." />
320-
321- </target>
322-
323- <!-- ================================================================== -->
324- <!--
325- - Compile the original and generated source. The composable pipelines
326- - will be generated.
327- -->
328- <target name="java.compile.javase" depends="java.generate">
329- <!-- Perform the second pass Java compile; everything. -->
330- <javac destdir="${classes}"
331- excludes="${java.excludes.all}"
332- source="${target.sourcelevel}"
333- fork="yes"
334- includeAntRuntime="false"
335- memoryMaximumSize="${javac.memorymax}"
336- debug="${javacdebug}" debuglevel="${javacdebuglevel}">
337- <classpath refid="swt_gluegen.classpath"/>
338- <src path="${src.java}" />
339- <src path="${src.generated.java}" />
340- </javac>
341- </target>
342-
343- <target name="java.compile" depends="java.compile.javase" />
344-
345- <!-- ================================================================== -->
346- <!--
347- - Compile the native C code for JOGL (and optionally the Cg binding).
348- -->
349-
350- <target name="c.configure.1" depends="gluegen.cpptasks.detect.os,gluegen.cpptasks.setup.compiler">
351- <!-- compiler configuration -->
352-
353- <!-- Note that we can use the base setups in the gluegen-cpptasks for most of these -->
354- <compiler id="compiler.cfg.freebsd.nativewindow" extends="compiler.cfg.freebsd">
355- <!-- Need to force X11R6 headers on to include path after stub_includes -->
356- <includepath path="/usr/local/include" />
357- </compiler>
358-
359- <compiler id="compiler.cfg.linux.armv7.nativewindow.x11" extends="compiler.cfg.linux.armv7">
360- <!-- Need to force /usr/include headers on to include path (after all others), due to crosscompiler usage -->
361- <compilerarg value="-idirafter" />
362- <compilerarg value="/usr/include" />
363- </compiler>
364-
365- <!-- linker configuration -->
366-
367- <linker id="linker.cfg.freebsd.nativewindow.x11" extends="linker.cfg.freebsd">
368- <syslibset dir="/usr/local/lib" libs="X11"/>
369- <syslibset dir="/usr/local/lib" libs="Xxf86vm" />
370- <syslibset dir="/usr/local/lib" libs="Xinerama"/>
371- <syslibset dir="/usr/local/lib" libs="Xrender"/>
372- </linker>
373-
374- <linker id="linker.cfg.freebsd.amd64.nativewindow.x11" extends="linker.cfg.freebsd.amd64">
375- <syslibset dir="/usr/local/lib" libs="X11" />
376- <syslibset dir="/usr/local/lib" libs="Xxf86vm" />
377- <syslibset dir="/usr/local/lib" libs="Xinerama"/>
378- <syslibset dir="/usr/local/lib" libs="Xrender"/>
379- </linker>
380-
381- <linker id="linker.cfg.linux.nativewindow.x11" extends="linker.cfg.linux">
382- <syslibset libs="X11"/>
383- <syslibset libs="Xxf86vm" />
384- <syslibset libs="Xinerama"/>
385- <syslibset libs="Xrender"/>
386- </linker>
387-
388- <linker id="linker.cfg.linux.x86.nativewindow.x11" extends="linker.cfg.linux.x86">
389- <syslibset libs="X11"/>
390- <syslibset libs="Xxf86vm" />
391- <syslibset libs="Xinerama"/>
392- <syslibset libs="Xrender"/>
393- </linker>
394-
395- <linker id="linker.cfg.linux.amd64.nativewindow.x11" extends="linker.cfg.linux.amd64">
396- <syslibset libs="X11"/>
397- <syslibset libs="Xxf86vm" />
398- <syslibset libs="Xinerama"/>
399- <syslibset libs="Xrender"/>
400- </linker>
401-
402- <linker id="linker.cfg.linux.armv7.nativewindow.x11" extends="linker.cfg.linux.armv7">
403- <syslibset dir="${env.TARGET_PLATFORM_LIBS}" libs="X11" />
404- <syslibset dir="${env.TARGET_PLATFORM_LIBS}" libs="Xxf86vm" />
405- <syslibset dir="${env.TARGET_PLATFORM_LIBS}" libs="Xinerama" />
406- <syslibset dir="${env.TARGET_PLATFORM_LIBS}" libs="Xrender" />
407- </linker>
408-
409- <linker id="linker.cfg.solaris.nativewindow.x11" extends="linker.cfg.solaris">
410- <syslibset libs="X11"/>
411- </linker>
412-
413- <linker id="linker.cfg.solaris.sparcv9.nativewindow.x11" extends="linker.cfg.solaris.sparcv9">
414- <syslibset dir="/usr/lib/sparcv9" libs="X11"/>
415- </linker>
416-
417- <linker id="linker.cfg.solaris.amd64.nativewindow.x11" extends="linker.cfg.solaris.amd64">
418- <syslibset dir="/usr/lib/amd64" libs="X11"/>
419- </linker>
420-
421- <linker id="linker.cfg.win32.mingw.nativewindow" extends="linker.cfg.win32.mingw">
422- <linkerarg value="-Wl,--kill-at" /> <!-- remove @ from function names -->
423- <syslibset libs="gdi32, kernel32"/>
424- </linker>
425-
426- <linker id="linker.cfg.win64.mingw.nativewindow" extends="linker.cfg.win64.mingw">
427- <linkerarg value="-Wl,--kill-at" /> <!-- remove @ from function names -->
428- <syslibset libs="gdi32, kernel32"/>
429- </linker>
430-
431- <linker id="linker.cfg.win32.msvc.nativewindow" extends="linker.cfg.win32.msvc">
432- <syslibset libs="gdi32, user32, kernel32" />
433- </linker>
434-
435- <linker id="linker.cfg.macosx.nativewindow" extends="linker.cfg.macosx">
436- <linkerarg value="-framework" />
437- <linkerarg value="Cocoa" />
438- </linker>
439-
440- <linker id="linker.cfg.hpux.nativewindow" extends="linker.cfg.hpux">
441- <syslibset dir="/usr/lib" libs="X11"/>
442- <syslibset dir="/usr/lib" libs="Xinerama"/>
443- </linker>
444- </target>
445-
446- <target name="c.configure.win32.vc" if="isVCFamily">
447- <echo message="Win32.VC" />
448- <property name="compiler.cfg.id" value="compiler.cfg.win32.msvc" />
449- <property name="linker.cfg.id.oswin" value="linker.cfg.win32.msvc.nativewindow" />
450- </target>
451-
452- <target name="c.configure.win32.mingw" if="isMingW32">
453- <echo message="Win32.MingW" />
454- <property name="compiler.cfg.id" value="compiler.cfg.win32.mingw" />
455- <property name="linker.cfg.id.oswin" value="linker.cfg.win32.mingw.nativewindow" />
456- </target>
457-
458- <target name="c.configure.win64.mingw" if="isMingW64">
459- <echo message="Win64.MingW" />
460- <property name="compiler.cfg.id" value="compiler.cfg.win64.mingw" />
461- <property name="linker.cfg.id.oswin" value="linker.cfg.win64.mingw.nativewindow" />
462- </target>
463-
464- <target name="c.configure.linux.x86" if="isLinuxX86">
465- <echo message="Linux.x86" />
466- <property name="compiler.cfg.id" value="compiler.cfg.linux.x86" />
467- <property name="linker.cfg.id.oswin" value="linker.cfg.linux.x86.nativewindow.x11" />
468- </target>
469-
470- <target name="c.configure.linux.amd64" if="isLinuxAMD64">
471- <echo message="Linux.AMD64" />
472- <property name="compiler.cfg.id" value="compiler.cfg.linux.amd64" />
473- <property name="linker.cfg.id.oswin" value="linker.cfg.linux.amd64.nativewindow.x11" />
474- </target>
475-
476- <target name="c.configure.linux.armv7" if="isLinuxARMv7">
477- <echo message="Linux.armv7" />
478- <property name="compiler.cfg.id" value="compiler.cfg.linux.armv7.nativewindow.x11" />
479- <property name="linker.cfg.id.oswin" value="linker.cfg.linux.armv7.nativewindow.x11" />
480- </target>
481-
482- <target name="c.configure.linux.ia64" if="isLinuxIA64">
483- <echo message="Linux.IA64" />
484- <property name="compiler.cfg.id" value="compiler.cfg.linux" />
485- <property name="linker.cfg.id.oswin" value="linker.cfg.linux.nativewindow.x11" />
486- </target>
487-
488- <target name="c.configure.linux.hppa" if="isLinuxHPPA">
489- <echo message="Linux.HPPA" />
490- <property name="compiler.cfg.id" value="compiler.cfg.linux" />
491- <property name="linker.cfg.id.oswin" value="linker.cfg.linux.nativewindow.x11" />
492- </target>
493-
494- <target name="c.configure.linux.mips" if="isLinuxMIPS">
495- <echo message="Linux.MIPS" />
496- <property name="compiler.cfg.id" value="compiler.cfg.linux" />
497- <property name="linker.cfg.id.oswin" value="linker.cfg.linux.nativewindow.x11" />
498- </target>
499-
500- <target name="c.configure.linux.mipsel" if="isLinuxMIPSEL">
501- <echo message="Linux.MIPSEL" />
502- <property name="compiler.cfg.id" value="compiler.cfg.linux" />
503- <property name="linker.cfg.id.oswin" value="linker.cfg.linux.nativewindow.x11" />
504- </target>
505-
506- <target name="c.configure.linux.ppc" if="isLinuxPPC">
507- <echo message="Linux.PPC" />
508- <property name="compiler.cfg.id" value="compiler.cfg.linux" />
509- <property name="linker.cfg.id.oswin" value="linker.cfg.linux.nativewindow.x11" />
510- </target>
511-
512- <target name="c.configure.linux.s390" if="isLinuxS390">
513- <echo message="Linux.S390" />
514- <property name="compiler.cfg.id" value="compiler.cfg.linux" />
515- <property name="linker.cfg.id.oswin" value="linker.cfg.linux.nativewindow.x11" />
516- </target>
517-
518- <target name="c.configure.linux.sparc" if="isLinuxSPARC">
519- <echo message="Linux.SPARC" />
520- <property name="compiler.cfg.id" value="compiler.cfg.linux" />
521- <property name="linker.cfg.id.oswin" value="linker.cfg.linux.nativewindow.x11" />
522- </target>
523-
524- <target name="c.configure.linux" depends="c.configure.linux.armv7,c.configure.linux.x86,c.configure.linux.amd64,c.configure.linux.ia64,c.configure.linux.hppa,c.configure.linux.mips,c.configure.linux.mipsel,c.configure.linux.ppc,c.configure.linux.s390,c.configure.linux.sparc,c.configure.x11" if="isLinux" />
525-
526- <target name="c.configure.android" if="isAndroid">
527- <echo message="Android" />
528- <property name="compiler.cfg.id" value="compiler.cfg.android" />
529- <property name="linker.cfg.id.oswin" value="linker.cfg.android" />
530- </target>
531-
532- <target name="c.configure.solaris32" depends="c.configure.x11" if="isSolaris32Bit">
533- <echo message="Solaris" />
534- <property name="compiler.cfg.id" value="compiler.cfg.solaris" />
535- <property name="linker.cfg.id.oswin" value="linker.cfg.solaris.nativewindow.x11" />
536- </target>
537-
538-
539- <target name="c.configure.solaris.sparcv9" depends="c.configure.x11" if="isSolarisSparcv9">
540- <echo message="SolarisSparcv9" />
541- <property name="compiler.cfg.id" value="compiler.cfg.solaris.sparcv9" />
542- <property name="linker.cfg.id.oswin" value="linker.cfg.solaris.sparcv9.nativewindow.x11" />
543- </target>
544-
545-
546- <target name="c.configure.solaris.amd64" depends="c.configure.x11" if="isSolarisAMD64">
547- <echo message="SolarisAMD64" />
548- <property name="compiler.cfg.id" value="compiler.cfg.solaris.amd64" />
549- <property name="linker.cfg.id.oswin" value="linker.cfg.solaris.amd64.nativewindow.x11" />
550- </target>
551-
552- <target name="c.configure.freebsd.x86" if="isFreeBSDX86">
553- <echo message="FreeBSD.x86" />
554- <property name="compiler.cfg.id" value="compiler.cfg.freebsd.nativewindow" />
555- <property name="linker.cfg.id.oswin" value="linker.cfg.freebsd.nativewindow.x11" />
556- </target>
557-
558- <target name="c.configure.freebsd.amd64" if="isFreeBSDAMD64">
559- <echo message="FreeBSD.AMD64" />
560- <property name="compiler.cfg.id" value="compiler.cfg.freebsd.nativewindow" />
561- <property name="linker.cfg.id.oswin" value="linker.cfg.freebsd.amd64.nativewindow.x11" />
562- </target>
563-
564- <target name="c.configure.freebsd" depends="c.configure.freebsd.x86,c.configure.freebsd.amd64,c.configure.x11" if="isFreeBSD" />
565-
566- <target name="c.configure.hpux" depends="c.configure.x11" if="isHPUX">
567- <echo message="HP-UX" />
568- <property name="compiler.cfg.id" value="compiler.cfg.hpux" />
569- <property name="linker.cfg.id.oswin" value="linker.cfg.hpux.nativewindow.x11" />
570- </target>
571-
572- <target name="c.configure.win32" depends="c.configure.win32.vc,c.configure.win32.mingw,c.configure.win64.mingw" if="isWindows" />
573-
574- <target name="c.configure.x11" if="isX11" />
575-
576- <target name="c.configure.macosx" if="isOSX">
577- <property name="compiler.cfg.id" value="compiler.cfg.macosx" />
578- <property name="linker.cfg.id.oswin" value="linker.cfg.macosx.nativewindow" />
579- </target>
580-
581- <target name="c.configure.2" depends="c.configure.win32,c.configure.linux,c.configure.android,c.configure.solaris32,c.configure.solaris.sparcv9,c.configure.solaris.amd64,c.configure.macosx,c.configure.freebsd,c.configure.hpux" />
582-
583- <target name="c.configure" depends="c.configure.1,c.configure.2" />
584-
585- <target name="rename.mingw.dll" if="isMingW">
586- <move file="${src}" tofile="${dest}" />
587- </target>
588-
589- <target name="rename.dylib" if="isOSX">
590- <move file="${src}" tofile="${dest}" />
591- </target>
592-
593- <macrodef name="c.build">
594- <attribute name="c.compiler.src.files" />
595- <attribute name="compiler.cfg.id" />
596- <attribute name="linker.cfg.id" />
597- <attribute name="output.lib.name" />
598- <attribute name="c.compiler.use-jawt" default="false"/>
599- <sequential>
600- <echo message="Output lib name = @{output.lib.name}" />
601-
602- <!-- NOTE: the value of the debug and optimise attributes will not be overridden if already set externally -->
603- <property name="c.compiler.debug" value="false" />
604- <!-- Optimise flags one of { none, size, speed, minimal, full, aggressive, extreme, unsafe } -->
605- <property name="c.compiler.optimise" value="none" />
606-
607- <condition property="c.compiler.use-debug"><istrue value="${c.compiler.debug}"/></condition>
608-
609- <!-- since properties are immutable, we need one for each target -->
610- <condition property="@{output.lib.name}.useLibJAWT">
611- <istrue value="@{c.compiler.use-jawt}" />
612- </condition>
613- <echo message="c.compiler.use-jawt @{c.compiler.use-jawt}"/>
614- <echo message="@{output.lib.name}.useLibJAWT ${@{output.lib.name}.useLibJAWT}"/>
615-
616- <condition property="@{output.lib.name}.useLibJVM">
617- <and>
618- <isset property="isHPUX"/>
619- <isset property="@{output.lib.name}.useLibJAWT"/>
620- </and>
621- </condition>
622-
623- <patternset id="c.src.files.awt">
624- <include name="${rootrel.src.c}/JAWT*.c"/>
625- <include name="${rootrel.generated.c}/X11/JAWT*.c" if="isX11"/>
626- <include name="${rootrel.generated.c}/MacOSX/JAWT*.c" if="isOSX"/>
627- <include name="${rootrel.generated.c}/Windows/JAWT*.c" if="isWindows"/>
628- </patternset>
629-
630- <patternset id="c.src.files.x11">
631- <include name="${rootrel.generated.c}/X11/X11*.c"/>
632- <include name="${rootrel.src.c}/x11/Xmisc.c"/>
633- <include name="${rootrel.src.c}/x11/XineramaHelper.c"/>
634- <include name="${rootrel.src.c}/NativewindowCommon.c"/>
635- </patternset>
636-
637- <patternset id="c.src.files.windows">
638- <include name="${rootrel.generated.c}/Windows/GDI*.c"/>
639- <include name="${rootrel.src.c}/windows/GDImisc.c"/>
640- <include name="${rootrel.src.c}/windows/WindowsDWM.c"/>
641- <include name="${rootrel.src.c}/NativewindowCommon.c"/>
642- </patternset>
643-
644- <patternset id="c.src.files.macosx">
645- <include name="${rootrel.src.c}/macosx/OSXmisc.c"/>
646- <include name="${rootrel.src.c}/NativewindowCommon.c"/>
647- </patternset>
648-
649- <echo message="Compiling @{output.lib.name}" />
650-
651- <!-- have to wrap cc task with outofdate, because otherwise cc links a new library
652- even when no files have been compiled -->
653- <outofdate>
654- <sourcefiles>
655- <fileset dir="${project.root}"><patternset refid="@{c.compiler.src.files}"/></fileset>
656- </sourcefiles>
657- <targetfiles>
658- <fileset dir="${obj.nativewindow}" includes="lib@{output.lib.name}.so"/>
659- <fileset dir="${obj.nativewindow}" includes="@{output.lib.name}.dll"/>
660- <fileset dir="${obj.nativewindow}" includes="lib@{output.lib.name}.jnilib"/>
661- </targetfiles>
662- <sequential>
663- <cc outtype="shared"
664- objdir="${obj.nativewindow}"
665- outfile="${obj.nativewindow}/@{output.lib.name}"
666- optimize="${c.compiler.optimise}"
667- debug="${c.compiler.debug}"
668- multithreaded="true"
669- exceptions="false"
670- rtti="false">
671-
672- <fileset dir="${project.root}"><patternset refid="@{c.compiler.src.files}"/></fileset>
673-
674- <compiler extends="@{compiler.cfg.id}" >
675- <sysincludepath path="${java.includes.dir}"/>
676- <sysincludepath path="${java.includes.dir.platform}"/>
677- <sysincludepath path="${stub.includes.gluegen.cc}"/>
678- <!-- This is for the generated headers for handwritten C code -->
679- <includepath path="${src.generated.c}" />
680- <includepath path="${src.generated.c}/X11" if="isX11"/>
681- <includepath path="${src.generated.c}/MacOSX" if="isOSX"/>
682- <includepath path="${src.generated.c}/Windows" if="isWindows"/>
683- <includepath path="${src.c}/windows" if="isWindows"/>
684- <includepath path="${src.c}"/>
685-
686- <!-- This must come last to not override real include paths -->
687- <!-- includepath path="stub_includes/macosx" if="isOSX" / -->
688- </compiler>
689-
690- <linker extends="@{linker.cfg.id}">
691- <syslibset dir="${java.lib.dir.platform}" libs="jawt" if="@{output.lib.name}.useLibJAWT"/>
692- <syslibset dir="${java.lib.dir.platform}/server" libs="jvm" if="@{output.lib.name}.useLibJVM"/>
693- </linker>
694- </cc>
695-
696- <!-- FIXME: this is a hack; the cpptask should have an option to change the
697- suffix or at least understand the override from dylib to jnilib -->
698- <antcall target="rename.dylib" inheritRefs="true">
699- <param name="src" value="${obj.nativewindow}/lib@{output.lib.name}.dylib" />
700- <param name="dest" value="${obj.nativewindow}/lib@{output.lib.name}.jnilib" />
701- </antcall>
702-
703- <!-- FIXME: this is a hack; the cpptask should have an option to change the
704- suffix or at least understand the override from dylib to jnilib -->
705- <antcall target="rename.mingw.dll" inheritRefs="true">
706- <param name="src" value="${obj.nativewindow}/lib@{output.lib.name}.so" />
707- <param name="dest" value="${obj.nativewindow}/@{output.lib.name}.dll" />
708- </antcall>
709-
710- <!-- this stripping may be called more than once on the same library dir,
711- but that should cause no harm, and doing it here inside outofdate
712- prevents the JARs from always being rebuilt even if no source code changes -->
713- <antcall target="gluegen.cpptasks.striplibs" inheritRefs="true">
714- <param name="libdir" value="${obj.nativewindow}"/>
715- </antcall>
716-
717- </sequential>
718- </outofdate>
719- </sequential>
720- </macrodef>
721-
722- <target name="c.fixup.jawt.version.macosx" if="isOSX" unless="setup.noNativeAWT">
723- <!-- Edit the link to the JAWT version in the resulting jnilib
724- file; this isn't strictly needed but seems to allow the
725- universal binaries to work on 10.3 machines as well, which
726- is desirable for some end users -->
727- <apply executable="install_name_tool">
728- <arg value="-change" />
729- <arg value="/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libjawt.dylib" />
730- <arg value="/System/Library/Frameworks/JavaVM.framework/Libraries/libjawt.dylib" />
731- <srcfile />
732- <fileset dir="${obj.nativewindow}" includes="libnativewindow_awt.jnilib" />
733- </apply>
734- </target>
735-
736- <target name="c.build.nativewindow.awt" unless="setup.noNativeAWT">
737- <c.build c.compiler.src.files="c.src.files.awt"
738- c.compiler.use-jawt="true"
739- output.lib.name="nativewindow_awt"
740- compiler.cfg.id="${compiler.cfg.id}"
741- linker.cfg.id="${linker.cfg.id.oswin}"/>
742- </target>
743-
744- <target name="c.build.nativewindow.windowlib.x11" if="isX11">
745- <javah destdir="${src.generated.c}/X11" classpath="${javah.classpath}" class="jogamp.nativewindow.x11.X11Lib" />
746-
747- <c.build c.compiler.src.files="c.src.files.x11"
748- output.lib.name="nativewindow_x11"
749- compiler.cfg.id="${compiler.cfg.id}"
750- linker.cfg.id="${linker.cfg.id.oswin}"/>
751- </target>
752-
753- <target name="c.build.nativewindow.windowlib.windows" if="isWindows">
754- <javah destdir="${src.generated.c}/Windows" classpath="${javah.classpath}" class="jogamp.nativewindow.windows.GDI" />
755-
756- <c.build c.compiler.src.files="c.src.files.windows"
757- output.lib.name="nativewindow_win32"
758- compiler.cfg.id="${compiler.cfg.id}"
759- linker.cfg.id="${linker.cfg.id.oswin}"/>
760- </target>
761-
762- <target name="c.build.nativewindow.windowlib.macosx" if="isOSX">
763- <javah destdir="${src.generated.c}/MacOSX" classpath="${javah.classpath}" class="jogamp.nativewindow.macosx.OSXUtil" />
764-
765- <c.build c.compiler.src.files="c.src.files.macosx"
766- output.lib.name="nativewindow_macosx"
767- compiler.cfg.id="${compiler.cfg.id}"
768- linker.cfg.id="${linker.cfg.id.oswin}"/>
769- </target>
770-
771- <target name="c.build.nativewindow.windowlib" depends="c.build.nativewindow.windowlib.x11, c.build.nativewindow.windowlib.windows, c.build.nativewindow.windowlib.macosx"/>
772-
773- <target name="c.manifest" if="isVC8Family">
774- <!-- exec mt, the Microsoft Manifest Tool, to include DLL manifests in order to resolve the location of msvcr80.dll -->
775- <msvc.manifest objdir="${obj.nativewindow}" dllname="nativewindow_awt" />
776- <msvc.manifest objdir="${obj.nativewindow}" dllname="nativewindow_win32" />
777- </target>
778-
779- <target name="c.build.nativewindow" depends="c.configure,c.build.nativewindow.windowlib,c.build.nativewindow.awt">
780- <antcall target="c.fixup.jawt.version.macosx" inheritrefs="true" />
781- <antcall target="c.manifest" inheritRefs="true" />
782- </target>
783-
784- <!-- ================================================================== -->
785- <!--
786- - Build the nativewindow.jar files.
787- -->
788- <target name="build-jars" depends="gluegen.cpptasks.detect.os,build-jars-javase" />
789-
790- <target name="setup-manifestfile">
791- <property name="manifestfile" value="nativewindowversion"/>
792- <copy file="${manifestfile}"
793- tofile="${build.nativewindow}/manifest.mf"
794- overwrite="true">
795- <filterset>
796- <filter token="VERSION" value="${nativewindow.version}"/>
797- <filter token="SCM_BRANCH" value="${jogl.build.branch}"/>
798- <filter token="SCM_COMMIT" value="${jogl.build.commit}"/>
799- <filter token="BASEVERSION" value="${nativewindow_base_version}"/>
800- </filterset>
801- </copy>
802- </target>
803-
804- <target name="build-jars-awt" depends="setup-manifestfile" unless="setup.noAWT">
805- <jar manifest="${build.nativewindow}/manifest.mf" destfile="${nativewindow.awt.jar}" filesonly="true">
806- <fileset dir="${classes}"
807- includes="${java.part.awt}"
808- excludes="${java.excludes.awt}"/>
809- </jar>
810- </target>
811-
812- <target name="build-jars-x11" depends="setup-manifestfile">
813- <jar manifest="${build.nativewindow}/manifest.mf" destfile="${nativewindow.os.x11.jar}" filesonly="true">
814- <fileset dir="${classes}"
815- includes="${java.part.x11}" />
816- </jar>
817- </target>
818-
819- <target name="build-jars-windows" depends="setup-manifestfile">
820- <jar manifest="${build.nativewindow}/manifest.mf" destfile="${nativewindow.os.win.jar}" filesonly="true">
821- <fileset dir="${classes}"
822- includes="${java.part.windows}" />
823- </jar>
824- </target>
825-
826- <target name="build-jars-macosx" depends="setup-manifestfile">
827- <jar manifest="${build.nativewindow}/manifest.mf" destfile="${nativewindow.os.macosx.jar}" filesonly="true">
828- <fileset dir="${classes}"
829- includes="${java.part.macosx}" />
830- </jar>
831- </target>
832-
833- <target name="build-jars-javase" depends="setup-manifestfile,build-jars-awt,build-jars-x11,build-jars-windows,build-jars-macosx">
834- <jar manifest="${build.nativewindow}/manifest.mf" destfile="${nativewindow.core.jar}" filesonly="true">
835- <fileset dir="${classes}"
836- includes="${java.part.core}"
837- excludes="${java.part.awt} ${java.part.x11} ${java.part.windows}"/>
838- </jar>
839- <jar manifest="${build.nativewindow}/manifest.mf" destfile="${build.nativewindow}/nativewindow-natives-${os.and.arch}.jar" filesonly="true">
840- <fileset dir="${obj.nativewindow}">
841- <include name="*.${native.library.suffix}" />
842- </fileset>
843- </jar>
844- </target>
845-
846- <!-- ================================================================== -->
847- <!--
848- - Build the Javadocs for the sources.
849- - NOTE: these are not entirely correct as the javadoc targets depend
850- - on the platform specific build targets. To circumvent any
851- - errors, ensure that the source is built first.
852- -->
853- <target name="javadoc" depends="init">
854- <!-- Build the general public Javadoc -->
855- <javadoc packagenames="${javadoc.packagenames}"
856- excludepackagenames="${java.excludes.javadoc.packagenames}"
857- sourcepath="${src.java};${src.generated.java}"
858- classpath="${gluegen-rt.jar}"
859- destdir="${javadoc}" windowtitle="${javadoc.windowtitle}"
860- overview="${javadoc.overview}"
861- source="${target.sourcelevel}"
862- linkoffline="${javadoc.link} 142-packages"
863- bottom="${javadoc.bottom}" >
864- </javadoc>
865- </target>
866-
867- <target name="javadoc.spec" depends="init">
868- <!-- Build the specification Javadoc -->
869- <javadoc packagenames="${javadoc.spec.packagenames}"
870- excludepackagenames="${java.excludes.javadoc.packagenames}"
871- sourcepath="${src.java};${src.generated.java}"
872- classpath="${gluegen-rt.jar}"
873- destdir="${javadoc.spec}" windowtitle="${javadoc.windowtitle}"
874- overview="${javadoc.overview}"
875- source="${target.sourcelevel}"
876- linkoffline="${javadoc.link} 142-packages"
877- bottom="${javadoc.bottom}" >
878- </javadoc>
879- </target>
880-
881- <target name="javadoc.dev" depends="init">
882- <!-- Build the internal developer Javadoc -->
883- <javadoc packagenames="${javadoc.dev.packagenames}"
884- excludepackagenames="${java.excludes.javadoc.packagenames}"
885- sourcepath="${src.java};${src.generated.java}"
886- classpath="${gluegen-rt.jar}"
887- destdir="${javadoc.dev}" windowtitle="${javadoc.windowtitle}"
888- overview="${javadoc.overview}"
889- source="${target.sourcelevel}"
890- linkoffline="${javadoc.link} 142-packages"
891- bottom="${javadoc.bottom}" >
892- </javadoc>
893- </target>
894-
895- <target name="all.doc" description="Build NativeWindow docs" depends="init,javadoc,javadoc.spec,javadoc.dev" />
896-
897- <!-- ================================================================== -->
898- <!--
899- - Clean up all that is built.
900- -->
901- <target name="clean" description="Remove all build products" depends="declare.common">
902- <delete includeEmptyDirs="true" quiet="true">
903- <fileset dir="${build.nativewindow}" />
904- <fileset dir="${javadoc}" />
905- <fileset dir="${javadoc.spec}" />
906- <fileset dir="${javadoc.dev}" />
907- </delete>
908- </target>
909-
910- <!-- ================================================================== -->
911- <!--
912- - Build everything.
913- -->
914- <target name="all" description="Build NativeWindow JAR file(s) and native libraries." depends="init,java.compile,c.build.nativewindow,build-jars,generate.version.txt" />
915-
916- <target name="generate.version.txt" depends="init">
917- <!-- Create a version.txt file indicating which version we just built -->
918- <echo message="${nativewindow.version}" file="${build.nativewindow}/version.txt" />
919- </target>
920-
921-</project>
922
923=== removed directory '.pc/disable_android.diff'
924=== removed directory '.pc/disable_android.diff/make'
925=== removed file '.pc/disable_android.diff/make/build-newt.xml'
926--- .pc/disable_android.diff/make/build-newt.xml 2011-10-06 15:53:38 +0000
927+++ .pc/disable_android.diff/make/build-newt.xml 1970-01-01 00:00:00 +0000
928@@ -1,762 +0,0 @@
929-<?xml version="1.0" encoding="UTF-8"?>
930-<!--
931- - Ant build for NEWT. This build has been tested with ANT 1.7.0. The
932- - optional.jar that contains the optional ANT tasks must be in the ANT
933- - classpath (typically the ant/lib directory).
934- -
935- - A clean download of NEWT is required for this build.
936- -
937- - This build has no dependence on environment variables; the needed
938- - ones (e.g. java.home, ANT_HOME) are all set by the Ant wrapper shell
939- - script, by the virtual machine, or elsewhere. However, on all platforms,
940- - the C compiler and linker should be in the path. All other paths that
941- - need to be set are in host.properties.
942- -
943- - NOTE: because the GlueGen config files have their own relative paths
944- - which cannot be overridden by GlueGen, GlueGen MUST be run from
945- - the "make" directory. This also means that this build.xml MUST
946- - be run from the "make" directory.
947- -
948- - Public targets:
949- - all: (default; autodetects OS and chooses C compiler from newt.properties)
950- - clean: clean all built
951- - javadoc: create the standard developer Javadoc (recommended)
952- - (Note: should build all first - may be dependence in the future)
953- - javadoc.spec: create the standard developer Javadoc but exclude com.jogamp.* classes
954- - javadoc.dev: create the internal developer Javadoc. This includes the
955- - Java and C file generators. Note that it is only supported
956- - to create the Javadoc for the platform on which you are
957- - currently running.
958- -
959- - Note: on Windows the "win32.c.compiler" property in newt.properties
960- - is required to select the appropriate C compiler. See the example
961- - newt.properties in this directory for valid values. On Mac OS X
962- - universal binaries may also be built by setting the "macosxfat"
963- - property in newt.properties; again see the example file in this
964- - directory.
965- -
966- - Thanks to Rob Grzywinski and Artur Biesiadowski for the bulk of the
967- - ANT build, including the GlueGen and StaticGLInfo tasks, the building of
968- - the Java generated sources, the first and second phase Java compiles, and
969- - the building of the jar file. Thanks to Alex Radeski for the bulk of the
970- - port to the ant-contrib CPPTask framework. Thanks to Athomas Goldberg for
971- - the original OS detection code.
972- -
973- - Some environment defs affecting compilation
974-
975- - Some environment defs affecting native compilation
976- setup.noNativeDesktop
977- setup.addNativeKD
978- setup.addNativeIntelGDL
979- setup.addNativeBroadcomEGL
980-
981- - Internal settings, may not be necessary to set them manually,
982- since all JAR archives are orthogonal.
983- setup.noAWT
984- setup.noOpenGL
985-
986- -->
987-<project name="NEWT" basedir="." default="all">
988-
989- <import file="build-common.xml"/>
990-
991- <!-- needed for outofdate task -->
992- <taskdef resource="net/sf/antcontrib/antlib.xml">
993- <classpath> <pathelement location="${ant-contrib.jar}"/> </classpath>
994- </taskdef>
995-
996- <!-- ================================================================== -->
997- <!--
998- - Base initialization and detection of operating system.
999- -->
1000- <target name="base.init" depends="common.init">
1001-
1002- <condition property="setup.nonatives">
1003- <and>
1004- <isfalse value="${isWindows}" />
1005- <isfalse value="${isOSX}" />
1006- <isfalse value="${isX11}" />
1007- <isfalse value="${isAndroid}" />
1008- <isfalse value="${setup.addNativeKD}" />
1009- <isfalse value="${setup.addNativeIntelGDL}" />
1010- <isfalse value="${setup.addNativeBroadcomEGL}" />
1011- </and>
1012- </condition>
1013-
1014- <echo message="setup.noOpenGL: ${setup.noOpenGL}" />
1015- <echo message="isWindows: ${isWindows}" />
1016- <echo message="isOSX: ${isOSX}" />
1017- <echo message="isX11: ${isX11}" />
1018- <echo message="isAndroid: ${isAndroid}" />
1019- <echo message="setup.addNativeKD: ${setup.addNativeKD}" />
1020- <echo message="setup.addNativeIntelGDL: ${setup.addNativeIntelGDL}" />
1021- <echo message="setup.addNativeBroadcomEGL: ${setup.addNativeBroadcomEGL}" />
1022- <echo message="setup.nonatives: ${setup.nonatives}" />
1023-
1024- <!-- partitioning -->
1025-
1026- <property name="java.part.core"
1027- value="com/jogamp/newt/* com/jogamp/newt/event/* com/jogamp/newt/util/* jogamp/newt/* jogamp/newt/event/*"/>
1028-
1029- <property name="java.part.opengl"
1030- value="com/jogamp/newt/opengl/**"/>
1031-
1032- <property name="java.part.driver.awt"
1033- value="jogamp/newt/driver/awt/**"/>
1034-
1035- <property name="java.part.awt"
1036- value="com/jogamp/newt/awt/** com/jogamp/newt/event/awt/** jogamp/newt/awt/** ${java.part.driver.awt}"/>
1037-
1038- <property name="java.part.driver.x11"
1039- value="jogamp/newt/driver/x11/**"/>
1040-
1041- <property name="java.part.driver.windows"
1042- value="jogamp/newt/driver/windows/**"/>
1043-
1044- <property name="java.part.driver.macosx"
1045- value="jogamp/newt/driver/macosx/**"/>
1046-
1047- <property name="java.part.driver.kd"
1048- value="jogamp/newt/driver/kd/**"/>
1049-
1050- <property name="java.part.driver.intelgdl"
1051- value="jogamp/newt/driver/intel/gdl/**"/>
1052-
1053- <property name="java.part.driver.broadcomegl"
1054- value="jogamp/newt/driver/broadcom/egl/**"/>
1055-
1056- <property name="java.part.driver.android"
1057- value="jogamp/newt/driver/android/**"/>
1058-
1059- <!-- condition excludes -->
1060-
1061- <condition property="java.excludes.awt"
1062- value="${java.part.awt}">
1063- <isset property="setup.noAWT"/>
1064- </condition>
1065-
1066- <condition property="java.excludes.opengl" value="${java.part.opengl}">
1067- <isset property="setup.noOpenGL"/>
1068- </condition>
1069-
1070- <property name="java.excludes.all" value="${java.excludes.awt}, ${java.excludes.opengl}" />
1071- <echo message="java.excludes.all: ${java.excludes.all}" />
1072-
1073- </target>
1074-
1075- <!-- ================================================================== -->
1076- <!--
1077- - Declare all paths and user defined variables.
1078- -->
1079- <target name="declare.common" description="Declare properties" depends="base.init">
1080- <property name="rootrel.src" value="src/newt" />
1081- <property name="rootrel.src.java" value="${rootrel.src}/classes" />
1082- <property name="rootrel.src.c" value="${rootrel.src}/native" />
1083-
1084- <!-- The source directories. -->
1085- <property name="src.java" value="${project.root}/${rootrel.src.java}" />
1086- <property name="src.c" value="${project.root}/${rootrel.src.c}" />
1087-
1088- <!-- The generated source directories. -->
1089- <property name="src.generated" value="${build.newt}/gensrc" />
1090- <property name="src.generated.c" value="${src.generated}/native/newt" />
1091-
1092- <!-- The compiler output directories. -->
1093- <property name="classes" value="${build.newt}/classes" />
1094-
1095- <property name="javah.classpath" value="${gluegen-rt.jar}:${build.nativewindow}/classes:${classes}" />
1096-
1097- <!-- The javadoc dirs. -->
1098- <property name="javadoc" value="${project.root}/javadoc_newt_public" />
1099- <property name="javadoc.spec" value="${project.root}/javadoc_newt_spec" />
1100- <property name="javadoc.dev" value="${project.root}/javadoc_newt_dev" />
1101- <property name="javadoc.windowtitle" value="NEWT API -- ${newt_base_version} Specification" />
1102- <property name="javadoc.overview" value="spec-overview.html" />
1103- <property name="javadoc.spec.packagenames" value="com.jogamp.newt, com.jogamp.newt.event, com.jogamp.newt.opengl, com.jogamp.newt.util" />
1104-
1105- <property name="javadoc.packagenames" value="${javadoc.spec.packagenames}" />
1106-
1107- <property name="javadoc.dev.packagenames" value="${javadoc.packagenames},com.jogamp.newt.*" />
1108- <property name="javadoc.bottom" value="Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to &lt;a href=&quot;http://jcp.org/en/jsr/detail?id=231&quot;&gt;license terms&lt;/a&gt;." />
1109- </target>
1110-
1111- <!-- ================================================================== -->
1112- <!--
1113- - Initialize all parameters required for the build and create any
1114- - required directories.
1115- -->
1116- <target name="init" depends="declare.common">
1117- <mkdir dir="${src.generated.c}" />
1118- <mkdir dir="${src.generated.c}/Android" />
1119- <mkdir dir="${src.generated.c}/X11" />
1120- <mkdir dir="${src.generated.c}/MacOSX" />
1121- <mkdir dir="${src.generated.c}/Windows" />
1122- <mkdir dir="${src.generated.c}/KD" />
1123- <mkdir dir="${src.generated.c}/IntelGDL" />
1124- <mkdir dir="${src.generated.c}/BroadcomEGL" />
1125- <mkdir dir="${classes}" />
1126- <mkdir dir="${obj.newt}" />
1127- </target>
1128-
1129- <!-- ================================================================== -->
1130- <!--
1131- - Compile the original and generated source.
1132- -->
1133- <target name="java.compile.javase">
1134- <!-- Perform the second pass Java compile; everything. -->
1135- <javac destdir="${classes}"
1136- excludes="${java.excludes.all}"
1137- source="${target.sourcelevel}"
1138- fork="yes"
1139- includeAntRuntime="false"
1140- memoryMaximumSize="${javac.memorymax}"
1141- debug="${javacdebug}" debuglevel="${javacdebuglevel}">
1142- <src path="${src.java}" />
1143- <classpath refid="jogl_nativewindow_gluegen.classpath"/>
1144- </javac>
1145- </target>
1146-
1147- <target name="java.compile" depends="java.compile.javase" />
1148-
1149- <!-- ================================================================== -->
1150- <!--
1151- - Compile the native C code for JOGL (and optionally the Cg binding).
1152- -->
1153-
1154- <target name="c.configure.1" depends="gluegen.cpptasks.detect.os,gluegen.cpptasks.setup.compiler">
1155- <!-- compiler configuration -->
1156- <!-- Note that we can use the base setups in the gluegen-cpptasks for most of these -->
1157- <compiler id="compiler.cfg.freebsd.newt" extends="compiler.cfg.freebsd">
1158- <includepath path="/usr/local/include" />
1159- </compiler>
1160-
1161- <compiler id="compiler.cfg.linux.armv7.newt.x11" extends="compiler.cfg.linux.armv7">
1162- <!-- Need to force /usr/include headers on to include path (after all others), due to crosscompiler usage -->
1163- <compilerarg value="-idirafter" />
1164- <compilerarg value="/usr/include" />
1165- </compiler>
1166-
1167- <!-- linker configuration -->
1168-
1169- <linker id="linker.cfg.freebsd.newt.x11" extends="linker.cfg.freebsd">
1170- <syslibset dir="/usr/local/lib" libs="X11"/>
1171- <syslibset libs="Xrandr"/>
1172- <syslibset dir="/usr/local/lib" libs="Xxf86vm" />
1173- </linker>
1174-
1175- <linker id="linker.cfg.freebsd.amd64.newt.x11" extends="linker.cfg.freebsd.amd64">
1176- <syslibset dir="/usr/local/lib" libs="X11"/>
1177- <syslibset libs="Xrandr"/>
1178- <syslibset dir="/usr/local/lib" libs="Xxf86vm" />
1179- </linker>
1180-
1181- <linker id="linker.cfg.linux.newt.broadcom_egl" extends="linker.cfg.linux">
1182- <syslibset libs="EGL"/>
1183- <syslibset libs="GLES_CM"/>
1184- </linker>
1185-
1186- <linker id="linker.cfg.linux.newt.x11" extends="linker.cfg.linux">
1187- <syslibset libs="X11"/>
1188- <syslibset libs="Xrandr"/>
1189- <syslibset libs="Xxf86vm" />
1190- </linker>
1191-
1192- <linker id="linker.cfg.linux.x86.newt.x11" extends="linker.cfg.linux.x86">
1193- <syslibset libs="X11"/>
1194- <syslibset libs="Xrandr"/>
1195- <syslibset libs="Xxf86vm" />
1196- </linker>
1197-
1198- <linker id="linker.cfg.linux.amd64.newt.x11" extends="linker.cfg.linux.amd64">
1199- <syslibset libs="X11"/>
1200- <syslibset libs="Xrandr"/>
1201- <syslibset libs="Xxf86vm" />
1202- </linker>
1203-
1204- <linker id="linker.cfg.linux.armv7.newt.x11" extends="linker.cfg.linux.armv7">
1205- <syslibset dir="${env.TARGET_PLATFORM_LIBS}" libs="X11" />
1206- <syslibset dir="${env.TARGET_PLATFORM_LIBS}" libs="Xrandr" />
1207- <syslibset dir="${env.TARGET_PLATFORM_LIBS}" libs="Xxf86vm" />
1208- </linker>
1209-
1210- <linker id="linker.cfg.android.newt" extends="linker.cfg.android">
1211- <syslibset dir="${env.TARGET_PLATFORM_LIBS}" libs="android" />
1212- </linker>
1213-
1214- <linker id="linker.cfg.solaris.newt.x11" extends="linker.cfg.solaris">
1215- <syslibset libs="X11"/>
1216- </linker>
1217-
1218- <linker id="linker.cfg.solaris.sparcv9.newt.x11" extends="linker.cfg.solaris.sparcv9">
1219- <syslibset dir="/usr/lib/sparcv9" libs="X11"/>
1220- </linker>
1221-
1222- <linker id="linker.cfg.solaris.amd64.newt.x11" extends="linker.cfg.solaris.amd64">
1223- <syslibset dir="/usr/lib/amd64" libs="X11"/>
1224- </linker>
1225-
1226- <linker id="linker.cfg.win32.mingw.newt" extends="linker.cfg.win32.mingw">
1227- <linkerarg value="-Wl,--kill-at" /> <!-- remove @ from function names -->
1228- <syslibset libs="gdi32, kernel32"/>
1229- </linker>
1230-
1231- <linker id="linker.cfg.win64.mingw.newt" extends="linker.cfg.win64.mingw">
1232- <linkerarg value="-Wl,--kill-at" /> <!-- remove @ from function names -->
1233- <syslibset libs="gdi32, kernel32"/>
1234- </linker>
1235-
1236- <linker id="linker.cfg.win32.msvc.newt" extends="linker.cfg.win32.msvc">
1237- <syslibset libs="gdi32, user32, kernel32" />
1238- </linker>
1239-
1240- <linker id="linker.cfg.macosx.newt" extends="linker.cfg.macosx">
1241- <linkerarg value="-framework" />
1242- <linkerarg value="Cocoa" />
1243- </linker>
1244-
1245- <linker id="linker.cfg.hpux.newt" extends="linker.cfg.hpux">
1246- <syslibset dir="/usr/lib" libs="X11"/>
1247- </linker>
1248- </target>
1249-
1250- <target name="c.configure.win32.vc" if="isVCFamily">
1251- <echo message="Win32.VC" />
1252- <property name="compiler.cfg.id" value="compiler.cfg.win32.msvc" />
1253- <property name="linker.cfg.id.oswin" value="linker.cfg.win32.msvc.newt" />
1254- </target>
1255-
1256- <target name="c.configure.win32.mingw" if="isMingW32">
1257- <echo message="Win32.MingW" />
1258- <property name="compiler.cfg.id" value="compiler.cfg.win32.mingw" />
1259- <property name="linker.cfg.id.oswin" value="linker.cfg.win32.mingw.newt" />
1260- </target>
1261-
1262- <target name="c.configure.win64.mingw" if="isMingW64">
1263- <echo message="Win64.MingW" />
1264- <property name="compiler.cfg.id" value="compiler.cfg.win64.mingw" />
1265- <property name="linker.cfg.id.oswin" value="linker.cfg.win64.mingw.newt" />
1266- </target>
1267-
1268- <target name="c.configure.linux.x86" if="isLinuxX86">
1269- <echo message="Linux.x86" />
1270- <property name="compiler.cfg.id" value="compiler.cfg.linux.x86" />
1271- <condition property="linker.cfg.id.oswin" value="linker.cfg.linux.x86.newt.x11"
1272- else="linker.cfg.linux.x86">
1273- <isset property="isX11" />
1274- </condition>
1275- <echo message="linker.cfg.id.oswin ${linker.cfg.id.oswin}" />
1276- </target>
1277-
1278- <target name="c.configure.linux.amd64" if="isLinuxAMD64">
1279- <echo message="Linux.AMD64" />
1280- <property name="compiler.cfg.id" value="compiler.cfg.linux.amd64" />
1281- <condition property="linker.cfg.id.oswin" value="linker.cfg.linux.amd64.newt.x11"
1282- else="linker.cfg.linux.amd64">
1283- <isset property="isX11" />
1284- </condition>
1285- <echo message="linker.cfg.id.oswin ${linker.cfg.id.oswin}" />
1286- </target>
1287-
1288- <target name="c.configure.linux.armv7" if="isLinuxARMv7">
1289- <echo message="Linux.armv7" />
1290- <property name="compiler.cfg.id" value="compiler.cfg.linux.armv7.newt.x11" />
1291- <condition property="linker.cfg.id.oswin" value="linker.cfg.linux.armv7.newt.x11"
1292- else="linker.cfg.linux.armv7">
1293- <isset property="isX11" />
1294- </condition>
1295- <echo message="linker.cfg.id.oswin ${linker.cfg.id.oswin}" />
1296- </target>
1297-
1298- <target name="c.configure.linux.ia64" if="isLinuxIA64">
1299- <echo message="Linux.IA64" />
1300- <property name="compiler.cfg.id" value="compiler.cfg.linux" />
1301- <property name="linker.cfg.id.oswin" value="linker.cfg.linux.newt.x11" />
1302- </target>
1303-
1304- <target name="c.configure.linux" depends="c.configure.linux.x86,c.configure.linux.amd64,c.configure.linux.armv7,c.configure.linux.ia64,c.configure.x11" if="isLinux"/>
1305-
1306- <target name="c.configure.android" if="isAndroid">
1307- <echo message="Android" />
1308- <property name="compiler.cfg.id" value="compiler.cfg.android" />
1309- <property name="linker.cfg.id.oswin" value="linker.cfg.android.newt" />
1310- </target>
1311-
1312- <target name="c.configure.solaris32" depends="c.configure.x11" if="isSolaris32Bit">
1313- <echo message="Solaris" />
1314- <property name="compiler.cfg.id" value="compiler.cfg.solaris" />
1315- <property name="linker.cfg.id.oswin" value="linker.cfg.solaris.newt.x11" />
1316- </target>
1317-
1318-
1319- <target name="c.configure.solaris.sparcv9" depends="c.configure.x11" if="isSolarisSparcv9">
1320- <echo message="SolarisSparcv9" />
1321- <property name="compiler.cfg.id" value="compiler.cfg.solaris.sparcv9" />
1322- <property name="linker.cfg.id.oswin" value="linker.cfg.solaris.sparcv9.newt.x11" />
1323- </target>
1324-
1325-
1326- <target name="c.configure.solaris.amd64" depends="c.configure.x11" if="isSolarisAMD64">
1327- <echo message="SolarisAMD64" />
1328- <property name="compiler.cfg.id" value="compiler.cfg.solaris.amd64" />
1329- <property name="linker.cfg.id.oswin" value="linker.cfg.solaris.amd64.newt.x11" />
1330- </target>
1331-
1332- <target name="c.configure.freebsd.x86" if="isFreeBSDX86">
1333- <echo message="FreeBSD.x86" />
1334- <property name="compiler.cfg.id" value="compiler.cfg.freebsd.newt" />
1335- <condition property="linker.cfg.id.oswin" value="linker.cfg.freebsd.newt.x11"
1336- else="linker.cfg.freebsd">
1337- <isset property="isX11" />
1338- </condition>
1339- <echo message="linker.cfg.id.oswin ${linker.cfg.id.oswin}" />
1340- </target>
1341-
1342- <target name="c.configure.freebsd.amd64" if="isFreeBSDAMD64">
1343- <echo message="FreeBSD.AMD64" />
1344- <property name="compiler.cfg.id" value="compiler.cfg.freebsd.newt" />
1345- <condition property="linker.cfg.id.oswin" value="linker.cfg.freebsd.amd64.newt.x11"
1346- else="linker.cfg.freebsd.amd64">
1347- <isset property="isX11" />
1348- </condition>
1349- <echo message="linker.cfg.id.oswin ${linker.cfg.id.oswin}" />
1350- </target>
1351-
1352- <target name="c.configure.freebsd" depends="c.configure.freebsd.x86,c.configure.freebsd.amd64,c.configure.x11" if="isFreeBSD"/>
1353-
1354- <target name="c.configure.hpux" depends="c.configure.x11" if="isHPUX">
1355- <echo message="HP-UX" />
1356- <property name="compiler.cfg.id" value="compiler.cfg.hpux" />
1357- <property name="linker.cfg.id.oswin" value="linker.cfg.hpux.newt.x11" />
1358- </target>
1359-
1360- <target name="c.configure.win32" depends="c.configure.win32.vc,c.configure.win32.mingw,c.configure.win64.mingw" if="isWindows" />
1361-
1362- <target name="c.configure.x11" if="isX11" />
1363-
1364- <target name="c.configure.macosx" if="isOSX">
1365- <property name="compiler.cfg.id" value="compiler.cfg.macosx" />
1366- <property name="linker.cfg.id.oswin" value="linker.cfg.macosx.newt" />
1367- </target>
1368-
1369- <target name="c.configure.2" depends="c.configure.win32,c.configure.linux,c.configure.android,c.configure.solaris32,c.configure.solaris.sparcv9,c.configure.solaris.amd64,c.configure.macosx,c.configure.freebsd,c.configure.hpux" />
1370-
1371- <target name="c.configure" depends="c.configure.1,c.configure.2" />
1372-
1373- <target name="rename.mingw.dll" if="isMingW">
1374- <move file="${src}" tofile="${dest}" />
1375- </target>
1376-
1377- <target name="rename.dylib" if="isOSX">
1378- <move file="${src}" tofile="${dest}" />
1379- </target>
1380-
1381- <macrodef name="c.build">
1382- <attribute name="c.compiler.src.files" />
1383- <attribute name="compiler.cfg.id" />
1384- <attribute name="linker.cfg.id" />
1385- <attribute name="output.lib.name" />
1386- <attribute name="c.compiler.use-jawt" default="false"/>
1387- <sequential>
1388- <echo message="Output lib name = @{output.lib.name}" />
1389-
1390- <!-- NOTE: the value of the debug and optimise attributes will not be overridden if already set externally -->
1391- <property name="c.compiler.debug" value="false" />
1392- <!-- Optimise flags one of { none, size, speed, minimal, full, aggressive, extreme, unsafe } -->
1393- <property name="c.compiler.optimise" value="none" />
1394-
1395- <condition property="c.compiler.use-debug"><istrue value="${c.compiler.debug}"/></condition>
1396-
1397- <patternset id="c.src.files.newt">
1398- <include name="${rootrel.src.c}/NewtCommon.c" />
1399- <include name="${rootrel.src.c}/WindowsWindow.c" if="isWindows"/>
1400- <include name="${rootrel.src.c}/*.m" if="isOSX"/>
1401- <include name="${rootrel.src.c}/AndroidWindow.c" if="isAndroid"/>
1402- <include name="${rootrel.src.c}/X11Window.c" if="isX11"/>
1403- <include name="${rootrel.src.c}/KDWindow.c" if="setup.addNativeKD"/>
1404- <include name="${rootrel.src.c}/IntelGDL.c" if="setup.addNativeIntelGDL"/>
1405- <include name="${rootrel.src.c}/BroadcomEGL.c" if="setup.addNativeBroadcomEGL"/>
1406- </patternset>
1407-
1408- <echo message="Compiling @{output.lib.name}" />
1409-
1410- <!-- have to wrap cc task with outofdate, because otherwise cc links a new library
1411- even when no files have been compiled -->
1412- <outofdate>
1413- <sourcefiles>
1414- <fileset dir="${project.root}"><patternset refid="@{c.compiler.src.files}"/></fileset>
1415- </sourcefiles>
1416- <targetfiles>
1417- <fileset dir="${obj.newt}" includes="lib@{output.lib.name}.so"/>
1418- <fileset dir="${obj.newt}" includes="@{output.lib.name}.dll"/>
1419- <fileset dir="${obj.newt}" includes="lib@{output.lib.name}.jnilib"/>
1420- </targetfiles>
1421- <sequential>
1422- <cc outtype="shared"
1423- objdir="${obj.newt}"
1424- outfile="${obj.newt}/@{output.lib.name}"
1425- optimize="${c.compiler.optimise}"
1426- debug="${c.compiler.debug}"
1427- multithreaded="true"
1428- exceptions="false"
1429- rtti="false">
1430-
1431- <fileset dir="${project.root}"><patternset refid="@{c.compiler.src.files}"/></fileset>
1432-
1433- <compiler extends="@{compiler.cfg.id}" >
1434- <sysincludepath path="${java.includes.dir}"/>
1435- <sysincludepath path="${java.includes.dir.platform}"/>
1436- <sysincludepath path="${stub.includes.gluegen.cc}"/>
1437- <includepath path="stub_includes/khr"/>
1438- <includepath path="stub_includes/egl"/>
1439- <!-- This is for finding Xrandr.h on Solaris. -->
1440- <includepath path="/usr/X11/include" />
1441- <!-- This is for the generated headers for handwritten C code -->
1442- <includepath path="${src.generated.c}" />
1443- <includepath path="${src.generated.c}/Android" if="isAndroid"/>
1444- <includepath path="${src.generated.c}/X11" if="isX11"/>
1445- <includepath path="${src.generated.c}/MacOSX" if="isOSX"/>
1446- <includepath path="${src.generated.c}/Windows" if="isWindows"/>
1447- <includepath path="${src.generated.c}/KD" if="setup.addNativeKD" />
1448- <includepath path="${src.generated.c}/IntelGDL" if="setup.addNativeIntelGDL" />
1449- <includepath path="stub_includes/embedded/IntelGDL" if="setup.addNativeIntelGDL" />
1450- <includepath path="${src.generated.c}/BroadcomEGL" if="setup.addNativeBroadcomEGL" />
1451-
1452- <!-- This must come last to not override real include paths -->
1453- <!-- includepath path="stub_includes/macosx" if="isOSX" / -->
1454- </compiler>
1455-
1456- <linker extends="@{linker.cfg.id}">
1457- <syslibset dir="${java.lib.platform}" libs="jawt" if="@{output.lib.name}.useLibJAWT"/>
1458- <syslibset dir="${java.lib.platform}/server" libs="jvm" if="@{output.lib.name}.useLibJVM"/>
1459- </linker>
1460- </cc>
1461-
1462- <!-- FIXME: this is a hack; the cpptask should have an option to change the
1463- suffix or at least understand the override from dylib to jnilib -->
1464- <antcall target="rename.dylib" inheritRefs="true">
1465- <param name="src" value="${obj.newt}/lib@{output.lib.name}.dylib" />
1466- <param name="dest" value="${obj.newt}/lib@{output.lib.name}.jnilib" />
1467- </antcall>
1468-
1469- <!-- FIXME: this is a hack; the cpptask should have an option to change the
1470- suffix or at least understand the override from dylib to jnilib -->
1471- <antcall target="rename.mingw.dll" inheritRefs="true">
1472- <param name="src" value="${obj.newt}/lib@{output.lib.name}.so" />
1473- <param name="dest" value="${obj.newt}/@{output.lib.name}.dll" />
1474- </antcall>
1475-
1476- <!-- this stripping may be called more than once on the same library dir,
1477- but that should cause no harm, and doing it here inside outofdate
1478- prevents the JARs from always being rebuilt even if no source code changes -->
1479- <antcall target="gluegen.cpptasks.striplibs" inheritRefs="true">
1480- <param name="libdir" value="${obj.newt}"/>
1481- </antcall>
1482-
1483- </sequential>
1484- </outofdate>
1485- </sequential>
1486- </macrodef>
1487-
1488- <target name="c.build.newt.prepare">
1489- <javah destdir="${src.generated.c}/KD" classpath="${javah.classpath}" class="jogamp.newt.driver.kd.KDWindow" />
1490-
1491- <javah destdir="${src.generated.c}/IntelGDL" classpath="${javah.classpath}" class="jogamp.newt.driver.intel.gdl.Display" />
1492- <javah destdir="${src.generated.c}/IntelGDL" classpath="${javah.classpath}" class="jogamp.newt.driver.intel.gdl.Screen" />
1493- <javah destdir="${src.generated.c}/IntelGDL" classpath="${javah.classpath}" class="jogamp.newt.driver.intel.gdl.Window" />
1494-
1495- <javah destdir="${src.generated.c}/BroadcomEGL" classpath="${javah.classpath}" class="jogamp.newt.driver.broadcom.egl.Window" />
1496-
1497- <javah destdir="${src.generated.c}/Windows" classpath="${javah.classpath}" class="jogamp.newt.driver.windows.WindowsWindow" />
1498- <javah destdir="${src.generated.c}/Windows" classpath="${javah.classpath}" class="jogamp.newt.driver.windows.WindowsScreen" />
1499- <javah destdir="${src.generated.c}/Windows" classpath="${javah.classpath}" class="jogamp.newt.driver.windows.WindowsDisplay" />
1500- <javah destdir="${src.generated.c}/MacOSX" classpath="${javah.classpath}" class="jogamp.newt.driver.macosx.MacWindow" />
1501- <javah destdir="${src.generated.c}/MacOSX" classpath="${javah.classpath}" class="jogamp.newt.driver.macosx.MacScreen" />
1502- <javah destdir="${src.generated.c}/MacOSX" classpath="${javah.classpath}" class="jogamp.newt.driver.macosx.MacDisplay" />
1503- <javah destdir="${src.generated.c}/X11" classpath="${javah.classpath}" class="jogamp.newt.driver.x11.X11Window" />
1504- <javah destdir="${src.generated.c}/X11" classpath="${javah.classpath}" class="jogamp.newt.driver.x11.X11Screen" />
1505- <javah destdir="${src.generated.c}/X11" classpath="${javah.classpath}" class="jogamp.newt.driver.x11.X11Display" />
1506- <javah destdir="${src.generated.c}/Android" classpath="${javah.classpath}:${android.jar}" class="jogamp.newt.driver.android.AndroidWindow" />
1507- </target>
1508-
1509- <target name="c.build.newt.windowlib" unless="setup.nonatives">
1510- <c.build c.compiler.src.files="c.src.files.newt"
1511- output.lib.name="newt"
1512- compiler.cfg.id="${compiler.cfg.id}"
1513- linker.cfg.id="${linker.cfg.id.oswin}"/>
1514- </target>
1515-
1516- <target name="c.manifest" if="isVC8Family">
1517- <!-- exec mt, the Microsoft Manifest Tool, to include DLL manifests in order to resolve the location of msvcr80.dll -->
1518- <msvc.manifest objdir="${obj.newt}" dllname="newt" />
1519- </target>
1520-
1521- <target name="c.build.newt.natives" depends="c.build.newt.windowlib" unless="setup.nonatives">
1522- </target>
1523-
1524- <target name="c.build.newt" depends="c.configure,c.build.newt.prepare,c.build.newt.natives">
1525- <antcall target="c.manifest" inheritRefs="true" />
1526- </target>
1527-
1528- <!-- ================================================================== -->
1529- <!--
1530- - Build the newt.jar files.
1531- -->
1532- <target name="build-jars" depends="gluegen.cpptasks.detect.os,build-jars-javase" />
1533-
1534- <target name="setup-manifestfile">
1535- <property name="manifestfile" value="newtversion"/>
1536- <copy file="${manifestfile}"
1537- tofile="${build.newt}/manifest.mf"
1538- overwrite="true">
1539- <filterset>
1540- <filter token="VERSION" value="${newt.version}"/>
1541- <filter token="SCM_BRANCH" value="${jogl.build.branch}"/>
1542- <filter token="SCM_COMMIT" value="${jogl.build.commit}"/>
1543- <filter token="BASEVERSION" value="${newt_base_version}"/>
1544- </filterset>
1545- </copy>
1546- </target>
1547-
1548- <target name="build-jars-awt" depends="setup-manifestfile" unless="setup.noAWT">
1549- <jar manifest="${build.newt}/manifest.mf" destfile="${newt.awt.jar}" filesonly="true">
1550- <fileset dir="${classes}"
1551- includes="${java.part.awt}"/>
1552- </jar>
1553- </target>
1554-
1555- <target name="build-jars-opengl" depends="setup-manifestfile" unless="setup.noOpenGL">
1556- <jar manifest="${build.newt}/manifest.mf" destfile="${newt.ogl.jar}" filesonly="true">
1557- <fileset dir="${classes}"
1558- includes="${java.part.opengl}"/>
1559- </jar>
1560- </target>
1561-
1562- <target name="build-jars-driver" depends="setup-manifestfile">
1563- <jar manifest="${build.newt}/manifest.mf" destfile="${newt.driver.x11.jar}" filesonly="true">
1564- <fileset dir="${classes}"
1565- includes="${java.part.driver.x11}"/>
1566- </jar>
1567- <jar manifest="${build.newt}/manifest.mf" destfile="${newt.driver.win.jar}" filesonly="true">
1568- <fileset dir="${classes}"
1569- includes="${java.part.driver.windows}"/>
1570- </jar>
1571- <jar manifest="${build.newt}/manifest.mf" destfile="${newt.driver.macosx.jar}" filesonly="true">
1572- <fileset dir="${classes}"
1573- includes="${java.part.driver.macosx}"/>
1574- </jar>
1575- <jar manifest="${build.newt}/manifest.mf" destfile="${newt.driver.android.jar}" filesonly="true">
1576- <fileset dir="${classes}"
1577- includes="${java.part.driver.android}"/>
1578- </jar>
1579- <jar manifest="${build.newt}/manifest.mf" destfile="${newt.driver.kd.jar}" filesonly="true">
1580- <fileset dir="${classes}"
1581- includes="${java.part.driver.kd}"/>
1582- </jar>
1583- <jar manifest="${build.newt}/manifest.mf" destfile="${newt.driver.broadcomegl.jar}" filesonly="true">
1584- <fileset dir="${classes}"
1585- includes="${java.part.driver.broadcomegl}"/>
1586- </jar>
1587- <jar manifest="${build.newt}/manifest.mf" destfile="${newt.driver.intelgdl.jar}" filesonly="true">
1588- <fileset dir="${classes}"
1589- includes="${java.part.driver.intelgdl}"/>
1590- </jar>
1591- </target>
1592-
1593- <target name="build-jars-javase" depends="setup-manifestfile,build-jars-opengl,build-jars-awt,build-jars-driver">
1594- <jar manifest="${build.newt}/manifest.mf" destfile="${newt.core.jar}" filesonly="true">
1595- <fileset dir="${classes}"
1596- includes="${java.part.core}"/>
1597- </jar>
1598- <jar manifest="${build.newt}/manifest.mf" destfile="${newt.event.jar}" filesonly="true">
1599- <fileset dir="${classes}">
1600- <include name="com/jogamp/newt/Display*" />
1601- <include name="com/jogamp/newt/Screen*" />
1602- <include name="com/jogamp/newt/Window*" />
1603- <include name="com/jogamp/newt/ScreenMode*" />
1604- <include name="com/jogamp/newt/event/**" />
1605- <include name="jogamp/newt/Debug*" />
1606- </fileset>
1607- </jar>
1608- <jar manifest="${build.newt}/manifest.mf" destfile="${build.newt}/newt-natives-${os.and.arch}.jar" filesonly="true">
1609- <fileset dir="${obj.newt}">
1610- <include name="*.${native.library.suffix}" />
1611- </fileset>
1612- </jar>
1613- </target>
1614-
1615- <!-- ================================================================== -->
1616- <!--
1617- - Build the Javadocs for the sources.
1618- - NOTE: these are not entirely correct as the javadocs targets depend
1619- - on the platform specific build targets. To circumvent any
1620- - errors, ensure that the source is built first.
1621- -->
1622- <target name="javadoc" depends="init">
1623- <!-- Build the general Javadoc -->
1624- <javadoc packagenames="${javadoc.packagenames}"
1625- excludepackagenames="${java.excludes.javadoc.packagenames}"
1626- sourcepath="${src.java};${src.generated.java}"
1627- destdir="${javadoc}" windowtitle="${javadoc.windowtitle}"
1628- overview="${javadoc.overview}"
1629- source="${target.sourcelevel}"
1630- linkoffline="${javadoc.link} 142-packages"
1631- bottom="${javadoc.bottom}" >
1632- <classpath refid="jogl_nativewindow_gluegen.classpath"/>
1633- </javadoc>
1634- </target>
1635-
1636- <target name="javadoc.spec" depends="init">
1637- <!-- Build the general Javadoc -->
1638- <javadoc packagenames="${javadoc.spec.packagenames}"
1639- excludepackagenames="${java.excludes.javadoc.packagenames}"
1640- sourcepath="${src.java};${src.generated.java}"
1641- destdir="${javadoc.spec}" windowtitle="${javadoc.windowtitle}"
1642- overview="${javadoc.overview}"
1643- source="${target.sourcelevel}"
1644- linkoffline="${javadoc.link} 142-packages"
1645- bottom="${javadoc.bottom}" >
1646- <classpath refid="jogl_nativewindow_gluegen.classpath"/>
1647- </javadoc>
1648- </target>
1649-
1650- <target name="javadoc.dev" depends="init">
1651- <!-- Build the internal developer Javadoc -->
1652- <javadoc packagenames="${javadoc.dev.packagenames}"
1653- excludepackagenames="${java.excludes.javadoc.packagenames}"
1654- sourcepath="${src.java};${src.generated.java}"
1655- destdir="${javadoc.dev}" windowtitle="${javadoc.windowtitle}"
1656- overview="${javadoc.overview}"
1657- source="${target.sourcelevel}"
1658- linkoffline="${javadoc.link} 142-packages"
1659- bottom="${javadoc.bottom}" >
1660- <classpath refid="jogl_nativewindow_gluegen.classpath"/>
1661- </javadoc>
1662- </target>
1663-
1664- <target name="all.doc" description="Build NEWT docs" depends="init,javadoc,javadoc.spec,javadoc.dev" />
1665-
1666- <!-- ================================================================== -->
1667- <!--
1668- - Clean up all that is built.
1669- -->
1670- <target name="clean" description="Remove all build products" depends="declare.common">
1671- <delete includeEmptyDirs="true" quiet="true">
1672- <fileset dir="${build.newt}" />
1673- <fileset dir="${javadoc}" />
1674- <fileset dir="${javadoc.spec}" />
1675- <fileset dir="${javadoc.dev}" />
1676- </delete>
1677- </target>
1678-
1679- <!-- ================================================================== -->
1680- <!--
1681- - Build everything.
1682- -->
1683- <target name="all" description="Build NEWT JAR file(s) and native libraries." depends="init,java.compile,c.build.newt,build-jars,generate.version.txt" />
1684-
1685- <target name="generate.version.txt" depends="init">
1686- <!-- Create a version.txt file indicating which version we just built -->
1687- <echo message="${newt.version}" file="${build.newt}/version.txt" />
1688- </target>
1689-
1690-</project>
1691
1692=== removed file '.pc/disable_android.diff/make/build-test.xml'
1693--- .pc/disable_android.diff/make/build-test.xml 2011-10-06 15:53:38 +0000
1694+++ .pc/disable_android.diff/make/build-test.xml 1970-01-01 00:00:00 +0000
1695@@ -1,495 +0,0 @@
1696-<?xml version="1.0" encoding="UTF-8"?>
1697-
1698-<project name="JOGLTest" basedir="." default="all">
1699-
1700- <description>JUNIT Tests JOGL</description>
1701-
1702- <import file="build-common.xml"/>
1703-
1704- <taskdef resource="net/sf/antcontrib/antlib.xml">
1705- <classpath> <pathelement location="${ant-contrib.jar}"/> </classpath>
1706- </taskdef>
1707-
1708- <!-- ================================================================== -->
1709- <!--
1710- - Declare all paths and user defined variables.
1711- -->
1712- <target name="declare.common" description="Declare properties" depends="common.init">
1713- <property name="rootrel.src.test" value="src/test" />
1714- <property name="src.test" value="${project.root}/${rootrel.src.test}" />
1715-
1716- <property name="classes" value="${build.test}/classes" />
1717- <property name="classes.path" location="${classes}"/> <!-- absolute path -->
1718-
1719- <property name="java.part.test" value="com/jogamp/** jogamp/**"/>
1720- <property name="java.dir.test" value="com/jogamp/opengl/test"/>
1721- <property name="java.dir.junit" value="${java.dir.test}/junit"/>
1722- <property name="java.dir.bugs" value="${java.dir.test}/bugs"/>
1723-
1724- <property name="test.archive.name" value="${archive.name}-test-results-${build.node.name}"/>
1725- <condition property="jvmarg.mainthrd" value="-XstartOnFirstThread"><isset property="isOSX"/></condition>
1726- <condition property="jvmarg.mainthrd" value="-Ddummy"><not><isset property="isOSX"/></not></condition>
1727- <condition property="jvmarg.headless" value="-XstartOnFirstThread -Djava.awt.headless=true"><isset property="isOSX"/></condition>
1728- <condition property="jvmarg.headless" value="-Djava.awt.headless=true"><not><isset property="isOSX"/></not></condition>
1729-
1730- <property name="batchtest.timeout" value="1800000"/> <!-- 30 min -->
1731- </target>
1732-
1733- <!-- ================================================================== -->
1734- <!--
1735- - Clean up all that is built.
1736- -->
1737- <target name="clean" description="Remove all build products" depends="declare.common">
1738- <delete includeEmptyDirs="true" quiet="true">
1739- <fileset dir="${build.test}" />
1740- <fileset dir="." includes="*.tga" />
1741- <fileset file="${jogl.test.jar}" />
1742- </delete>
1743- </target>
1744-
1745- <!-- ================================================================== -->
1746- <!--
1747- - Build/run tests/junit.
1748- -->
1749- <target name="test.compile.check" depends="declare.common">
1750- <!-- Create the required output directories. -->
1751- <mkdir dir="${obj.test}" />
1752- <mkdir dir="${classes}" />
1753-
1754- <!-- Clean the results -->
1755- <delete quiet="true">
1756- <fileset dir="${results.test}" includes="**"/>
1757- <fileset file="${build}/${test.archive.name}.7z"/>
1758- <fileset dir="." includes="*.tga" />
1759- </delete>
1760- <mkdir dir="${results.test}" />
1761-
1762- <property name="jogl.test.jar.path" location="${jogl.test.jar}"/> <!-- absolute path -->
1763- <echo message="jogl.test.jar ${jogl.test.jar.path}"/>
1764- <uptodate property="test.compile.skip">
1765- <srcfiles dir= "." includes="*.xml"/>
1766- <srcfiles dir= "${src.test}" includes="**"/>
1767- <srcfiles file="${gluegen.jar}" />
1768- <srcfiles dir="${src}/nativewindow" />
1769- <srcfiles dir="${src}/jogl" />
1770- <srcfiles dir="${src}/newt" />
1771- <mapper type="merge" to="${jogl.test.jar.path}"/>
1772- </uptodate>
1773- </target>
1774-
1775- <target name="test.compile" depends="test.compile.check" unless="test.compile.skip">
1776- <!-- Perform the junit pass Java compile -->
1777- <javac destdir="${classes}"
1778- source="${host.sourcelevel}"
1779- fork="yes"
1780- memoryMaximumSize="${javac.memorymax}"
1781- includeAntRuntime="false"
1782- debug="${javacdebug}" debuglevel="${javacdebuglevel}">
1783- <classpath refid="junit_jogl_newt_android.compile.classpath"/>
1784- <src path="${src.test}" />
1785- </javac>
1786- <!-- include any resource files that tests may require -->
1787- <copy todir="${classes}">
1788- <fileset dir="${src.test}">
1789- <exclude name="**/*.java"/>
1790- </fileset>
1791- </copy>
1792- <jar destfile="${jogl.test.jar}" filesonly="true">
1793- <!-- get all class files, but skip any resource files that external tools
1794- might have copied into the class directory (otherwise, it's possible
1795- to get the same resource file twice in the jar) -->
1796- <fileset dir="${classes}"
1797- includes="${java.part.test}"/>
1798- </jar>
1799- </target>
1800-
1801- <target name="test.manual.run" depends="test.compile">
1802- <for param="test.class.path.m" keepgoing="true">
1803- <!-- results in absolute path -->
1804- <fileset dir="${classes}">
1805- <include name="${java.dir.bugs}/**/*Test*"/>
1806- <exclude name="**/*$$*"/>
1807- </fileset>
1808- <sequential>
1809- <var name="test.class.path" unset="true"/>
1810- <property name="test.class.path" basedir="${classes}" relative="true" location="@{test.class.path.m}"/>
1811- <var name="test.class.fqn" unset="true"/>
1812- <pathconvert property="test.class.fqn">
1813- <fileset file="${classes}${file.separator}${test.class.path}"/>
1814- <chainedmapper>
1815- <globmapper from="${classes.path}${file.separator}*" to="*"/> <!-- rel. -->
1816- <packagemapper from="*.class" to="*"/> <!-- FQCN -->
1817- </chainedmapper>
1818- </pathconvert>
1819- <var name="test.class.result.file" value="${results.test}/TEST-${test.class.fqn}.log"/>
1820- <echo message="Testing ${test.class.fqn} -- ${test.class.result.file}"/>
1821- <apply dir="." executable="${java.home}/bin/java"
1822- parallel="false"
1823- timeout="${batchtest.timeout}"
1824- vmlauncher="false"
1825- relative="true"
1826- failonerror="false"
1827- output="${test.class.result.file}">
1828- <env key="${system.env.library.path}" path="${obj.all.paths}"/>
1829- <env key="CLASSPATH" value="${junit_jogl_awt.run.jars}"/>
1830- <arg value="-Djava.library.path=${obj.all.paths}"/>
1831- <!--
1832- <arg line="-Dnewt.debug.EDT"/>
1833- -->
1834- <srcfile/>
1835- <mappedresources>
1836- <fileset dir="${classes}" includes="${test.class.path}"/>
1837- <packagemapper from="*.class" to="*"/>
1838- </mappedresources>
1839- </apply>
1840- </sequential>
1841- </for>
1842- <antcall target="test-zip-archive" inheritRefs="true" inheritAll="true"/>
1843- </target>
1844-
1845- <target name="junit.run.noui" depends="test.compile">
1846- <!-- Test*NOUI* -->
1847- <junit forkmode="perTest" showoutput="true" fork="true" haltonerror="off" timeout="${batchtest.timeout}">
1848- <env key="${system.env.library.path}" path="${obj.all.paths}"/>
1849- <jvmarg value="-Djava.library.path=${obj.all.paths}"/>
1850-
1851- <!--
1852- <jvmarg value="-Djogl.debug=all"/>
1853- <jvmarg value="-Dgluegen.debug.NativeLibrary=true"/>
1854- <jvmarg value="-Dgluegen.debug.ProcAddressHelper=true"/>
1855- <jvmarg value="-Djogl.debug.GLSLState"/>
1856- <jvmarg value="-Dnativewindow.debug=all"/>
1857- <jvmarg value="-verbose:jni"/>
1858- <jvmarg value="-client"/>
1859- <jvmarg value="-d32"/>
1860- -->
1861-
1862- <formatter usefile="false" type="plain"/>
1863- <formatter usefile="true" type="xml"/>
1864- <classpath refid="junit_jogl_awt.run.classpath"/>
1865-
1866- <batchtest todir="${results.test}">
1867- <fileset dir="${classes}">
1868- <include name="${java.dir.junit}/**/Test*NOUI*"/>
1869- <exclude name="**/*$$*"/>
1870- </fileset>
1871- <formatter usefile="false" type="brief"/>
1872- <formatter usefile="true" type="xml"/>
1873- </batchtest>
1874- </junit>
1875- </target>
1876-
1877- <target name="junit.run.newt.headless" depends="test.compile">
1878- <!-- Test*NEWT*
1879-
1880- Emulation of junit task,
1881- due to the fact that we have to place invoke our MainThread class first (-> MacOSX).
1882-
1883- Utilizing Ant-1.8.0 and ant-contrib-1.0b3 (loops, mutable properties).
1884- -->
1885- <for param="test.class.path.m" keepgoing="true">
1886- <!-- results in absolute path -->
1887- <fileset dir="${classes}">
1888- <include name="${java.dir.junit}/**/Test*NEWT*"/>
1889- <exclude name="**/*$$*"/>
1890- </fileset>
1891- <sequential>
1892- <var name="test.class.path" unset="true"/>
1893- <property name="test.class.path" basedir="${classes}" relative="true" location="@{test.class.path.m}"/>
1894- <var name="test.class.fqn" unset="true"/>
1895- <pathconvert property="test.class.fqn">
1896- <fileset file="${classes}${file.separator}${test.class.path}"/>
1897- <chainedmapper>
1898- <globmapper from="${classes.path}${file.separator}*" to="*"/> <!-- rel. -->
1899- <packagemapper from="*.class" to="*"/> <!-- FQCN -->
1900- </chainedmapper>
1901- </pathconvert>
1902- <var name="test.class.result.file" value="${results.test}/TEST-${test.class.fqn}.xml"/>
1903- <echo message="Testing ${test.class.fqn} -- ${test.class.result.file}"/>
1904- <apply dir="." executable="${java.home}/bin/java"
1905- parallel="false"
1906- timeout="${batchtest.timeout}"
1907- vmlauncher="false"
1908- relative="true"
1909- failonerror="false">
1910- <env key="${system.env.library.path}" path="${obj.all.paths}"/>
1911- <env key="CLASSPATH" value="${junit_jogl_noawt.run.jars}"/>
1912- <arg value="-Djava.library.path=${obj.all.paths}"/>
1913- <arg line="${jvmarg.headless}"/>
1914- <!--
1915- <arg line="-Dnewt.debug.EDT"/>
1916- -->
1917- <arg line="com.jogamp.newt.util.MainThread"/>
1918- <arg line="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner"/>
1919- <srcfile/>
1920- <arg line="filtertrace=true"/>
1921- <arg line="haltOnError=false"/>
1922- <arg line="haltOnFailure=false"/>
1923- <arg line="showoutput=true"/>
1924- <arg line="outputtoformatters=true"/>
1925- <arg line="logfailedtests=true"/>
1926- <arg line="logtestlistenerevents=true"/>
1927- <arg line="formatter=org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter"/>
1928- <arg line="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.class.result.file}"/>
1929- <mappedresources>
1930- <fileset dir="${classes}" includes="${test.class.path}"/>
1931- <packagemapper from="*.class" to="*"/>
1932- </mappedresources>
1933- </apply>
1934- </sequential>
1935- </for>
1936- </target>
1937-
1938- <!-- junit.run.newt is covered by junit.run.newt.headless, disable it for now, but may be checked manually.
1939- This test target would also overwrite the test result XML files, we would also need a solution here for hudson,
1940- if run in parallel.
1941- NEWT is currently not supported on OSX
1942- -->
1943- <target name="junit.run.newt" depends="test.compile">
1944- <!-- Test*NEWT* -->
1945- <junit forkmode="perTest" showoutput="true" fork="true" haltonerror="off" timeout="${batchtest.timeout}">
1946- <env key="${system.env.library.path}" path="${obj.all.paths}"/>
1947- <jvmarg value="-Djava.library.path=${obj.all.paths}"/>
1948-
1949- <!--
1950- <jvmarg value="-Dnewt.debug.EDT"/>
1951- <jvmarg value="-Djogl.debug=all"/>
1952- <jvmarg value="-Dgluegen.debug.NativeLibrary=true"/>
1953- <jvmarg value="-Dgluegen.debug.ProcAddressHelper=true"/>
1954- <jvmarg value="-Djogl.debug.GLSLState"/>
1955- <jvmarg value="-Dnativewindow.debug=all"/>
1956- <jvmarg value="-Dnewt.debug=all"/>
1957- <jvmarg value="-verbose:jni"/>
1958- <jvmarg value="-client"/>
1959- <jvmarg value="-d32"/>
1960- -->
1961-
1962- <formatter usefile="false" type="plain"/>
1963- <formatter usefile="true" type="xml"/>
1964- <classpath refid="junit_jogl_noawt.run.classpath"/>
1965-
1966- <batchtest todir="${results.test}">
1967- <fileset dir="${classes}">
1968- <include name="${java.dir.junit}/**/Test*NEWT*"/>
1969- <exclude name="**/*$$*"/>
1970- </fileset>
1971- <formatter usefile="false" type="brief"/>
1972- <formatter usefile="true" type="xml"/>
1973- </batchtest>
1974- </junit>
1975- </target>
1976-
1977- <target name="junit.run.awt" depends="test.compile">
1978- <!-- Test*AWT* -->
1979- <junit forkmode="perTest" showoutput="true" fork="true" haltonerror="off" timeout="${batchtest.timeout}">
1980- <env key="${system.env.library.path}" path="${obj.all.paths}"/>
1981- <jvmarg value="-Djava.library.path=${obj.all.paths}"/>
1982-
1983- <!--
1984- <jvmarg value="-Djogl.debug=all"/>
1985- <jvmarg value="-Dgluegen.debug.NativeLibrary=true"/>
1986- <jvmarg value="-Dgluegen.debug.ProcAddressHelper=true"/>
1987- <jvmarg value="-Djogl.debug.GLSLState"/>
1988- <jvmarg value="-Dnativewindow.debug=all"/>
1989- <jvmarg value="-verbose:jni"/>
1990- <jvmarg value="-client"/>
1991- <jvmarg value="-d32"/>
1992- -->
1993-
1994- <formatter usefile="false" type="plain"/>
1995- <formatter usefile="true" type="xml"/>
1996- <classpath refid="junit_jogl_awt.run.classpath"/>
1997-
1998- <batchtest todir="${results.test}">
1999- <fileset dir="${classes}">
2000- <include name="${java.dir.junit}/**/Test*AWT*"/>
2001- <exclude name="**/*$$*"/>
2002- <exclude name="**/*SWT*"/>
2003- <exclude name="**/newt/**"/>
2004- </fileset>
2005- <formatter usefile="false" type="brief"/>
2006- <formatter usefile="true" type="xml"/>
2007- </batchtest>
2008- </junit>
2009- </target>
2010-
2011- <target name="junit.run.awt.singletest" depends="test.compile">
2012- <!-- Test*AWT* -->
2013- <junit forkmode="perTest" showoutput="true" fork="true" haltonerror="off" timeout="${batchtest.timeout}">
2014- <env key="${system.env.library.path}" path="${obj.all.paths}"/>
2015- <jvmarg value="-Djava.library.path=${obj.all.paths}"/>
2016-
2017- <!--
2018- <jvmarg value="-Djogl.debug=all"/>
2019- <jvmarg value="-Dgluegen.debug.NativeLibrary=true"/>
2020- <jvmarg value="-Dgluegen.debug.ProcAddressHelper=true"/>
2021- <jvmarg value="-Djogl.debug.GLSLState"/>
2022- <jvmarg value="-Dnativewindow.debug=all"/>
2023- <jvmarg value="-verbose:jni"/>
2024- <jvmarg value="-client"/>
2025- <jvmarg value="-d32"/>
2026- -->
2027-
2028- <formatter usefile="false" type="plain"/>
2029- <formatter usefile="true" type="xml"/>
2030- <classpath refid="junit_jogl_awt.run.classpath"/>
2031-
2032- <test name="${testclass}"/>
2033- </junit>
2034- </target>
2035-
2036- <target name="junit.run.swt.headless" depends="test.compile" description="Runs all pure SWT tests.">
2037- <!-- Test*SWT*
2038-
2039- Emulation of junit task,
2040- due to the fact that we have to place invoke our MainThread class first (-> MacOSX).
2041-
2042- Utilizing Ant-1.8.0 and ant-contrib-1.0b3 (loops, mutable properties).
2043- -->
2044- <for param="test.class.path.m" keepgoing="true">
2045- <!-- results in absolute path -->
2046- <fileset dir="${classes}">
2047- <include name="${java.dir.junit}/**/Test*SWT*"/>
2048- <exclude name="**/*$$*"/>
2049- <exclude name="**/*AWT*"/>
2050- <exclude name="**/newt/**"/>
2051- </fileset>
2052- <sequential>
2053- <var name="test.class.path" unset="true"/>
2054- <property name="test.class.path" basedir="${classes}" relative="true" location="@{test.class.path.m}"/>
2055- <var name="test.class.fqn" unset="true"/>
2056- <pathconvert property="test.class.fqn">
2057- <fileset file="${classes}${file.separator}${test.class.path}"/>
2058- <chainedmapper>
2059- <globmapper from="${classes.path}${file.separator}*" to="*"/> <!-- rel. -->
2060- <packagemapper from="*.class" to="*"/> <!-- FQCN -->
2061- </chainedmapper>
2062- </pathconvert>
2063- <var name="test.class.result.file" value="${results.test}/TEST-${test.class.fqn}.xml"/>
2064- <echo message="Testing ${test.class.fqn} -- ${test.class.result.file}"/>
2065- <apply dir="." executable="${java.home}/bin/java"
2066- parallel="false"
2067- timeout="${batchtest.timeout}"
2068- vmlauncher="false"
2069- relative="true"
2070- failonerror="false">
2071- <env key="${system.env.library.path}" path="${obj.all.paths}"/>
2072- <env key="CLASSPATH" value="${junit_jogl_swt.run.jars}"/>
2073- <arg value="-Djava.library.path=${obj.all.paths}"/>
2074- <arg line="${jvmarg.headless}"/>
2075- <!--
2076- <arg line="-Dnewt.debug.EDT"/>
2077- -->
2078- <arg line="com.jogamp.newt.util.MainThread"/>
2079- <arg line="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner"/>
2080- <srcfile/>
2081- <arg line="filtertrace=true"/>
2082- <arg line="haltOnError=false"/>
2083- <arg line="haltOnFailure=false"/>
2084- <arg line="showoutput=true"/>
2085- <arg line="outputtoformatters=true"/>
2086- <arg line="logfailedtests=true"/>
2087- <arg line="logtestlistenerevents=true"/>
2088- <arg line="formatter=org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter"/>
2089- <arg line="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.class.result.file}"/>
2090- <mappedresources>
2091- <fileset dir="${classes}" includes="${test.class.path}"/>
2092- <packagemapper from="*.class" to="*"/>
2093- </mappedresources>
2094- </apply>
2095- </sequential>
2096- </for>
2097- </target>
2098-
2099- <target name="junit.run.swt.awt" depends="test.compile" description="Runs all SWT_AWT tests.">
2100- <!-- Test*SWT* -->
2101- <junit forkmode="perTest" showoutput="true" fork="true" haltonerror="off" timeout="${batchtest.timeout}">
2102- <env key="${system.env.library.path}" path="${obj.all.paths}"/>
2103- <jvmarg value="-Djava.library.path=${obj.all.paths}"/>
2104- <jvmarg value="${jvmarg.mainthrd}"/>
2105-
2106- <!--
2107- <jvmarg value="-Djogl.debug=all"/>
2108- <jvmarg value="-Dgluegen.debug.NativeLibrary=true"/>
2109- <jvmarg value="-Dgluegen.debug.ProcAddressHelper=true"/>
2110- <jvmarg value="-Djogl.debug.GLSLState"/>
2111- <jvmarg value="-Dnativewindow.debug=all"/>
2112- <jvmarg value="-verbose:jni"/>
2113- <jvmarg value="-client"/>
2114- <jvmarg value="-d32"/>
2115- -->
2116-
2117- <formatter usefile="false" type="plain"/>
2118- <formatter usefile="true" type="xml"/>
2119- <classpath refid="junit_jogl_swt.run.classpath"/>
2120-
2121- <batchtest todir="${results.test}">
2122- <fileset dir="${classes}">
2123- <include name="${java.dir.junit}/**/Test*SWT*AWT*"/>
2124- <exclude name="**/*$$*"/>
2125- <exclude name="**/newt/**"/>
2126- </fileset>
2127- <formatter usefile="false" type="brief"/>
2128- <formatter usefile="true" type="xml"/>
2129- </batchtest>
2130- </junit>
2131- </target>
2132-
2133- <!-- NEWT is currently not supported on OSX -->
2134- <target name="junit.run.newt.awt" depends="test.compile">
2135- <!-- Test*AWT* -->
2136- <junit forkmode="perTest" showoutput="true" fork="true" haltonerror="off" timeout="${batchtest.timeout}">
2137- <env key="${system.env.library.path}" path="${obj.all.paths}"/>
2138- <jvmarg value="-Djava.library.path=${obj.all.paths}"/>
2139-
2140- <!--
2141- <jvmarg value="-Dnewt.debug.EDT"/>
2142- <jvmarg value="-Djogl.debug=all"/>
2143- <jvmarg value="-Dgluegen.debug.NativeLibrary=true"/>
2144- <jvmarg value="-Dgluegen.debug.ProcAddressHelper=true"/>
2145- <jvmarg value="-Djogl.debug.GLSLState"/>
2146- <jvmarg value="-Dnativewindow.debug=all"/>
2147- <jvmarg value="-Dnewt.debug=all"/>
2148- <jvmarg value="-verbose:jni"/>
2149- <jvmarg value="-client"/>
2150- <jvmarg value="-d32"/>
2151- -->
2152-
2153- <formatter usefile="false" type="plain"/>
2154- <formatter usefile="true" type="xml"/>
2155- <classpath refid="junit_jogl_awt.run.classpath"/>
2156-
2157- <batchtest todir="${results.test}">
2158- <fileset dir="${classes}">
2159- <include name="${java.dir.junit}/**/newt/**/Test*AWT*"/>
2160- <exclude name="**/*$$*"/>
2161- </fileset>
2162- <formatter usefile="false" type="brief"/>
2163- <formatter usefile="true" type="xml"/>
2164- </batchtest>
2165- </junit>
2166- </target>
2167-
2168- <target name="test.auto.run" depends="junit.run"/>
2169- <target name="junit.run" depends="junit.run.noui,junit.run.newt.headless,junit.run.awt,junit.run.newt.awt,junit.run.swt.headless,junit.run.swt.awt">
2170- <antcall target="test-zip-archive" inheritRefs="true" inheritAll="true"/>
2171- </target>
2172-
2173- <!-- updates / create the test results zip file -->
2174- <target name="test-zip-archive" depends="declare.common">
2175- <move todir="${results.test}">
2176- <fileset dir="." includes="*.tga" />
2177- </move>
2178- <mkdir dir="${results.test}" />
2179- <archive.7z destfile="${build}/${test.archive.name}.7z"
2180- basedir="${results.test}"
2181- includes="**" />
2182- </target>
2183-
2184- <!-- ================================================================== -->
2185- <!--
2186- - Build everything.
2187- -->
2188- <target name="all" description="Build JOGL JUNIT tests" depends="test.compile" />
2189-
2190-</project>
2191
2192=== removed directory '.pc/disable_android_2.diff'
2193=== removed directory '.pc/disable_android_2.diff/make'
2194=== removed file '.pc/disable_android_2.diff/make/build-common.xml'
2195--- .pc/disable_android_2.diff/make/build-common.xml 2011-10-09 19:26:30 +0000
2196+++ .pc/disable_android_2.diff/make/build-common.xml 1970-01-01 00:00:00 +0000
2197@@ -1,486 +0,0 @@
2198-<?xml version="1.0" encoding="UTF-8"?>
2199-
2200-<project name="JOGLCommonStuff" basedir="." default="common.init">
2201-
2202- <description>Common JOGL Stuff</description>
2203-
2204- <fail message="Please build using Ant 1.8.0 or higher.">
2205- <condition>
2206- <not>
2207- <antversion atleast="1.8.0"/>
2208- </not>
2209- </condition>
2210- </fail>
2211-
2212- <!-- Pull in GlueGen cpptasks build file -->
2213- <property name="gluegen.root" value="/usr/share/gluegen2/" />
2214- <import file="${gluegen.root}/make/gluegen-cpptasks.xml" />
2215- <import file="${gluegen.root}/make/jogamp-archivetasks.xml" />
2216- <import file="${gluegen.root}/make/jogamp-androidtasks.xml" />
2217- <import file="${gluegen.root}/make/jogamp-env.xml" />
2218-
2219- <property name="ant-contrib.jar" value="/usr/share/java/ant-contrib.jar" />
2220-
2221- <condition property="rootrel.build" value="build">
2222- <not>
2223- <isset property="rootrel.build"/>
2224- </not>
2225- </condition>
2226-
2227- <import file="versions.xml" />
2228-
2229- <!-- ================================================================== -->
2230- <!--
2231- - Base initialization of properties and detection of operating system.
2232- -->
2233- <target name="set.debug">
2234- <property name="c.compiler.debug" value="true" />
2235- <property name="javacdebug" value="true" />
2236- <property name="javacdebuglevel" value="source,lines,vars" />
2237- </target>
2238- <target name="common.init.debug" depends="set.debug, common.init"/>
2239-
2240- <target name="common.init" depends="jogamp.env.init, gluegen.cpptasks.detect.os" unless="common.init.done">
2241- <property name="common.init.done" value="true" />
2242-
2243- <!-- Set the project root directory to be up one directory. -->
2244- <property name="project.root" value=".." />
2245- <property name="build" value="${project.root}/${rootrel.build}" />
2246- <property name="tempdir" value="${project.root}/build-temp" />
2247- <property name="src" value="${project.root}/src" />
2248- <property name="lib" value="${build}/lib" />
2249- <property name="jar" value="${build}/jar" />
2250-
2251- <property name="all.srcj.path" value="${src}/nativewindow/classes;${src}/jogl/classes;${src}/newt/classes" />
2252- <!-- No generated classes for Newt at the present time -->
2253- <property name="all.genj.path" value="${build}/nativewindow/gensrc/classes;${build}/jogl/gensrc/classes" />
2254-
2255- <!-- Set the configuration and build files to this directory. -->
2256- <property name="make" value="." />
2257- <property name="config" value="${make}/config" />
2258- <property name="stub.includes" value="stub_includes" /> <!-- NOTE: this MUST be relative for FileSet -->
2259-
2260- <property name="stub.includes.gluegen.gg" value="${gluegen.root}/make/stub_includes/gluegen" />
2261- <property name="stub.includes.gluegen.cc" value="${gluegen.root}/make/stub_includes/platform" />
2262-
2263- <tstamp>
2264- <format property="version.timestamp" pattern="yyyyMMdd"/>
2265- </tstamp>
2266-
2267- <property name="jogl.build.number" value="manual"/>
2268- <property name="jogl.build.id" value="${version.timestamp}"/>
2269- <mkdir dir="${tempdir}" />
2270- <property name="jogl.build.branch" value="manual"/> <!-- fallback -->
2271- <property name="jogl.build.commit" value="manual"/> <!-- fallback -->
2272-
2273- <property name="nativewindow.version" value="${nativewindow_base_version}-b${jogl.build.number}-${version.timestamp}" />
2274- <property name="jogl.version" value="${jogl_base_version}-b${jogl.build.number}-${version.timestamp}" />
2275- <property name="newt.version" value="${newt_base_version}-b${jogl.build.number}-${version.timestamp}" />
2276- <property name="jogl.version.plus" value="${jogl_base_version}-${jogl.build.branch}-b${jogl.build.number}-${jogl.build.commit}-${version.timestamp}" />
2277-
2278- <property name="archive.name" value="jogl-${jogl.version}-${os.and.arch}" />
2279- <property name="archive" value="${build}/${archive.name}" />
2280-
2281- <condition property="setup.noNativeAWT">
2282- <or>
2283- <isset property="setup.noAWT"/>
2284- <isset property="isAndroid"/>
2285- </or>
2286- </condition>
2287-
2288- <condition property="setup.noNativeDesktop">
2289- <or>
2290- <isset property="isAndroid"/>
2291- </or>
2292- </condition>
2293-
2294- <echo message="setup.noAWT: ${setup.noAWT}" />
2295- <echo message="setup.noNativeAWT: ${setup.noNativeAWT}" />
2296- <echo message="setup.noNativeDesktop: ${setup.noNativeDesktop}" />
2297-
2298- <!-- Load the user specified properties file that defines various host
2299- - specific paths. The user will be notified if this is does not
2300- - exist. -->
2301- <property name="user.properties.file" value="${user.home}/jogl.properties" />
2302- <property file="${user.properties.file}" />
2303- <echo message="Loaded ${user.properties.file}." />
2304- <property file="${user.home}/gluegen.properties" />
2305- <echo message="Loaded ${user.home}/gluegen.properties." />
2306- <echo message="antlr.jar=${antlr.jar}" />
2307- <echo message="junit.jar=${junit.jar}" />
2308- <echo message="android.jar=${android.jar}" />
2309-
2310- <!-- Set swt.jar to the correct file for this platform. We point to the debug JARs to allow
2311- stepping into SWT calls using the accompanying source code zip archives. -->
2312- <condition property="swt.jar" value="${project.root}/make/lib/swt/win32-win32-x86_64/swt-debug.jar">
2313- <istrue value="${isWindowsAMD64}" />
2314- </condition>
2315- <condition property="swt.jar" value="${project.root}/make/lib/swt/win32-win32-x86/swt-debug.jar">
2316- <istrue value="${isWindowsX86}" />
2317- </condition>
2318- <condition property="swt.jar" value="/usr/share/java/swt.jar">
2319- <istrue value="${isLinux}" />
2320- </condition>
2321- <condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-linux-x86/swt-debug.jar">
2322- <istrue value="${isAndroid}" /> <!-- FIXME JAU .. hack -->
2323- </condition>
2324- <condition property="swt.jar" value="${project.root}/make/lib/swt/cocoa-macosx-x86_64/swt-debug.jar">
2325- <and>
2326- <istrue value="${isOSX}" />
2327- <or>
2328- <os arch="AMD64" />
2329- <os arch="x86_64" />
2330- </or>
2331- </and>
2332- </condition>
2333- <condition property="swt.jar" value="${project.root}/make/lib/swt/cocoa-macosx/swt-debug.jar">
2334- <and>
2335- <istrue value="${isOSX}" />
2336- <or>
2337- <os arch="i386" />
2338- <os arch="x86" />
2339- </or>
2340- </and>
2341- </condition>
2342- <condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-solaris-x86/swt-debug.jar">
2343- <istrue value="${isSolarisX86}" />
2344- </condition>
2345- <condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-solaris-x86/swt-debug.jar">
2346- <istrue value="${isSolarisAMD64}" />
2347- </condition>
2348- <condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-solaris-sparc/swt-debug.jar">
2349- <istrue value="${isSolarisSparc}" />
2350- </condition>
2351- <condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-solaris-sparc/swt-debug.jar">
2352- <istrue value="${isSolarisSparcv9}" />
2353- </condition>
2354- <echo message="swt.jar=${swt.jar}" />
2355-
2356- <property name="target.sourcelevel" value="1.5" />
2357- <property name="host.sourcelevel" value="1.5" />
2358-
2359- <!-- property name="javadoc.link" value="http://java.sun.com/j2se/1.4.2/docs/api/" /-->
2360- <property name="javadoc.link" value="http://download.oracle.com/javase/1.5.0/docs/api/" />
2361-
2362- <!-- NOTE: the value of the debug and optimise attributes will not be overridden if already set externally -->
2363- <property name="javacdebug" value="true" />
2364- <property name="javacdebuglevel" value="source,lines" />
2365- <!--property name="javacdebuglevel" value="source,lines,vars" /-->
2366- <!-- property name="javac.memorymax" value="128m" /--> <!-- I ran out of memory with these .. linux x86_64 6u14 -->
2367- <property name="javac.memorymax" value="512m" />
2368-
2369- <!-- Names of directories relative to the project root.
2370- Some of these are used in FileMappers later for dependence information
2371- and need exact string matching, which is why they use file.separator
2372- instead of "/". -->
2373-
2374- <!-- NOTE that these require a checked-out GlueGen, etc workspace as a -->
2375- <!-- sibling of the JOGL workspace. -->
2376- <property name="gluegen.make" value="${gluegen.root}/make" />
2377- <property name="gluegen.build.xml" value="${gluegen.make}/build.xml" />
2378- <property name="build.gluegen" value="${gluegen.root}/${rootrel.build}" />
2379- <property name="obj.gluegen" value="${build.gluegen}/obj"/>
2380- <property name="gluegen.jar" value="/usr/share/java/gluegen2.jar" />
2381- <property name="ant.jar" value="${ant.home}/lib/ant.jar" />
2382- <property name="ant-junit.jar" value="${ant.home}/lib/ant-junit.jar" />
2383-
2384- <property name="nativewindow.make" value="." />
2385- <property name="nativewindow.build.xml" value="${nativewindow.make}/build-nativewindow.xml" />
2386- <property name="build.nativewindow" value="${build}/nativewindow" />
2387- <property name="obj.nativewindow" value="${build.nativewindow}/obj"/>
2388-
2389- <property name="jogl.make" value="." />
2390- <property name="jogl.build.xml" value="${jogl.make}/build-jogl.xml" />
2391- <property name="build.jogl" value="${build}/jogl" />
2392- <property name="obj.jogl" value="${build.jogl}/obj"/>
2393-
2394- <property name="newt.make" value="." />
2395- <property name="newt.build.xml" value="${newt.make}/build-newt.xml" />
2396- <property name="build.newt" value="${build}/newt" />
2397- <property name="obj.newt" value="${build.newt}/obj"/>
2398-
2399- <property name="results.test" value="${build}/test/results" />
2400- <property name="build.test" value="${build}/test/build" />
2401- <property name="obj.test" value="${build.test}/obj"/>
2402-
2403- <condition property="obj.custom" value="${custom.libdir}${path.separator}" else="">
2404- <isset property="custom.libdir"/>
2405- </condition>
2406-
2407- <property name="obj.all.paths" value="${obj.custom}${obj.gluegen}${path.separator}${obj.nativewindow}${path.separator}${obj.jogl}${path.separator}${obj.newt}${path.separator}${obj.test}" />
2408-
2409- <path id="gluegen.classpath">
2410- <pathelement location="${gluegen.jar}" />
2411- <pathelement location="${antlr.jar}" />
2412- </path>
2413-
2414- <property name="gluegen-gl.jar" value="${build.jogl}/gluegen-gl.jar" />
2415-
2416- <path id="gluegen-gl.classpath">
2417- <pathelement location="${gluegen.jar}" />
2418- <pathelement location="${gluegen-gl.jar}" />
2419- </path>
2420-
2421- <!-- Atomic JavaSE JARS -->
2422-
2423- <property name="nativewindow.core.jar" value="${build.nativewindow}/nativewindow.core.jar" />
2424- <property name="nativewindow.awt.jar" value="${build.nativewindow}/nativewindow.awt.jar" />
2425- <property name="nativewindow.os.x11.jar" value="${build.nativewindow}/nativewindow.os.x11.jar" />
2426- <property name="nativewindow.os.win.jar" value="${build.nativewindow}/nativewindow.os.win.jar" />
2427- <property name="nativewindow.os.macosx.jar" value="${build.nativewindow}/nativewindow.os.macosx.jar" />
2428-
2429- <path id="nativewindow_all_atoms.classpath">
2430- <pathelement location="${nativewindow.core.jar}" />
2431- <pathelement location="${nativewindow.awt.jar}" />
2432- <pathelement location="${nativewindow.os.x11.jar}" />
2433- <pathelement location="${nativewindow.os.win.jar}" />
2434- <pathelement location="${nativewindow.os.macosx.jar}" />
2435- </path>
2436- <path id="nativewindow_all-noawt_atoms.classpath">
2437- <pathelement location="${nativewindow.core.jar}" />
2438- <pathelement location="${nativewindow.os.x11.jar}" />
2439- <pathelement location="${nativewindow.os.win.jar}" />
2440- <pathelement location="${nativewindow.os.macosx.jar}" />
2441- </path>
2442- <path id="nativewindow_core_atoms.classpath">
2443- <pathelement location="${nativewindow.core.jar}" />
2444- </path>
2445-
2446- <property name="jogl.core.jar" value="${build.jogl}/jogl.core.jar" />
2447- <property name="jogl.sdk.jar" value="${build.jogl}/jogl.sdk.jar" />
2448- <property name="jogl.glmobile.jar" value="${build.jogl}/jogl.glmobile.jar" />
2449- <property name="jogl.glmobile.dbg.jar" value="${build.jogl}/jogl.glmobile.dbg.jar" />
2450- <property name="jogl.util.jar" value="${build.jogl}/jogl.util.jar" />
2451- <property name="jogl.glutess.jar" value="${build.jogl}/jogl.glu.tess.jar" />
2452- <property name="jogl.glumipmap.jar" value="${build.jogl}/jogl.glu.mipmap.jar" />
2453- <property name="jogl.util.fixedfuncemu.jar" value="${build.jogl}/jogl.util.fixedfuncemu.jar" />
2454- <property name="jogl.awt.jar" value="${build.jogl}/jogl.awt.jar" />
2455- <property name="jogl.util.awt.jar" value="${build.jogl}/jogl.util.awt.jar" />
2456- <property name="jogl.os.x11.jar" value="${build.jogl}/jogl.os.x11.jar" />
2457- <property name="jogl.os.win.jar" value="${build.jogl}/jogl.os.win.jar" />
2458- <property name="jogl.os.osx.jar" value="${build.jogl}/jogl.os.osx.jar" />
2459- <property name="jogl.gldesktop.jar" value="${build.jogl}/jogl.gldesktop.jar" />
2460- <property name="jogl.gldesktop.dbg.jar" value="${build.jogl}/jogl.gldesktop.dbg.jar" />
2461- <property name="jogl.glugldesktop.jar" value="${build.jogl}/jogl.glu.gldesktop.jar" />
2462- <property name="jogl.util.gldesktop.jar" value="${build.jogl}/jogl.util.gldesktop.jar" />
2463- <property name="jogl.omx.jar" value="${build.jogl}/jogl.omx.jar" />
2464- <property name="jogl.cg.jar" value="${build.jogl}/jogl.cg.jar" />
2465-
2466- <path id="jogl_all_atoms.classpath">
2467- <pathelement location="${jogl.core.jar}" />
2468- <pathelement location="${jogl.sdk.jar}" />
2469- <pathelement location="${jogl.glmobile.jar}" />
2470- <pathelement location="${jogl.glmobile.dbg.jar}" />
2471- <pathelement location="${jogl.util.jar}" />
2472- <pathelement location="${jogl.glutess.jar}" />
2473- <pathelement location="${jogl.glumipmap.jar}" />
2474- <pathelement location="${jogl.util.fixedfuncemu.jar}" />
2475- <pathelement location="${jogl.awt.jar}" />
2476- <pathelement location="${jogl.util.awt.jar}" />
2477- <pathelement location="${jogl.os.x11.jar}" />
2478- <pathelement location="${jogl.os.win.jar}" />
2479- <pathelement location="${jogl.os.osx.jar}" />
2480- <pathelement location="${jogl.gldesktop.jar}" />
2481- <pathelement location="${jogl.gldesktop.dbg.jar}" />
2482- <pathelement location="${jogl.glugldesktop.jar}" />
2483- <pathelement location="${jogl.util.gldesktop.jar}" />
2484- <pathelement location="${jogl.omx.jar}" />
2485- </path>
2486- <path id="jogl_all-noawt_atoms.classpath">
2487- <pathelement location="${jogl.core.jar}" />
2488- <pathelement location="${jogl.sdk.jar}" />
2489- <pathelement location="${jogl.glmobile.jar}" />
2490- <pathelement location="${jogl.glmobile.dbg.jar}" />
2491- <pathelement location="${jogl.util.jar}" />
2492- <pathelement location="${jogl.glutess.jar}" />
2493- <pathelement location="${jogl.glumipmap.jar}" />
2494- <pathelement location="${jogl.util.fixedfuncemu.jar}" />
2495- <pathelement location="${jogl.os.x11.jar}" />
2496- <pathelement location="${jogl.os.win.jar}" />
2497- <pathelement location="${jogl.os.osx.jar}" />
2498- <pathelement location="${jogl.gldesktop.jar}" />
2499- <pathelement location="${jogl.gldesktop.dbg.jar}" />
2500- <pathelement location="${jogl.glugldesktop.jar}" />
2501- <pathelement location="${jogl.util.gldesktop.jar}" />
2502- <pathelement location="${jogl.omx.jar}" />
2503- </path>
2504- <path id="jogl_all-mobile_atoms.classpath">
2505- <pathelement location="${jogl.core.jar}" />
2506- <pathelement location="${jogl.glmobile.jar}" />
2507- <pathelement location="${jogl.glmobile.dbg.jar}" />
2508- <pathelement location="${jogl.util.jar}" />
2509- <pathelement location="${jogl.glutess.jar}" />
2510- <pathelement location="${jogl.glumipmap.jar}" />
2511- <pathelement location="${jogl.util.fixedfuncemu.jar}" />
2512- <pathelement location="${jogl.omx.jar}" />
2513- </path>
2514- <!--
2515- ${jogl.core.jar} ${jogl.glutess.jar} ${jogl.glumipmap.jar} ${jogl.glugldesktop.jar} ${jogl.os.x11.jar} ${jogl.os.win.jar} ${jogl.os.osx.jar} ${jogl.gldesktop.jar} ${jogl.gldesktop.dbg.jar} ${jogl.glmobile.jar} ${jogl.glmobile.dbg.jar} ${jogl.omx.jar} ${jogl.util.jar} ${jogl.util.gldesktop.jar} ${jogl.util.awt.jar} ${jogl.util.fixedfuncemu.jar} ${jogl.sdk.jar} -->
2516-
2517- <property name="newt.core.jar" value="${build.newt}/newt.core.jar" />
2518- <property name="newt.ogl.jar" value="${build.newt}/newt.ogl.jar" />
2519- <property name="newt.awt.jar" value="${build.newt}/newt.awt.jar" />
2520- <property name="newt.driver.x11.jar" value="${build.newt}/newt.driver.x11.jar" />
2521- <property name="newt.driver.win.jar" value="${build.newt}/newt.driver.win.jar" />
2522- <property name="newt.driver.macosx.jar" value="${build.newt}/newt.driver.macosx.jar" />
2523- <property name="newt.driver.android.jar" value="${build.newt}/newt.driver.android.jar" /> <!-- excluded from all -->
2524- <property name="newt.driver.kd.jar" value="${build.newt}/newt.driver.kd.jar" /> <!-- excluded from all -->
2525- <property name="newt.driver.intelgdl.jar" value="${build.newt}/newt.driver.intelgdl.jar" /> <!-- excluded from all -->
2526- <property name="newt.driver.broadcomegl.jar" value="${build.newt}/newt.driver.broadcomegl.jar" /> <!-- excluded from all -->
2527- <path id="newt_all_atoms.classpath">
2528- <pathelement location="${newt.core.jar}" />
2529- <pathelement location="${newt.ogl.jar}" />
2530- <pathelement location="${newt.awt.jar}" />
2531- <pathelement location="${newt.driver.x11.jar}" />
2532- <pathelement location="${newt.driver.win.jar}" />
2533- <pathelement location="${newt.driver.macosx.jar}" />
2534- </path>
2535- <path id="newt_all-noawt_atoms.classpath">
2536- <pathelement location="${newt.core.jar}" />
2537- <pathelement location="${newt.ogl.jar}" />
2538- <pathelement location="${newt.driver.x11.jar}" />
2539- <pathelement location="${newt.driver.win.jar}" />
2540- <pathelement location="${newt.driver.macosx.jar}" />
2541- </path>
2542- <path id="newt_all-mobile_atoms.classpath">
2543- <pathelement location="${newt.core.jar}" />
2544- <pathelement location="${newt.ogl.jar}" />
2545- <pathelement location="${newt.driver.x11.jar}" />
2546- <pathelement location="${newt.driver.win.jar}" />
2547- </path>
2548- <path id="newt_all-android_atoms.classpath">
2549- <pathelement location="${newt.core.jar}" />
2550- <pathelement location="${newt.ogl.jar}" />
2551- <pathelement location="${newt.driver.android.jar}" />
2552- </path>
2553-
2554- <!-- JavaSE combinations -->
2555- <property name="gluegen-rt.jar" value="/usr/share/java/gluegen2-rt.jar" />
2556- <property name="jogl.test.jar" value="${jar}/jogl.test.jar"/>
2557-
2558- <!-- JavaSE combinations . AWT -->
2559- <property name="jogl.all.jar" value="${jar}/jogl.all.jar" />
2560- <property name="newt.event.jar" value="${jar}/newt.event.jar" />
2561-
2562- <!-- JavaSE combinations . NO.AWT -->
2563- <property name="jogl.all-noawt.jar" value="${jar}/jogl.all-noawt.jar" />
2564- <property name="jogl.all-mobile.jar" value="${jar}/jogl.all-mobile.jar" />
2565- <property name="jogl.all-android.jar" value="${jar}/jogl.all-android.jar" />
2566-
2567- <path id="swt_gluegen.classpath">
2568- <pathelement location="${gluegen-rt.jar}" />
2569- <pathelement location="${swt.jar}" />
2570- </path>
2571-
2572- <!-- JOGL Compilation .. -->
2573- <path id="nativewindow_gluegen.classpath">
2574- <pathelement location="${gluegen-rt.jar}" />
2575- <pathelement location="${swt.jar}" />
2576- <path refid="nativewindow_all_atoms.classpath" />
2577- </path>
2578-
2579- <!-- NEWT Compilation .. -->
2580- <path id="jogl_nativewindow_gluegen.classpath">
2581- <pathelement location="${android.jar}" />
2582- <pathelement location="${gluegen-rt.jar}" />
2583- <pathelement location="${swt.jar}" />
2584- <path refid="nativewindow_all_atoms.classpath" />
2585- <path refid="jogl_all_atoms.classpath" />
2586- </path>
2587-
2588- <!-- Test Compilation .. -->
2589- <path id="junit_jogl_newt_android.compile.classpath">
2590- <pathelement location="${android.jar}" />
2591- <pathelement location="${junit.jar}" />
2592- <pathelement location="${ant.jar}" />
2593- <pathelement location="${ant-junit.jar}" />
2594- <pathelement location="${gluegen-rt.jar}" />
2595- <pathelement location="${swt.jar}" />
2596- <path refid="nativewindow_all_atoms.classpath" />
2597- <path refid="jogl_all_atoms.classpath" />
2598- <path refid="newt_all_atoms.classpath" />
2599- <pathelement location="${newt.driver.android.jar}" />
2600- </path>
2601-
2602- <!-- Postbuild: javadoc .. -->
2603- <path id="jogl_all.classpath">
2604- <pathelement location="${android.jar}" />
2605- <pathelement location="${gluegen-rt.jar}" />
2606- <pathelement location="${swt.jar}" />
2607- <pathelement location="${jogl.all.jar}" />
2608- </path>
2609-
2610- <!-- Test Run w/ AWT .. -->
2611- <path id="junit_jogl_awt.run.classpath">
2612- <pathelement location="${junit.jar}" />
2613- <pathelement location="${ant.jar}" />
2614- <pathelement location="${ant-junit.jar}" />
2615- <pathelement location="${gluegen-rt.jar}" />
2616- <pathelement location="${jogl.all.jar}" />
2617- <pathelement location="${jogl.test.jar}" />
2618- </path>
2619- <property name="junit_jogl_awt.run.jars"
2620- value="${junit.jar}${path.separator}${ant.jar}${path.separator}${ant-junit.jar}${path.separator}${gluegen-rt.jar}${path.separator}${jogl.all.jar}${path.separator}${jogl.test.jar}"/>
2621-
2622- <!-- Test Run w/o AWT .. -->
2623- <path id="junit_jogl_noawt.run.classpath">
2624- <pathelement location="${junit.jar}" />
2625- <pathelement location="${ant.jar}" />
2626- <pathelement location="${ant-junit.jar}" />
2627- <pathelement location="${gluegen-rt.jar}" />
2628- <pathelement location="${jogl.all-noawt.jar}" />
2629- <pathelement location="${jogl.test.jar}" />
2630- </path>
2631- <property name="junit_jogl_noawt.run.jars"
2632- value="${junit.jar}${path.separator}${ant.jar}${path.separator}${ant-junit.jar}${path.separator}${gluegen-rt.jar}${path.separator}${jogl.all-noawt.jar}${path.separator}${jogl.test.jar}"/>
2633-
2634- <!-- Test Run w/ SWT .. -->
2635- <path id="junit_jogl_swt.run.classpath">
2636- <pathelement location="${junit.jar}" />
2637- <pathelement location="${ant.jar}" />
2638- <pathelement location="${ant-junit.jar}" />
2639- <pathelement location="${gluegen-rt.jar}" />
2640- <pathelement location="${swt.jar}" />
2641- <pathelement location="${jogl.all.jar}" />
2642- <pathelement location="${jogl.test.jar}" />
2643- </path>
2644- <property name="junit_jogl_swt.run.jars"
2645- value="${junit.jar}${path.separator}${ant.jar}${path.separator}${ant-junit.jar}${path.separator}${gluegen-rt.jar}${path.separator}${swt.jar}${path.separator}${jogl.all.jar}${path.separator}${jogl.test.jar}"/>
2646-
2647- <!-- Test Run w/ Android [w/o AWT] .. -->
2648- <path id="junit_jogl_android.run.classpath">
2649- <pathelement location="${junit.jar}" />
2650- <pathelement location="${ant.jar}" />
2651- <pathelement location="${ant-junit.jar}" />
2652- <pathelement location="${android.jar}" />
2653- <pathelement location="${gluegen-rt.jar}" />
2654- <pathelement location="${jogl.all-android.jar}" />
2655- <pathelement location="${jogl.test.jar}" />
2656- </path>
2657- <property name="junit_jogl_android.run.jars"
2658- value="${junit.jar}${path.separator}${ant.jar}${path.separator}${ant-junit.jar}${path.separator}${gluegen-rt.jar}${path.separator}${jogl.all-android.jar}${path.separator}${jogl.test.jar}"/>
2659-
2660-
2661- <!-- The location and name of the configuration ANT file that will
2662- - validate to ensure that all user-define variables are set. -->
2663- <property name="validate.user.properties" value="${make}/validate-properties.xml" />
2664- </target>
2665-
2666- <!-- ================================================================== -->
2667- <!-- GlueGen and BuildStaticGLInfo creation, task setup and Java file generation -->
2668- <!--
2669- - Build GlueGen
2670- -->
2671- <target name="common.gluegen.build" depends="common.init" unless="common.gluegen.build.done">
2672- <property name="common.gluegen.build.done" value="true" />
2673-
2674- <!-- Run the GlueGen build to ensure that the GlueGen ANT task
2675- - has been built. -->
2676- <ant antfile="${gluegen.build.xml}" dir="${gluegen.make}" target="base.compile" inheritAll="false">
2677- <property name="build" value="${basedir}/../"/>
2678- <property name="test.dir" value="${basedir}/../test"/>
2679- </ant>
2680- </target>
2681-
2682-
2683-</project>
2684
2685=== removed directory '.pc/disable_git_call.diff'
2686=== removed directory '.pc/disable_git_call.diff/make'
2687=== removed file '.pc/disable_git_call.diff/make/build-common.xml'
2688--- .pc/disable_git_call.diff/make/build-common.xml 2011-10-08 11:39:42 +0000
2689+++ .pc/disable_git_call.diff/make/build-common.xml 1970-01-01 00:00:00 +0000
2690@@ -1,498 +0,0 @@
2691-<?xml version="1.0" encoding="UTF-8"?>
2692-
2693-<project name="JOGLCommonStuff" basedir="." default="common.init">
2694-
2695- <description>Common JOGL Stuff</description>
2696-
2697- <fail message="Please build using Ant 1.8.0 or higher.">
2698- <condition>
2699- <not>
2700- <antversion atleast="1.8.0"/>
2701- </not>
2702- </condition>
2703- </fail>
2704-
2705- <!-- Pull in GlueGen cpptasks build file -->
2706- <property name="gluegen.root" value="/usr/share/gluegen2/" />
2707- <import file="${gluegen.root}/make/gluegen-cpptasks.xml" />
2708- <import file="${gluegen.root}/make/jogamp-archivetasks.xml" />
2709- <import file="${gluegen.root}/make/jogamp-androidtasks.xml" />
2710- <import file="${gluegen.root}/make/jogamp-env.xml" />
2711-
2712- <property name="ant-contrib.jar" value="/usr/share/java/ant-contrib.jar" />
2713-
2714- <condition property="rootrel.build" value="build">
2715- <not>
2716- <isset property="rootrel.build"/>
2717- </not>
2718- </condition>
2719-
2720- <import file="versions.xml" />
2721-
2722- <!-- ================================================================== -->
2723- <!--
2724- - Base initialization of properties and detection of operating system.
2725- -->
2726- <target name="set.debug">
2727- <property name="c.compiler.debug" value="true" />
2728- <property name="javacdebug" value="true" />
2729- <property name="javacdebuglevel" value="source,lines,vars" />
2730- </target>
2731- <target name="common.init.debug" depends="set.debug, common.init"/>
2732-
2733- <target name="common.init" depends="jogamp.env.init, gluegen.cpptasks.detect.os" unless="common.init.done">
2734- <property name="common.init.done" value="true" />
2735-
2736- <!-- Set the project root directory to be up one directory. -->
2737- <property name="project.root" value=".." />
2738- <property name="build" value="${project.root}/${rootrel.build}" />
2739- <property name="tempdir" value="${project.root}/build-temp" />
2740- <property name="src" value="${project.root}/src" />
2741- <property name="lib" value="${build}/lib" />
2742- <property name="jar" value="${build}/jar" />
2743-
2744- <property name="all.srcj.path" value="${src}/nativewindow/classes;${src}/jogl/classes;${src}/newt/classes" />
2745- <!-- No generated classes for Newt at the present time -->
2746- <property name="all.genj.path" value="${build}/nativewindow/gensrc/classes;${build}/jogl/gensrc/classes" />
2747-
2748- <!-- Set the configuration and build files to this directory. -->
2749- <property name="make" value="." />
2750- <property name="config" value="${make}/config" />
2751- <property name="stub.includes" value="stub_includes" /> <!-- NOTE: this MUST be relative for FileSet -->
2752-
2753- <property name="stub.includes.gluegen.gg" value="${gluegen.root}/make/stub_includes/gluegen" />
2754- <property name="stub.includes.gluegen.cc" value="${gluegen.root}/make/stub_includes/platform" />
2755-
2756- <tstamp>
2757- <format property="version.timestamp" pattern="yyyyMMdd"/>
2758- </tstamp>
2759-
2760- <property name="jogl.build.number" value="manual"/>
2761- <property name="jogl.build.id" value="${version.timestamp}"/>
2762- <mkdir dir="${tempdir}" />
2763- <exec dir="." executable="git" logError="true" failonerror="false" failifexecutionfails="false"
2764- output="${tempdir}/localbranch.raw">
2765- <arg line="branch --no-color"/>
2766- </exec>
2767- <exec dir="." executable="sed" logError="true" failonerror="false" failifexecutionfails="false"
2768- outputproperty="jogl.build.branch">
2769- <arg line="-e '/^[^*]/d' -e 's/* \(.*\)/\1/' ${tempdir}/localbranch.raw"/>
2770- </exec>
2771- <property name="jogl.build.branch" value="manual"/> <!-- fallback -->
2772- <exec dir="${project.root}" executable="git" logError="true" failonerror="false" failifexecutionfails="false"
2773- outputproperty="jogl.build.commit">
2774- <arg line="rev-parse HEAD"/>
2775- </exec>
2776- <property name="jogl.build.commit" value="manual"/> <!-- fallback -->
2777-
2778- <property name="nativewindow.version" value="${nativewindow_base_version}-b${jogl.build.number}-${version.timestamp}" />
2779- <property name="jogl.version" value="${jogl_base_version}-b${jogl.build.number}-${version.timestamp}" />
2780- <property name="newt.version" value="${newt_base_version}-b${jogl.build.number}-${version.timestamp}" />
2781- <property name="jogl.version.plus" value="${jogl_base_version}-${jogl.build.branch}-b${jogl.build.number}-${jogl.build.commit}-${version.timestamp}" />
2782-
2783- <property name="archive.name" value="jogl-${jogl.version}-${os.and.arch}" />
2784- <property name="archive" value="${build}/${archive.name}" />
2785-
2786- <condition property="setup.noNativeAWT">
2787- <or>
2788- <isset property="setup.noAWT"/>
2789- <isset property="isAndroid"/>
2790- </or>
2791- </condition>
2792-
2793- <condition property="setup.noNativeDesktop">
2794- <or>
2795- <isset property="isAndroid"/>
2796- </or>
2797- </condition>
2798-
2799- <echo message="setup.noAWT: ${setup.noAWT}" />
2800- <echo message="setup.noNativeAWT: ${setup.noNativeAWT}" />
2801- <echo message="setup.noNativeDesktop: ${setup.noNativeDesktop}" />
2802-
2803- <!-- Load the user specified properties file that defines various host
2804- - specific paths. The user will be notified if this is does not
2805- - exist. -->
2806- <property name="user.properties.file" value="${user.home}/jogl.properties" />
2807- <property file="${user.properties.file}" />
2808- <echo message="Loaded ${user.properties.file}." />
2809- <property file="${user.home}/gluegen.properties" />
2810- <echo message="Loaded ${user.home}/gluegen.properties." />
2811- <echo message="antlr.jar=${antlr.jar}" />
2812- <echo message="junit.jar=${junit.jar}" />
2813- <echo message="android.jar=${android.jar}" />
2814-
2815- <!-- Set swt.jar to the correct file for this platform. We point to the debug JARs to allow
2816- stepping into SWT calls using the accompanying source code zip archives. -->
2817- <condition property="swt.jar" value="${project.root}/make/lib/swt/win32-win32-x86_64/swt-debug.jar">
2818- <istrue value="${isWindowsAMD64}" />
2819- </condition>
2820- <condition property="swt.jar" value="${project.root}/make/lib/swt/win32-win32-x86/swt-debug.jar">
2821- <istrue value="${isWindowsX86}" />
2822- </condition>
2823- <condition property="swt.jar" value="/usr/share/java/swt.jar">
2824- <istrue value="${isLinux}" />
2825- </condition>
2826- <condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-linux-x86/swt-debug.jar">
2827- <istrue value="${isAndroid}" /> <!-- FIXME JAU .. hack -->
2828- </condition>
2829- <condition property="swt.jar" value="${project.root}/make/lib/swt/cocoa-macosx-x86_64/swt-debug.jar">
2830- <and>
2831- <istrue value="${isOSX}" />
2832- <or>
2833- <os arch="AMD64" />
2834- <os arch="x86_64" />
2835- </or>
2836- </and>
2837- </condition>
2838- <condition property="swt.jar" value="${project.root}/make/lib/swt/cocoa-macosx/swt-debug.jar">
2839- <and>
2840- <istrue value="${isOSX}" />
2841- <or>
2842- <os arch="i386" />
2843- <os arch="x86" />
2844- </or>
2845- </and>
2846- </condition>
2847- <condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-solaris-x86/swt-debug.jar">
2848- <istrue value="${isSolarisX86}" />
2849- </condition>
2850- <condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-solaris-x86/swt-debug.jar">
2851- <istrue value="${isSolarisAMD64}" />
2852- </condition>
2853- <condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-solaris-sparc/swt-debug.jar">
2854- <istrue value="${isSolarisSparc}" />
2855- </condition>
2856- <condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-solaris-sparc/swt-debug.jar">
2857- <istrue value="${isSolarisSparcv9}" />
2858- </condition>
2859- <echo message="swt.jar=${swt.jar}" />
2860-
2861- <property name="target.sourcelevel" value="1.5" />
2862- <property name="host.sourcelevel" value="1.5" />
2863-
2864- <!-- property name="javadoc.link" value="http://java.sun.com/j2se/1.4.2/docs/api/" /-->
2865- <property name="javadoc.link" value="http://download.oracle.com/javase/1.5.0/docs/api/" />
2866-
2867- <!-- NOTE: the value of the debug and optimise attributes will not be overridden if already set externally -->
2868- <property name="javacdebug" value="true" />
2869- <property name="javacdebuglevel" value="source,lines" />
2870- <!--property name="javacdebuglevel" value="source,lines,vars" /-->
2871- <!-- property name="javac.memorymax" value="128m" /--> <!-- I ran out of memory with these .. linux x86_64 6u14 -->
2872- <property name="javac.memorymax" value="512m" />
2873-
2874- <!-- Names of directories relative to the project root.
2875- Some of these are used in FileMappers later for dependence information
2876- and need exact string matching, which is why they use file.separator
2877- instead of "/". -->
2878-
2879- <!-- NOTE that these require a checked-out GlueGen, etc workspace as a -->
2880- <!-- sibling of the JOGL workspace. -->
2881- <property name="gluegen.make" value="${gluegen.root}/make" />
2882- <property name="gluegen.build.xml" value="${gluegen.make}/build.xml" />
2883- <property name="build.gluegen" value="${gluegen.root}/${rootrel.build}" />
2884- <property name="obj.gluegen" value="${build.gluegen}/obj"/>
2885- <property name="gluegen.jar" value="/usr/share/java/gluegen2.jar" />
2886- <property name="ant.jar" value="${ant.home}/lib/ant.jar" />
2887- <property name="ant-junit.jar" value="${ant.home}/lib/ant-junit.jar" />
2888-
2889- <property name="nativewindow.make" value="." />
2890- <property name="nativewindow.build.xml" value="${nativewindow.make}/build-nativewindow.xml" />
2891- <property name="build.nativewindow" value="${build}/nativewindow" />
2892- <property name="obj.nativewindow" value="${build.nativewindow}/obj"/>
2893-
2894- <property name="jogl.make" value="." />
2895- <property name="jogl.build.xml" value="${jogl.make}/build-jogl.xml" />
2896- <property name="build.jogl" value="${build}/jogl" />
2897- <property name="obj.jogl" value="${build.jogl}/obj"/>
2898-
2899- <property name="newt.make" value="." />
2900- <property name="newt.build.xml" value="${newt.make}/build-newt.xml" />
2901- <property name="build.newt" value="${build}/newt" />
2902- <property name="obj.newt" value="${build.newt}/obj"/>
2903-
2904- <property name="results.test" value="${build}/test/results" />
2905- <property name="build.test" value="${build}/test/build" />
2906- <property name="obj.test" value="${build.test}/obj"/>
2907-
2908- <condition property="obj.custom" value="${custom.libdir}${path.separator}" else="">
2909- <isset property="custom.libdir"/>
2910- </condition>
2911-
2912- <property name="obj.all.paths" value="${obj.custom}${obj.gluegen}${path.separator}${obj.nativewindow}${path.separator}${obj.jogl}${path.separator}${obj.newt}${path.separator}${obj.test}" />
2913-
2914- <path id="gluegen.classpath">
2915- <pathelement location="${gluegen.jar}" />
2916- <pathelement location="${antlr.jar}" />
2917- </path>
2918-
2919- <property name="gluegen-gl.jar" value="${build.jogl}/gluegen-gl.jar" />
2920-
2921- <path id="gluegen-gl.classpath">
2922- <pathelement location="${gluegen.jar}" />
2923- <pathelement location="${gluegen-gl.jar}" />
2924- </path>
2925-
2926- <!-- Atomic JavaSE JARS -->
2927-
2928- <property name="nativewindow.core.jar" value="${build.nativewindow}/nativewindow.core.jar" />
2929- <property name="nativewindow.awt.jar" value="${build.nativewindow}/nativewindow.awt.jar" />
2930- <property name="nativewindow.os.x11.jar" value="${build.nativewindow}/nativewindow.os.x11.jar" />
2931- <property name="nativewindow.os.win.jar" value="${build.nativewindow}/nativewindow.os.win.jar" />
2932- <property name="nativewindow.os.macosx.jar" value="${build.nativewindow}/nativewindow.os.macosx.jar" />
2933-
2934- <path id="nativewindow_all_atoms.classpath">
2935- <pathelement location="${nativewindow.core.jar}" />
2936- <pathelement location="${nativewindow.awt.jar}" />
2937- <pathelement location="${nativewindow.os.x11.jar}" />
2938- <pathelement location="${nativewindow.os.win.jar}" />
2939- <pathelement location="${nativewindow.os.macosx.jar}" />
2940- </path>
2941- <path id="nativewindow_all-noawt_atoms.classpath">
2942- <pathelement location="${nativewindow.core.jar}" />
2943- <pathelement location="${nativewindow.os.x11.jar}" />
2944- <pathelement location="${nativewindow.os.win.jar}" />
2945- <pathelement location="${nativewindow.os.macosx.jar}" />
2946- </path>
2947- <path id="nativewindow_core_atoms.classpath">
2948- <pathelement location="${nativewindow.core.jar}" />
2949- </path>
2950-
2951- <property name="jogl.core.jar" value="${build.jogl}/jogl.core.jar" />
2952- <property name="jogl.sdk.jar" value="${build.jogl}/jogl.sdk.jar" />
2953- <property name="jogl.glmobile.jar" value="${build.jogl}/jogl.glmobile.jar" />
2954- <property name="jogl.glmobile.dbg.jar" value="${build.jogl}/jogl.glmobile.dbg.jar" />
2955- <property name="jogl.util.jar" value="${build.jogl}/jogl.util.jar" />
2956- <property name="jogl.glutess.jar" value="${build.jogl}/jogl.glu.tess.jar" />
2957- <property name="jogl.glumipmap.jar" value="${build.jogl}/jogl.glu.mipmap.jar" />
2958- <property name="jogl.util.fixedfuncemu.jar" value="${build.jogl}/jogl.util.fixedfuncemu.jar" />
2959- <property name="jogl.awt.jar" value="${build.jogl}/jogl.awt.jar" />
2960- <property name="jogl.util.awt.jar" value="${build.jogl}/jogl.util.awt.jar" />
2961- <property name="jogl.os.x11.jar" value="${build.jogl}/jogl.os.x11.jar" />
2962- <property name="jogl.os.win.jar" value="${build.jogl}/jogl.os.win.jar" />
2963- <property name="jogl.os.osx.jar" value="${build.jogl}/jogl.os.osx.jar" />
2964- <property name="jogl.gldesktop.jar" value="${build.jogl}/jogl.gldesktop.jar" />
2965- <property name="jogl.gldesktop.dbg.jar" value="${build.jogl}/jogl.gldesktop.dbg.jar" />
2966- <property name="jogl.glugldesktop.jar" value="${build.jogl}/jogl.glu.gldesktop.jar" />
2967- <property name="jogl.util.gldesktop.jar" value="${build.jogl}/jogl.util.gldesktop.jar" />
2968- <property name="jogl.omx.jar" value="${build.jogl}/jogl.omx.jar" />
2969- <property name="jogl.cg.jar" value="${build.jogl}/jogl.cg.jar" />
2970-
2971- <path id="jogl_all_atoms.classpath">
2972- <pathelement location="${jogl.core.jar}" />
2973- <pathelement location="${jogl.sdk.jar}" />
2974- <pathelement location="${jogl.glmobile.jar}" />
2975- <pathelement location="${jogl.glmobile.dbg.jar}" />
2976- <pathelement location="${jogl.util.jar}" />
2977- <pathelement location="${jogl.glutess.jar}" />
2978- <pathelement location="${jogl.glumipmap.jar}" />
2979- <pathelement location="${jogl.util.fixedfuncemu.jar}" />
2980- <pathelement location="${jogl.awt.jar}" />
2981- <pathelement location="${jogl.util.awt.jar}" />
2982- <pathelement location="${jogl.os.x11.jar}" />
2983- <pathelement location="${jogl.os.win.jar}" />
2984- <pathelement location="${jogl.os.osx.jar}" />
2985- <pathelement location="${jogl.gldesktop.jar}" />
2986- <pathelement location="${jogl.gldesktop.dbg.jar}" />
2987- <pathelement location="${jogl.glugldesktop.jar}" />
2988- <pathelement location="${jogl.util.gldesktop.jar}" />
2989- <pathelement location="${jogl.omx.jar}" />
2990- </path>
2991- <path id="jogl_all-noawt_atoms.classpath">
2992- <pathelement location="${jogl.core.jar}" />
2993- <pathelement location="${jogl.sdk.jar}" />
2994- <pathelement location="${jogl.glmobile.jar}" />
2995- <pathelement location="${jogl.glmobile.dbg.jar}" />
2996- <pathelement location="${jogl.util.jar}" />
2997- <pathelement location="${jogl.glutess.jar}" />
2998- <pathelement location="${jogl.glumipmap.jar}" />
2999- <pathelement location="${jogl.util.fixedfuncemu.jar}" />
3000- <pathelement location="${jogl.os.x11.jar}" />
3001- <pathelement location="${jogl.os.win.jar}" />
3002- <pathelement location="${jogl.os.osx.jar}" />
3003- <pathelement location="${jogl.gldesktop.jar}" />
3004- <pathelement location="${jogl.gldesktop.dbg.jar}" />
3005- <pathelement location="${jogl.glugldesktop.jar}" />
3006- <pathelement location="${jogl.util.gldesktop.jar}" />
3007- <pathelement location="${jogl.omx.jar}" />
3008- </path>
3009- <path id="jogl_all-mobile_atoms.classpath">
3010- <pathelement location="${jogl.core.jar}" />
3011- <pathelement location="${jogl.glmobile.jar}" />
3012- <pathelement location="${jogl.glmobile.dbg.jar}" />
3013- <pathelement location="${jogl.util.jar}" />
3014- <pathelement location="${jogl.glutess.jar}" />
3015- <pathelement location="${jogl.glumipmap.jar}" />
3016- <pathelement location="${jogl.util.fixedfuncemu.jar}" />
3017- <pathelement location="${jogl.omx.jar}" />
3018- </path>
3019- <!--
3020- ${jogl.core.jar} ${jogl.glutess.jar} ${jogl.glumipmap.jar} ${jogl.glugldesktop.jar} ${jogl.os.x11.jar} ${jogl.os.win.jar} ${jogl.os.osx.jar} ${jogl.gldesktop.jar} ${jogl.gldesktop.dbg.jar} ${jogl.glmobile.jar} ${jogl.glmobile.dbg.jar} ${jogl.omx.jar} ${jogl.util.jar} ${jogl.util.gldesktop.jar} ${jogl.util.awt.jar} ${jogl.util.fixedfuncemu.jar} ${jogl.sdk.jar} -->
3021-
3022- <property name="newt.core.jar" value="${build.newt}/newt.core.jar" />
3023- <property name="newt.ogl.jar" value="${build.newt}/newt.ogl.jar" />
3024- <property name="newt.awt.jar" value="${build.newt}/newt.awt.jar" />
3025- <property name="newt.driver.x11.jar" value="${build.newt}/newt.driver.x11.jar" />
3026- <property name="newt.driver.win.jar" value="${build.newt}/newt.driver.win.jar" />
3027- <property name="newt.driver.macosx.jar" value="${build.newt}/newt.driver.macosx.jar" />
3028- <property name="newt.driver.android.jar" value="${build.newt}/newt.driver.android.jar" /> <!-- excluded from all -->
3029- <property name="newt.driver.kd.jar" value="${build.newt}/newt.driver.kd.jar" /> <!-- excluded from all -->
3030- <property name="newt.driver.intelgdl.jar" value="${build.newt}/newt.driver.intelgdl.jar" /> <!-- excluded from all -->
3031- <property name="newt.driver.broadcomegl.jar" value="${build.newt}/newt.driver.broadcomegl.jar" /> <!-- excluded from all -->
3032- <path id="newt_all_atoms.classpath">
3033- <pathelement location="${newt.core.jar}" />
3034- <pathelement location="${newt.ogl.jar}" />
3035- <pathelement location="${newt.awt.jar}" />
3036- <pathelement location="${newt.driver.x11.jar}" />
3037- <pathelement location="${newt.driver.win.jar}" />
3038- <pathelement location="${newt.driver.macosx.jar}" />
3039- </path>
3040- <path id="newt_all-noawt_atoms.classpath">
3041- <pathelement location="${newt.core.jar}" />
3042- <pathelement location="${newt.ogl.jar}" />
3043- <pathelement location="${newt.driver.x11.jar}" />
3044- <pathelement location="${newt.driver.win.jar}" />
3045- <pathelement location="${newt.driver.macosx.jar}" />
3046- </path>
3047- <path id="newt_all-mobile_atoms.classpath">
3048- <pathelement location="${newt.core.jar}" />
3049- <pathelement location="${newt.ogl.jar}" />
3050- <pathelement location="${newt.driver.x11.jar}" />
3051- <pathelement location="${newt.driver.win.jar}" />
3052- </path>
3053- <path id="newt_all-android_atoms.classpath">
3054- <pathelement location="${newt.core.jar}" />
3055- <pathelement location="${newt.ogl.jar}" />
3056- <pathelement location="${newt.driver.android.jar}" />
3057- </path>
3058-
3059- <!-- JavaSE combinations -->
3060- <property name="gluegen-rt.jar" value="/usr/share/java/gluegen2-rt.jar" />
3061- <property name="jogl.test.jar" value="${jar}/jogl.test.jar"/>
3062-
3063- <!-- JavaSE combinations . AWT -->
3064- <property name="jogl.all.jar" value="${jar}/jogl.all.jar" />
3065- <property name="newt.event.jar" value="${jar}/newt.event.jar" />
3066-
3067- <!-- JavaSE combinations . NO.AWT -->
3068- <property name="jogl.all-noawt.jar" value="${jar}/jogl.all-noawt.jar" />
3069- <property name="jogl.all-mobile.jar" value="${jar}/jogl.all-mobile.jar" />
3070- <property name="jogl.all-android.jar" value="${jar}/jogl.all-android.jar" />
3071-
3072- <path id="swt_gluegen.classpath">
3073- <pathelement location="${gluegen-rt.jar}" />
3074- <pathelement location="${swt.jar}" />
3075- </path>
3076-
3077- <!-- JOGL Compilation .. -->
3078- <path id="nativewindow_gluegen.classpath">
3079- <pathelement location="${gluegen-rt.jar}" />
3080- <pathelement location="${swt.jar}" />
3081- <path refid="nativewindow_all_atoms.classpath" />
3082- </path>
3083-
3084- <!-- NEWT Compilation .. -->
3085- <path id="jogl_nativewindow_gluegen.classpath">
3086- <pathelement location="${android.jar}" />
3087- <pathelement location="${gluegen-rt.jar}" />
3088- <pathelement location="${swt.jar}" />
3089- <path refid="nativewindow_all_atoms.classpath" />
3090- <path refid="jogl_all_atoms.classpath" />
3091- </path>
3092-
3093- <!-- Test Compilation .. -->
3094- <path id="junit_jogl_newt_android.compile.classpath">
3095- <pathelement location="${android.jar}" />
3096- <pathelement location="${junit.jar}" />
3097- <pathelement location="${ant.jar}" />
3098- <pathelement location="${ant-junit.jar}" />
3099- <pathelement location="${gluegen-rt.jar}" />
3100- <pathelement location="${swt.jar}" />
3101- <path refid="nativewindow_all_atoms.classpath" />
3102- <path refid="jogl_all_atoms.classpath" />
3103- <path refid="newt_all_atoms.classpath" />
3104- <pathelement location="${newt.driver.android.jar}" />
3105- </path>
3106-
3107- <!-- Postbuild: javadoc .. -->
3108- <path id="jogl_all.classpath">
3109- <pathelement location="${android.jar}" />
3110- <pathelement location="${gluegen-rt.jar}" />
3111- <pathelement location="${swt.jar}" />
3112- <pathelement location="${jogl.all.jar}" />
3113- </path>
3114-
3115- <!-- Test Run w/ AWT .. -->
3116- <path id="junit_jogl_awt.run.classpath">
3117- <pathelement location="${junit.jar}" />
3118- <pathelement location="${ant.jar}" />
3119- <pathelement location="${ant-junit.jar}" />
3120- <pathelement location="${gluegen-rt.jar}" />
3121- <pathelement location="${jogl.all.jar}" />
3122- <pathelement location="${jogl.test.jar}" />
3123- </path>
3124- <property name="junit_jogl_awt.run.jars"
3125- value="${junit.jar}${path.separator}${ant.jar}${path.separator}${ant-junit.jar}${path.separator}${gluegen-rt.jar}${path.separator}${jogl.all.jar}${path.separator}${jogl.test.jar}"/>
3126-
3127- <!-- Test Run w/o AWT .. -->
3128- <path id="junit_jogl_noawt.run.classpath">
3129- <pathelement location="${junit.jar}" />
3130- <pathelement location="${ant.jar}" />
3131- <pathelement location="${ant-junit.jar}" />
3132- <pathelement location="${gluegen-rt.jar}" />
3133- <pathelement location="${jogl.all-noawt.jar}" />
3134- <pathelement location="${jogl.test.jar}" />
3135- </path>
3136- <property name="junit_jogl_noawt.run.jars"
3137- value="${junit.jar}${path.separator}${ant.jar}${path.separator}${ant-junit.jar}${path.separator}${gluegen-rt.jar}${path.separator}${jogl.all-noawt.jar}${path.separator}${jogl.test.jar}"/>
3138-
3139- <!-- Test Run w/ SWT .. -->
3140- <path id="junit_jogl_swt.run.classpath">
3141- <pathelement location="${junit.jar}" />
3142- <pathelement location="${ant.jar}" />
3143- <pathelement location="${ant-junit.jar}" />
3144- <pathelement location="${gluegen-rt.jar}" />
3145- <pathelement location="${swt.jar}" />
3146- <pathelement location="${jogl.all.jar}" />
3147- <pathelement location="${jogl.test.jar}" />
3148- </path>
3149- <property name="junit_jogl_swt.run.jars"
3150- value="${junit.jar}${path.separator}${ant.jar}${path.separator}${ant-junit.jar}${path.separator}${gluegen-rt.jar}${path.separator}${swt.jar}${path.separator}${jogl.all.jar}${path.separator}${jogl.test.jar}"/>
3151-
3152- <!-- Test Run w/ Android [w/o AWT] .. -->
3153- <path id="junit_jogl_android.run.classpath">
3154- <pathelement location="${junit.jar}" />
3155- <pathelement location="${ant.jar}" />
3156- <pathelement location="${ant-junit.jar}" />
3157- <pathelement location="${android.jar}" />
3158- <pathelement location="${gluegen-rt.jar}" />
3159- <pathelement location="${jogl.all-android.jar}" />
3160- <pathelement location="${jogl.test.jar}" />
3161- </path>
3162- <property name="junit_jogl_android.run.jars"
3163- value="${junit.jar}${path.separator}${ant.jar}${path.separator}${ant-junit.jar}${path.separator}${gluegen-rt.jar}${path.separator}${jogl.all-android.jar}${path.separator}${jogl.test.jar}"/>
3164-
3165-
3166- <!-- The location and name of the configuration ANT file that will
3167- - validate to ensure that all user-define variables are set. -->
3168- <property name="validate.user.properties" value="${make}/validate-properties.xml" />
3169- </target>
3170-
3171- <!-- ================================================================== -->
3172- <!-- GlueGen and BuildStaticGLInfo creation, task setup and Java file generation -->
3173- <!--
3174- - Build GlueGen
3175- -->
3176- <target name="common.gluegen.build" depends="common.init" unless="common.gluegen.build.done">
3177- <property name="common.gluegen.build.done" value="true" />
3178-
3179- <!-- Run the GlueGen build to ensure that the GlueGen ANT task
3180- - has been built. -->
3181- <ant antfile="${gluegen.build.xml}" dir="${gluegen.make}" target="base.compile" inheritAll="false">
3182- <property name="build" value="${basedir}/../"/>
3183- <property name="test.dir" value="${basedir}/../test"/>
3184- </ant>
3185- </target>
3186-
3187-
3188-</project>
3189
3190=== removed directory '.pc/linker.cfg.id.os.diff'
3191=== removed directory '.pc/linker.cfg.id.os.diff/make'
3192=== removed file '.pc/linker.cfg.id.os.diff/make/build-jogl.xml'
3193--- .pc/linker.cfg.id.os.diff/make/build-jogl.xml 2011-10-10 12:13:14 +0000
3194+++ .pc/linker.cfg.id.os.diff/make/build-jogl.xml 1970-01-01 00:00:00 +0000
3195@@ -1,1655 +0,0 @@
3196-<?xml version="1.0" encoding="UTF-8"?>
3197-<!--
3198- - Ant build for JOGL. This build has been tested with ANT 1.7.0. The
3199- - optional.jar that contains the optional ANT tasks must be in the ANT
3200- - classpath (typically the ant/lib directory).
3201- -
3202- - A clean download of JOGL is required for this build.
3203- -
3204- - This build has no dependence on environment variables; the needed
3205- - ones (e.g. java.home, ANT_HOME) are all set by the Ant wrapper shell
3206- - script, by the virtual machine, or elsewhere. However, on all platforms,
3207- - the C compiler and linker should be in the path. All other paths that
3208- - need to be set are in host.properties.
3209- -
3210- - NOTE: because the GlueGen config files have their own relative paths
3211- - which cannot be overridden by GlueGen, GlueGen MUST be run from
3212- - the "make" directory. This also means that this build-jogl.xml MUST
3213- - be run from the "make" directory.
3214- -
3215- - Public targets:
3216- - all: (default; autodetects OS and chooses C compiler from gluegen.properties)
3217- - clean: clean all built
3218- - javadoc: create the standard developer Javadoc (recommended)
3219- - (Note: should build all first - may be dependence in the future)
3220- - javadoc.spec: create the standard developer Javadoc but exclude com.jogamp.* classes
3221- - javadoc.dev.all: create the internal developer Javadoc. This includes the
3222- - Java and C file generators. Note that it is only supported
3223- - to create the Javadoc for the platform on which you are
3224- - currently running.
3225- -
3226- - Note: on Windows the "win32.c.compiler" property in gluegen.properties
3227- - is required to select the appropriate C compiler. See the example
3228- - gluegen.properties in this directory for valid values. On Mac OS X
3229- - universal binaries may also be built by setting the "macosxfat"
3230- - property in gluegen.properties; again see the example file in this
3231- - directory.
3232- -
3233- - Thanks to Rob Grzywinski and Artur Biesiadowski for the bulk of the
3234- - ANT build, including the GlueGen and StaticGLInfo tasks, the building of
3235- - the Java generated sources, the first and second phase Java compiles, and
3236- - the building of the jar file. Thanks to Alex Radeski for the bulk of the
3237- - port to the ant-contrib CPPTask framework. Thanks to Athomas Goldberg for
3238- - the original OS detection code.
3239- -
3240- - Some environment defs affecting native compilation (only)
3241- setup.noNativeDesktop - drop native desktop bindings (glx, wgl, ..)
3242-
3243- setup.addNativeOpenMAX - add experimental binding to Khrono's OpenMAX
3244-
3245- setup.addNativeNVidiaCG - add experimental binding to NVidia's Cg language
3246- (enabled for windows, osx and X11 per default)
3247-
3248- - Internal settings, may not be necessary to set them manually,
3249- since all JAR archives are orthogonal.
3250- setup.noAWT
3251-
3252- - Skip gluegen: java.generate.skip
3253- -->
3254-<project name="JOGL" basedir="." default="all">
3255-
3256- <import file="build-common.xml"/>
3257-
3258- <!-- needed for outofdate task -->
3259- <taskdef resource="net/sf/antcontrib/antlib.xml">
3260- <classpath> <pathelement location="${ant-contrib.jar}"/> </classpath>
3261- </taskdef>
3262-
3263- <condition property="setup.addNativeNVidiaCG">
3264- <or>
3265- <isset property="${isWindows}" />
3266- <isset property="${isOSX}" />
3267- <isset property="${isX11}" />
3268- </or>
3269- </condition>
3270-
3271- <!-- ================================================================== -->
3272- <!--
3273- - Base initialization and detection of operating system.
3274- -->
3275- <target name="partitioning.setup" depends="common.init">
3276- <property name="java.part.gluegen-gl"
3277- value="com/jogamp/gluegen/opengl/** com/jogamp/gluegen/runtime/opengl/*"/>
3278-
3279- <property name="java.part.core"
3280- value="javax/media/opengl/* javax/media/opengl/fixedfunc/* javax/media/opengl/glu/* javax/media/opengl/glu/gl2es1/* com/jogamp/gluegen/runtime/opengl/* com/jogamp/opengl/* jogamp/opengl/* jogamp/opengl/glu/* jogamp/opengl/glu/error/*"/>
3281- <property name="java.part.core.exclude" value="javax/media/opengl/Debug* javax/media/opengl/Trace*"/>
3282-
3283- <property name="java.part.nv-cg"
3284- value="com/jogamp/opengl/cg com/jogamp/opengl/cg/* jogamp/opengl/cg/*"/>
3285-
3286- <property name="java.part.egl"
3287- value="jogamp/opengl/egl/*"/>
3288-
3289- <property name="java.part.glutess"
3290- value="jogamp/opengl/glu/tessellator/**"/>
3291-
3292- <property name="java.part.glumipmap"
3293- value="jogamp/opengl/glu/mipmap/**"/>
3294-
3295- <property name="java.part.glugldesktop"
3296- value="jogamp/opengl/glu/gl2/** jogamp/opengl/glu/nurbs/** jogamp/opengl/glu/registry/** javax/media/opengl/glu/gl2/**"/>
3297-
3298- <property name="java.part.openmax"
3299- value="com/jogamp/openmax/** jogamp/openmax/**"/>
3300-
3301- <property name="java.part.sdk"
3302- value="com/jogamp/opengl/util/glsl/sdk/**"/>
3303-
3304- <property name="java.part.glx"
3305- value="jogamp/opengl/x11/glx/*"/>
3306-
3307- <property name="java.part.wgl"
3308- value="jogamp/opengl/windows/wgl/*"/>
3309-
3310- <property name="java.part.cgl"
3311- value="jogamp/opengl/macosx/cgl/*"/>
3312-
3313- <property name="java.part.gldesktop"
3314- value="jogamp/opengl/**/gl2/** jogamp/opengl/**/gl3/** jogamp/opengl/**/gl4/**"/>
3315-
3316- <property name="java.part.gldesktop.dbg"
3317- value="javax/media/opengl/TraceGL2.* javax/media/opengl/DebugGL2.* javax/media/opengl/TraceGL2GL3.* javax/media/opengl/DebugGL2GL3.* javax/media/opengl/TraceGL3.* javax/media/opengl/DebugGL3.* javax/media/opengl/TraceGL3bc.* javax/media/opengl/DebugGL3bc.* javax/media/opengl/TraceGL4.* javax/media/opengl/DebugGL4.* javax/media/opengl/TraceGL4bc.* javax/media/opengl/DebugGL4bc.*"/>
3318-
3319- <property name="java.part.es1"
3320- value="javax/media/opengl/**/es1/** com/jogamp/opengl/**/es1/** jogamp/opengl/**/es1/**"/>
3321-
3322- <property name="java.part.es1.dbg"
3323- value="javax/media/opengl/TraceGLES1.* javax/media/opengl/DebugGLES1.* javax/media/opengl/TraceGL2ES1.* javax/media/opengl/DebugGL2ES1.*"/>
3324-
3325- <property name="java.part.es2"
3326- value="javax/media/opengl/**/es2/** com/jogamp/opengl/**/es2/** jogamp/opengl/**/es2/**"/>
3327-
3328- <property name="java.part.es2.dbg"
3329- value="javax/media/opengl/TraceGLES2.* javax/media/opengl/DebugGLES2.* javax/media/opengl/TraceGL2ES2.* javax/media/opengl/DebugGL2ES2.*"/>
3330-
3331- <property name="java.part.awt"
3332- value="javax/media/opengl/awt/** jogamp/opengl/**/awt/**"/>
3333-
3334- <property name="java.part.util"
3335- value="com/jogamp/opengl/util/* com/jogamp/opengl/util/texture/** com/jogamp/opengl/util/packrect/** jogamp/opengl/util/*"/>
3336-
3337- <property name="java.part.util.awt"
3338- value="com/jogamp/opengl/util/**/awt/** com/jogamp/opengl/util/AWTAnimatorImpl*"/>
3339-
3340- <property name="java.part.util.gldesktop"
3341- value="com/jogamp/opengl/util/**/gl2/**"/>
3342-
3343- <property name="java.part.util.glsl"
3344- value="com/jogamp/opengl/util/glsl/* com/jogamp/opengl/util/glsl/fixedfunc/* jogamp/opengl/util/glsl/*"/>
3345-
3346- <property name="java.part.util.graph"
3347- value="com/jogamp/graph/** jogamp/graph/**"/>
3348-
3349- <property name="java.part.util.graph.fonts"
3350- value="jogamp/graph/font/fonts/**"/>
3351-
3352- <property name="java.part.util.graph.shadercode"
3353- value="jogamp/graph/curve/opengl/shader/* jogamp/graph/curve/opengl/shader/bin/**"/>
3354-
3355- <property name="java.part.util.fixedfuncemu"
3356- value="jogamp/opengl/util/glsl/fixedfunc/**"/>
3357-
3358- <property name="java.part.util.fixedfuncemu.shadercode"
3359- value="jogamp/opengl/util/glsl/fixedfunc/shaders/* jogamp/opengl/util/glsl/fixedfunc/shaders/bin/**"/>
3360-
3361- <property name="java.part.nonjava"
3362- value="${java.part.util.fixedfuncemu.shadercode} ${java.part.util.graph.shadercode} ${java.part.util.graph.fonts}"/>
3363-
3364- <property name="java.part.all-desktop"
3365- value="${java.part.sdk} ${java.part.glx} ${java.part.wgl} ${java.part.cgl} ${java.part.gldesktop} ${java.part.glugldesktop} ${java.part.util.gldesktop}"/>
3366-
3367- <!-- condition excludes -->
3368-
3369- <condition property="java.excludes.awt"
3370- value="${java.part.awt} ${java.part.util.awt}">
3371- <isset property="setup.noAWT"/>
3372- </condition>
3373-
3374- <property name="java.excludes.javadoc.packagenames"
3375- value="jogamp.opengl.gl2.fixme.*,com.jogamp.audio.windows.waveout.TestSpatialization"/>
3376-
3377- <property name="java.excludes.fixme"
3378- value="jogamp/opengl/gl2/fixme/** com/jogamp/audio/windows/waveout/TestSpatialization.java" />
3379-
3380- <property name="java.excludes.all" value="${java.excludes.fixme} ${java.excludes.awt}" />
3381- <echo message="java.excludes.all: ${java.excludes.all}" />
3382- </target>
3383-
3384- <!-- ================================================================== -->
3385- <!--
3386- - Declare all paths and user defined variables.
3387- -->
3388- <target name="declare.common" description="Declare properties" depends="partitioning.setup">
3389- <property name="config.jogl" value="${config}/jogl" />
3390-
3391- <property name="rootrel.src.java" value="src/jogl/classes" />
3392- <property name="rootrel.src.c" value="src/jogl/native" />
3393- <property name="rootrel.src.c.openmax" value="src/jogl/native/openmax" />
3394-
3395- <property name="rootrel.src.generated" value="${rootrel.build}/jogl/gensrc" />
3396- <property name="rootrel.generated.c.jogl" value="${rootrel.src.generated}/native/jogl" />
3397- <property name="rootrel.generated.c.cg" value="${rootrel.src.generated}/native/jogl_cg" />
3398-
3399- <!-- The source directories. -->
3400- <property name="src.java" value="${project.root}/${rootrel.src.java}" />
3401- <property name="src.c" value="${project.root}/${rootrel.src.c}" />
3402-
3403- <!-- The generated source directories. -->
3404- <property name="src.generated" value="${build.jogl}/gensrc" />
3405- <property name="src.generated.java" value="${src.generated}/classes" />
3406- <property name="src.generated.java.cg" value="${src.generated.java}/com/jogamp/opengl/cg" />
3407- <property name="src.generated.c" value="${src.generated}/native/jogl" />
3408- <property name="src.generated.c.openmax" value="${src.generated}/native/openmax" />
3409- <property name="src.generated.c.cg" value="${src.generated}/native/jogl_cg" />
3410-
3411- <!-- The compiler output directories. -->
3412- <property name="classes" value="${build.jogl}/classes" />
3413- <property name="obj.joglsub" value="${obj.jogl}/jogl" />
3414- <property name="obj.cgsub" value="${obj.jogl}/cg" />
3415-
3416- <property name="javah.classpath" value="${gluegen-rt.jar}:${build.nativewindow}/classes:${classes}" />
3417-
3418- <!-- The GL headers from which Java files are generated -->
3419- <property name="stub.includes.opengl" value="${stub.includes}/opengl" />
3420-
3421- <dirset id="stub.includes.fileset.all.gldesktop" dir=".">
3422- <include name="${stub.includes}/opengl/**" />
3423- <include name="${stub.includes}/macosx/**" />
3424- <include name="${stub.includes}/win32/**" />
3425- <include name="${stub.includes}/x11/**" />
3426- <include name="${stub.includes}/khr/**" />
3427- <include name="${stub.includes}/jni/**" />
3428- </dirset>
3429-
3430- <fileset id="stub.includes.dependencies.fileset.1" dir="${stub.includes}">
3431- <include name="opengl/**" />
3432- <include name="macosx/**" />
3433- <include name="win32/**" />
3434- <include name="x11/**" />
3435- <include name="common/**" />
3436- <include name="jni/**" />
3437- </fileset>
3438- <fileset id="stub.includes.dependencies.fileset.2" file="${gluegen.jar}" />
3439- <fileset id="stub.includes.dependencies.fileset.3" dir="${config.jogl}">
3440- <include name="*.cfg" />
3441- <include name="gl*.java" />
3442- <include name="*.c" />
3443- <exclude name="cg-common.cfg" />
3444- </fileset>
3445- <dirset id="stub.includes.cg.fileset.all" dir=".">
3446- <include name="${stub.includes}/opengl/**" />
3447- <include name="${stub.includes}/cg/**" />
3448- <include name="${stub.includes}/macosx/**" />
3449- <include name="${stub.includes}/win32/**" />
3450- <include name="${stub.includes}/x11/**" />
3451- <include name="${stub.includes}/khr/**" />
3452- <include name="${stub.includes}/jni/**" />
3453- </dirset>
3454- <fileset id="stub.includes.cg.dependencies.fileset" dir=".">
3455- <include name="${stub.includes}/cg/**" />
3456- <include name="${config.jogl}/cg-common.cfg" />
3457- <include name="${config.jogl}/cg-common-CustomJavaCode.java" />
3458- </fileset>
3459-
3460- <!-- Create the classpath that includes GlueGen and
3461- - the current classes for building the composable pipelines.
3462- -->
3463- <path id="pipeline.classpath">
3464- <pathelement location="${gluegen.jar}" />
3465- <pathelement location="${classes}" />
3466- </path>
3467-
3468- <!-- The javadoc dirs. -->
3469- <property name="javadoc" value="${project.root}/javadoc_jogl_public" />
3470- <property name="javadoc.spec" value="${project.root}/javadoc_jogl_spec" />
3471- <property name="javadoc.dev" value="${project.root}/javadoc_jogl_dev" />
3472- <property name="javadoc.windowtitle" value="JOGL API -- JSR-231 ${jogl_base_version} Specification" />
3473- <property name="javadoc.overview" value="doc/jogl/spec-overview.html" />
3474- <property name="javadoc.spec.packagenames" value="javax.media.opengl.*" />
3475-
3476- <property name="javadoc.packagenames" value="${javadoc.spec.packagenames},com.jogamp.opengl.util.*" />
3477-
3478- <property name="javadoc.dev.packagenames" value="${javadoc.packagenames},jogamp.opengl.*,com.jogamp.gluegen,com.jogamp.gluegen.runtime" />
3479- <property name="javadoc.bottom" value="Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to &lt;a href=&quot;http://jcp.org/en/jsr/detail?id=231&quot;&gt;license terms&lt;/a&gt;." />
3480- </target>
3481-
3482- <target name="declare.gl.gles1">
3483- <property name="gles1.headers" value="${stub.includes}/opengl/GLES/*.h" /> <!-- NOTE: this MUST be relative for FileSet --> <!-- CHECK: this may need to be pruned for each platform -->
3484- </target>
3485-
3486- <target name="declare.gl.gles2">
3487- <property name="gles2.headers" value="${stub.includes}/opengl/GLES2/*.h" /> <!-- NOTE: this MUST be relative for FileSet --> <!-- CHECK: this may need to be pruned for each platform -->
3488- </target>
3489-
3490- <target name="declare.gl.gles" depends="declare.gl.gles1, declare.gl.gles2">
3491- <!-- Prepare to build the EGL interface -->
3492- <property name="window.es.cfg" value="${config.jogl}/egl.cfg" />
3493- <property name="window.es.ext.cfg" value="${config.jogl}/eglext.cfg" />
3494- <property name="window.es.system" value="egl"/>
3495- </target>
3496-
3497- <target name="declare.gl.gl2">
3498- <property name="gl2.headers" value="${stub.includes}/opengl/GL/*.h" /> <!-- NOTE: this MUST be relative for FileSet --> <!-- CHECK: this may need to be pruned for each platform -->
3499- </target>
3500-
3501- <!-- ================================================================== -->
3502- <!--
3503- - Initialize all parameters required for the build and create any
3504- - required directories.
3505- -->
3506- <target name="init" depends="declare.common, declare.gl.gles, declare.gl.gl2">
3507- <!-- Create the required output directories. -->
3508- <mkdir dir="${src.generated.java}" />
3509- <mkdir dir="${src.generated.c}" />
3510- <mkdir dir="${src.generated.c}/MacOSX" />
3511- <mkdir dir="${src.generated.c}/Windows" />
3512- <mkdir dir="${src.generated.c}/X11" />
3513- <mkdir dir="${src.generated.c.openmax}" />
3514- <mkdir dir="${classes}" />
3515- <mkdir dir="${obj.jogl}" />
3516- <mkdir dir="${obj.joglsub}" />
3517- <mkdir dir="${obj.cgsub}" />
3518- </target>
3519-
3520- <!--
3521- - Check to see whether we need to rebuild the generated sources.
3522- -->
3523- <target name="java.generate.check">
3524- <!-- Blow away all target files if any dependencies are violated
3525- (the uptodate task doesn't allow arbitrary source and target filesets but should) -->
3526- <!--
3527- <dependset>
3528- <srcfileset refid="stub.includes.dependencies.fileset.1" />
3529- <srcfileset refid="stub.includes.dependencies.fileset.2" />
3530- <srcfileset refid="stub.includes.dependencies.fileset.3" />
3531- <targetfileset dir="${src.generated}">
3532- <include name="**/*.java" />
3533- <include name="**/*.c" />
3534- </targetfileset>
3535- </dependset>
3536- -->
3537-
3538- <!-- Now check for the presence of one well-known file -->
3539- <uptodate property="java.generate.skip.es1"
3540- targetfile="${src.generated.java}/javax/media/opengl/GLES1.java">
3541- <srcfiles refid="stub.includes.dependencies.fileset.1" />
3542- <srcfiles refid="stub.includes.dependencies.fileset.2" />
3543- <srcfiles refid="stub.includes.dependencies.fileset.3" />
3544- </uptodate>
3545- <uptodate property="java.generate.skip.es2"
3546- targetfile="${src.generated.java}/javax/media/opengl/GLES2.java">
3547- <srcfiles refid="stub.includes.dependencies.fileset.1" />
3548- <srcfiles refid="stub.includes.dependencies.fileset.2" />
3549- <srcfiles refid="stub.includes.dependencies.fileset.3" />
3550- </uptodate>
3551- <uptodate property="java.generate.skip.gl2"
3552- targetfile="${src.generated.java}/javax/media/opengl/GL2.java">
3553- <srcfiles refid="stub.includes.dependencies.fileset.1" />
3554- <srcfiles refid="stub.includes.dependencies.fileset.2" />
3555- <srcfiles refid="stub.includes.dependencies.fileset.3" />
3556- </uptodate>
3557- <uptodate property="java.generate.skip.glu"
3558- targetfile="${src.generated.java}/javax/media/opengl/glu/GLU.java">
3559- <srcfiles refid="stub.includes.dependencies.fileset.1" />
3560- <srcfiles refid="stub.includes.dependencies.fileset.2" />
3561- <srcfiles refid="stub.includes.dependencies.fileset.3" />
3562- </uptodate>
3563-
3564- <condition property="java.generate.skip">
3565- <and>
3566- <isset property="java.generate.skip.es1"/>
3567- <isset property="java.generate.skip.es2"/>
3568- <isset property="java.generate.skip.gl2"/>
3569- <isset property="java.generate.skip.glu"/>
3570- </and>
3571- </condition>
3572-
3573- <!--property name="java.generate.skip" value="true"/-->
3574- </target>
3575-
3576- <target name="java.generate.cleantemp">
3577- <delete includeEmptyDirs="true" quiet="true">
3578- <fileset dir="${tempdir}/gensrc" />
3579- </delete>
3580- </target>
3581-
3582- <target name="java.generate.copy2temp">
3583- <copy todir="${tempdir}">
3584- <fileset dir="${build.jogl}"
3585- includes="gensrc/classes/**" />
3586- </copy>
3587- </target>
3588-
3589- <target name="java.generate.gl_if">
3590- <echo message="Generating GL interface" />
3591- <antcall target="java.generate.copy2temp" inheritRefs="true" />
3592- <gluegen src="${stub.includes.opengl}/gles2.c"
3593- outputRootDir="${build.jogl}"
3594- config="${config.jogl}/gl-if-gl.cfg"
3595- includeRefid="stub.includes.fileset.all.gldesktop"
3596- literalInclude="${stub.includes.gluegen.gg}"
3597- emitter="com.jogamp.gluegen.opengl.GLEmitter"
3598- debug="false">
3599- <classpath refid="gluegen-gl.classpath" />
3600- </gluegen>
3601- </target>
3602-
3603- <target name="java.generate.gl2_es1_if">
3604- <echo message="Generating GL2_ES1 interface" />
3605- <antcall target="java.generate.copy2temp" inheritRefs="true" />
3606- <gluegen src="${stub.includes.opengl}/gles1.c"
3607- outputRootDir="${build.jogl}"
3608- config="${config.jogl}/gl-if-gl2_es1.cfg"
3609- includeRefid="stub.includes.fileset.all.gldesktop"
3610- literalInclude="${stub.includes.gluegen.gg}"
3611- emitter="com.jogamp.gluegen.opengl.GLEmitter">
3612- <classpath refid="gluegen-gl.classpath" />
3613- </gluegen>
3614- </target>
3615-
3616- <target name="java.generate.gl2_es2_if">
3617- <echo message="Generating GL2_ES2 interface" />
3618- <antcall target="java.generate.copy2temp" inheritRefs="true" />
3619- <gluegen src="${stub.includes.opengl}/gles2.c"
3620- outputRootDir="${build.jogl}"
3621- config="${config.jogl}/gl-if-gl2_es2.cfg"
3622- includeRefid="stub.includes.fileset.all.gldesktop"
3623- literalInclude="${stub.includes.gluegen.gg}"
3624- emitter="com.jogamp.gluegen.opengl.GLEmitter">
3625- <classpath refid="gluegen-gl.classpath" />
3626- </gluegen>
3627- </target>
3628-
3629- <target name="java.generate.gl2_gl3_if">
3630- <echo message="Generating GL2_GL3 interface" />
3631- <antcall target="java.generate.copy2temp" inheritRefs="true" />
3632- <gluegen src="${stub.includes.opengl}/gl3.c"
3633- outputRootDir="${build.jogl}"
3634- config="${config.jogl}/gl-if-gl3-subset.cfg"
3635- includeRefid="stub.includes.fileset.all.gldesktop"
3636- literalInclude="${stub.includes.gluegen.gg}"
3637- emitter="com.jogamp.gluegen.opengl.GLEmitter"
3638- debug="false">
3639- <classpath refid="gluegen-gl.classpath" />
3640- </gluegen>
3641- <gluegen src="${stub.includes.opengl}/gl2.c"
3642- outputRootDir="${build.jogl}"
3643- config="${config.jogl}/gl-if-gl2_gl3.cfg"
3644- includeRefid="stub.includes.fileset.all.gldesktop"
3645- literalInclude="${stub.includes.gluegen.gg}"
3646- emitter="com.jogamp.gluegen.opengl.GLEmitter">
3647- <classpath refid="gluegen-gl.classpath" />
3648- </gluegen>
3649- </target>
3650-
3651- <target name="java.generate.gl2">
3652- <echo message="Generating GL2 interface and implementation" />
3653- <antcall target="java.generate.copy2temp" inheritRefs="true" />
3654- <gluegen src="${stub.includes.opengl}/gl2.c"
3655- outputRootDir="${build.jogl}"
3656- config="${config.jogl}/gl-if-gl2.cfg"
3657- includeRefid="stub.includes.fileset.all.gldesktop"
3658- literalInclude="${stub.includes.gluegen.gg}"
3659- emitter="com.jogamp.gluegen.opengl.GLEmitter">
3660- <classpath refid="gluegen-gl.classpath" />
3661- </gluegen>
3662- </target>
3663-
3664- <target name="java.generate.gl3">
3665- <echo message="Generating GL3 interface and implementation" />
3666- <antcall target="java.generate.copy2temp" inheritRefs="true" />
3667- <gluegen src="${stub.includes.opengl}/gl3.c"
3668- outputRootDir="${build.jogl}"
3669- config="${config.jogl}/gl-if-gl3.cfg"
3670- includeRefid="stub.includes.fileset.all.gldesktop"
3671- literalInclude="${stub.includes.gluegen.gg}"
3672- emitter="com.jogamp.gluegen.opengl.GLEmitter">
3673- <classpath refid="gluegen-gl.classpath" />
3674- </gluegen>
3675- </target>
3676-
3677- <target name="java.generate.gl3bc">
3678- <echo message="Generating GL3bc implementation" />
3679- <antcall target="java.generate.copy2temp" inheritRefs="true" />
3680- <gluegen src="${stub.includes.opengl}/gl3bc.c"
3681- outputRootDir="${build.jogl}"
3682- config="${config.jogl}/gl-if-gl3bc.cfg"
3683- includeRefid="stub.includes.fileset.all.gldesktop"
3684- literalInclude="${stub.includes.gluegen.gg}"
3685- emitter="com.jogamp.gluegen.opengl.GLEmitter">
3686- <classpath refid="gluegen-gl.classpath" />
3687- </gluegen>
3688- </target>
3689-
3690- <target name="java.generate.gl4">
3691- <echo message="Generating GL4 interface and implementation" />
3692- <antcall target="java.generate.copy2temp" inheritRefs="true" />
3693- <gluegen src="${stub.includes.opengl}/gl4.c"
3694- outputRootDir="${build.jogl}"
3695- config="${config.jogl}/gl-if-gl4.cfg"
3696- includeRefid="stub.includes.fileset.all.gldesktop"
3697- literalInclude="${stub.includes.gluegen.gg}"
3698- emitter="com.jogamp.gluegen.opengl.GLEmitter">
3699- <classpath refid="gluegen-gl.classpath" />
3700- </gluegen>
3701- </target>
3702-
3703- <target name="java.generate.gl4bc">
3704- <echo message="Generating GL4bc implementation" />
3705- <antcall target="java.generate.copy2temp" inheritRefs="true" />
3706- <gluegen src="${stub.includes.opengl}/gl4bc.c"
3707- outputRootDir="${build.jogl}"
3708- config="${config.jogl}/gl-gl4bc.cfg"
3709- includeRefid="stub.includes.fileset.all.gldesktop"
3710- literalInclude="${stub.includes.gluegen.gg}"
3711- emitter="com.jogamp.gluegen.opengl.GLEmitter"
3712- debug="false">
3713- <classpath refid="gluegen-gl.classpath" />
3714- </gluegen>
3715- </target>
3716-
3717- <target name="java.generate.gles1">
3718- <echo message="Generating GLES1 interface and implementation" />
3719- <antcall target="java.generate.copy2temp" inheritRefs="true" />
3720- <gluegen src="${stub.includes.opengl}/gles1.c"
3721- outputRootDir="${build.jogl}"
3722- config="${config.jogl}/gl-es1.cfg"
3723- includeRefid="stub.includes.fileset.all.gldesktop"
3724- literalInclude="${stub.includes.gluegen.gg}"
3725- emitter="com.jogamp.gluegen.opengl.GLEmitter"
3726- debug="false">
3727- <classpath refid="gluegen-gl.classpath" />
3728- </gluegen>
3729- </target>
3730-
3731- <target name="java.generate.gles2">
3732- <echo message="Generating GLES2 interface and implementation" />
3733- <antcall target="java.generate.copy2temp" inheritRefs="true" />
3734- <gluegen src="${stub.includes.opengl}/gles2.c"
3735- outputRootDir="${build.jogl}"
3736- config="${config.jogl}/gl-es2.cfg"
3737- includeRefid="stub.includes.fileset.all.gldesktop"
3738- literalInclude="${stub.includes.gluegen.gg}"
3739- emitter="com.jogamp.gluegen.opengl.GLEmitter">
3740- <classpath refid="gluegen-gl.classpath" />
3741- </gluegen>
3742- </target>
3743-
3744- <target name="java.generate.gl.all" depends="java.generate.gl_if, java.generate.gl2_es1_if, java.generate.gl2_es2_if, java.generate.gl2_gl3_if, java.generate.gl2, java.generate.gl3, java.generate.gl3bc, java.generate.gl4, java.generate.gl4bc, java.generate.gles1, java.generate.gles2"/>
3745-
3746- <!-- target name="java.generate.gl.nsig" if="gluegen.nsig">
3747- <echo message="Generating GL interface and implementation" />
3748- <gluegen src="${gl.c}"
3749- config="${gl.cfg.nsig}"
3750- includeRefid="stub.includes.fileset.all.gldesktop"
3751- literalInclude="${stub.includes.gluegen.gg}"
3752- emitter="com.jogamp.gluegen.nativesig.NativeSignatureEmitter">
3753- <classpath refid="gluegen-gl.classpath" />
3754- </gluegen>
3755- </target> -->
3756-
3757- <target name="java.generate.glu.base">
3758- <echo message="Generating GLU class" />
3759- <antcall target="java.generate.copy2temp" inheritRefs="true" />
3760- <gluegen src="${stub.includes.opengl}/glu.c"
3761- outputRootDir="${build.jogl}"
3762- config="${config.jogl}/glu-base.cfg"
3763- includeRefid="stub.includes.fileset.all.gldesktop"
3764- literalInclude="${stub.includes.gluegen.gg}"
3765- emitter="com.jogamp.gluegen.opengl.GLEmitter">
3766- <classpath refid="gluegen-gl.classpath" />
3767- </gluegen>
3768- </target>
3769-
3770- <target name="java.generate.glu.GL2ES1">
3771- <echo message="Generating GLU class" />
3772- <antcall target="java.generate.copy2temp" inheritRefs="true" />
3773- <gluegen src="${stub.includes.opengl}/glu.c"
3774- outputRootDir="${build.jogl}"
3775- config="${config.jogl}/glu-gl2es1.cfg"
3776- includeRefid="stub.includes.fileset.all.gldesktop"
3777- literalInclude="${stub.includes.gluegen.gg}"
3778- emitter="com.jogamp.gluegen.opengl.GLEmitter">
3779- <classpath refid="gluegen-gl.classpath" />
3780- </gluegen>
3781- </target>
3782-
3783- <target name="java.generate.glu.GL2">
3784- <echo message="Generating GLU class" />
3785- <antcall target="java.generate.copy2temp" inheritRefs="true" />
3786- <gluegen src="${stub.includes.opengl}/glu.c"
3787- outputRootDir="${build.jogl}"
3788- config="${config.jogl}/glu-gl2.cfg"
3789- includeRefid="stub.includes.fileset.all.gldesktop"
3790- literalInclude="${stub.includes.gluegen.gg}"
3791- emitter="com.jogamp.gluegen.opengl.GLEmitter">
3792- <classpath refid="gluegen-gl.classpath" />
3793- </gluegen>
3794- </target>
3795-
3796- <target name="java.generate.platform.glext">
3797- <echo message="Generating platform-specific OpenGL extension class: ${window.os.system}" />
3798- <antcall target="java.generate.copy2temp" inheritRefs="true" />
3799- <gluegen src="${glext.platform.header}"
3800- outputRootDir="${build.jogl}"
3801- config="${glext.platform.cfg}"
3802- includeRefid="stub.includes.fileset.all.gldesktop"
3803- literalInclude="${stub.includes.gluegen.gg}"
3804- emitter="com.jogamp.gluegen.opengl.GLEmitter">
3805- <classpath refid="gluegen-gl.classpath" />
3806- </gluegen>
3807- </target>
3808-
3809- <target name="java.generate.window.system.es" if="window.es.cfg">
3810- <echo message="Generating EGL implementation class" />
3811- <antcall target="java.generate.copy2temp" inheritRefs="true" />
3812- <dirset id="stub.includes.fileset.platform" dir="." includes="${stub.includes}/${window.es.system}/** ${stub.includes}/gluegen/** ${stub.includes}/khr/**" />
3813- <gluegen src="${stub.includes}/${window.es.system}/window-system1.c"
3814- outputRootDir="${build.jogl}"
3815- config="${window.es.cfg}"
3816- includeRefid="stub.includes.fileset.platform"
3817- literalInclude="${stub.includes.gluegen.gg}"
3818- emitter="com.jogamp.gluegen.opengl.GLEmitter"
3819- debug="false">
3820- <classpath refid="gluegen-gl.classpath" />
3821- </gluegen>
3822- </target>
3823-
3824- <target name="java.generate.window.system.es.ext" if="window.es.ext.cfg">
3825- <echo message="Generating EGLExt implementation class" />
3826- <antcall target="java.generate.copy2temp" inheritRefs="true" />
3827- <dirset id="stub.includes.fileset.platform" dir="." includes="${stub.includes}/${window.es.system}/** ${stub.includes}/gluegen/** ${stub.includes}/khr/**" />
3828- <gluegen src="${stub.includes}/${window.es.system}/window-system-ext.c"
3829- outputRootDir="${build.jogl}"
3830- config="${window.es.ext.cfg}"
3831- includeRefid="stub.includes.fileset.platform"
3832- literalInclude="${stub.includes.gluegen.gg}"
3833- emitter="com.jogamp.gluegen.opengl.GLEmitter"
3834- debug="false">
3835- <classpath refid="gluegen-gl.classpath" />
3836- </gluegen>
3837- </target>
3838-
3839- <target name="java.generate.window.system.os0" if="window.os0.cfg">
3840- <echo message="Generating window system glue impl: ${window.os.system}" />
3841- <antcall target="java.generate.copy2temp" inheritRefs="true" />
3842- <gluegen src="${stub.includes}/${window.os.system}/window-system0.c"
3843- outputRootDir="${build.jogl}"
3844- config="${window.os0.cfg}"
3845- includeRefid="stub.includes.fileset.platform"
3846- literalInclude="${stub.includes.gluegen.gg}"
3847- emitter="com.jogamp.gluegen.opengl.GLEmitter">
3848- <classpath refid="gluegen-gl.classpath" />
3849- </gluegen>
3850- </target>
3851-
3852- <target name="java.generate.window.system.os1" if="window.os1.cfg">
3853- <echo message="Generating window system glue impl: ${window.os.system}" />
3854- <antcall target="java.generate.copy2temp" inheritRefs="true" />
3855- <gluegen src="${stub.includes}/${window.os.system}/window-system1.c"
3856- outputRootDir="${build.jogl}"
3857- config="${window.os1.cfg}"
3858- includeRefid="stub.includes.fileset.platform"
3859- literalInclude="${stub.includes.gluegen.gg}"
3860- emitter="com.jogamp.gluegen.opengl.GLEmitter">
3861- <classpath refid="gluegen-gl.classpath" />
3862- </gluegen>
3863- </target>
3864-
3865- <target name="java.generate.gl.platforms" >
3866- <dirset id="stub.includes.fileset.platform" dir="." includes="${stub.includes}/${window.os.system}/** ${stub.includes}/${window.es.system}/** ${stub.includes}/gluegen/** ${stub.includes}/khr/** ${stub.includes}/opengl/**" />
3867-
3868- <antcall target="java.generate.window.system.os0" inheritRefs="true" />
3869- <antcall target="java.generate.window.system.os1" inheritRefs="true" />
3870- <antcall target="java.generate.platform.glext" inheritRefs="true" />
3871- </target>
3872-
3873- <!--
3874- - Setup the generating ANT tasks and use it to generate the Java files
3875- - from the C GL headers. This involves setting the taskdef and creating
3876- - the classpath reference id then running the task on each header.
3877- -->
3878- <target name="build.gluegen-gl.jar" depends="init, common.gluegen.build, setup-manifestfile">
3879- <javac destdir="${classes}"
3880- includes="${java.part.gluegen-gl}"
3881- fork="yes"
3882- memoryMaximumSize="${javac.memorymax}"
3883- includeAntRuntime="true"
3884- source="${target.sourcelevel}" debug="${javacdebug}" debuglevel="${javacdebuglevel}">
3885- <classpath refid="gluegen-gl.classpath"/>
3886- <src path="${src.java}" />
3887- </javac>
3888-
3889- <jar manifest="${build.jogl}/manifest.mf" destfile="${gluegen-gl.jar}" filesonly="true">
3890- <fileset dir="${classes}"
3891- includes="${java.part.gluegen-gl}"/>
3892- </jar>
3893- </target>
3894-
3895- <target name="java.generate" depends="build.gluegen-gl.jar, java.generate.check" unless="java.generate.skip">
3896-
3897- <!-- Add the GlueGen and BuildStaticGLInfo tasks to ANT -->
3898- <taskdef name="gluegen" classname="com.jogamp.gluegen.ant.GlueGenTask"
3899- classpathref="gluegen.classpath" />
3900- <taskdef name="staticglgen" classname="com.jogamp.gluegen.opengl.ant.StaticGLGenTask"
3901- classpathref="gluegen-gl.classpath" />
3902-
3903- <!-- Use the GlueGen and BuildStaticGLInfo tasks to generate the Java files -->
3904-
3905- <!-- Just to have a fast test of single interfaces ..
3906- <antcall target="java.generate.gl_if" inheritRefs="true" />
3907- <antcall target="java.generate.gl2_es1_if" inheritRefs="true" />
3908- <antcall target="java.generate.gl2_es2_if" inheritRefs="true" />
3909- <antcall target="java.generate.gl2_gl3_if" inheritRefs="true" />
3910- <antcall target="java.generate.gles1" inheritRefs="true"/>
3911- <antcall target="java.generate.window.system.es" inheritRefs="true" />
3912- <antcall target="java.generate.window.system.es.ext" inheritRefs="true" />
3913- <antcall target="java.generate.gl4bc" inheritRefs="true"/>
3914- <fail/> -->
3915-
3916- <echo message="Generating GL interface and implementation" />
3917- <antcall target="java.generate.gl.all" inheritRefs="true" />
3918- <!--antcall target="java.generate.gl.nsig" inheritRefs="true" /-->
3919-
3920- <antcall target="java.generate.window.system.es" inheritRefs="true" />
3921- <antcall target="java.generate.window.system.es.ext" inheritRefs="true" />
3922-
3923- <antcall target="java.generate.gl.platforms" inheritRefs="true">
3924- <param name="window.os.system" value="x11"/>
3925- <param name="window.os1.cfg" value="${config.jogl}/glx-x11.cfg" />
3926- <param name="glext.platform.cfg" value="${config.jogl}/glxext.cfg" />
3927- <param name="glext.platform.header" value="${stub.includes}/x11/glxext.c" />
3928- </antcall>
3929-
3930- <antcall target="java.generate.gl.platforms" inheritRefs="true">
3931- <param name="window.os.system" value="win32"/>
3932- <param name="window.os1.cfg" value="${config.jogl}/wgl-win32.cfg" />
3933- <param name="glext.platform.cfg" value="${config.jogl}/wglext.cfg" />
3934- <param name="glext.platform.header" value="${stub.includes}/win32/wglext.c" />
3935- </antcall>
3936-
3937- <antcall target="java.generate.gl.platforms" inheritRefs="true">
3938- <param name="window.os.system" value="macosx"/>
3939- <param name="window.os1.cfg" value="${config.jogl}/cgl-macosx.cfg" />
3940- <param name="glext.platform.cfg" value="${config.jogl}/cglext.cfg" />
3941- <param name="glext.platform.header" value="${stub.includes}/macosx/cglext.c" />
3942- </antcall>
3943-
3944- <!-- Generate GLU class -->
3945- <antcall target="java.generate.glu.base" inheritrefs="true" />
3946- <antcall target="java.generate.glu.GL2ES1" inheritrefs="true" />
3947- <antcall target="java.generate.glu.GL2" inheritrefs="true" />
3948-
3949- <!-- Inform the user that the generators have successfully created
3950- - the necessary Java files -->
3951- <echo message="" />
3952- <echo message="GlueGen and BuildStaticGLInfo have successfully generated files." />
3953-
3954- </target>
3955-
3956- <target name="java.generate.cg.check">
3957- <!-- Blow away all target files if any dependencies are violated
3958- (the uptodate task doesn't allow arbitrary source and target filesets but should) -->
3959- <dependset>
3960- <srcfileset refid="stub.includes.cg.dependencies.fileset" />
3961- <targetfileset dir=".">
3962- <include name="${src.generated.java.cg}/**/*.java" />
3963- <include name="${src.generated.c.cg}/**/*.c" />
3964- </targetfileset>
3965- </dependset>
3966-
3967- <!-- Now check for the presence of one well-known file -->
3968- <uptodate property="java.generate.cg.skip">
3969- <srcfiles refid="stub.includes.cg.dependencies.fileset" />
3970- <mapper type="merge" to="${src.generated.java}/com/jogamp/opengl/cg/CgGL.java" />
3971- </uptodate>
3972- </target>
3973-
3974- <!--
3975- - Setup the generating ANT tasks and use it to generate the Java files
3976- - from the C GL headers. This involves setting the taskdef and creating
3977- - the classpath reference id then running the task on each header.
3978- -->
3979- <target name="java.generate.cg" depends="build.gluegen-gl.jar,java.generate.cg.check" unless="java.generate.cg.skip">
3980- <!-- Add the GlueGen and BuildStaticGLInfo tasks to ANT -->
3981- <taskdef name="gluegen" classname="com.jogamp.gluegen.ant.GlueGenTask"
3982- classpathref="gluegen.classpath" />
3983- <taskdef name="staticglgen" classname="com.jogamp.gluegen.opengl.ant.StaticGLGenTask"
3984- classpathref="gluegen-gl.classpath" />
3985-
3986- <!-- Generate CgGL interface class -->
3987- <gluegen src="${stub.includes.opengl}/cg.c"
3988- outputRootDir="${build.jogl}"
3989- config="${config.jogl}/cg-common.cfg"
3990- includeRefid="stub.includes.cg.fileset.all"
3991- literalInclude="${stub.includes.gluegen.gg}"
3992- emitter="com.jogamp.gluegen.procaddress.ProcAddressEmitter">
3993- <classpath refid="gluegen-gl.classpath" />
3994- </gluegen>
3995- </target>
3996-
3997- <!-- ================================================================== -->
3998- <!--
3999- - Build and dependency rules for the composable pipeline
4000- -->
4001- <target name="java.generate.composable.pipeline.check.es1">
4002- <!-- Blow away the DebugGL*.java and TraceGL*.java sources if GL*.class has changed
4003- (the uptodate element doesn't support arbitrary source and destination files) -->
4004- <dependset>
4005- <srcfilelist dir="${classes}/javax/media/opengl" files="GLES1.class" />
4006- <targetfileset dir="${src.generated.java}/javax/media/opengl"
4007- includes="DebugGLES1.java,TraceGLES1.java" />
4008- </dependset>
4009-
4010- <!-- Now choose one of the two to test to see if we have to regenerate -->
4011- <uptodate property="java.generate.composable.pipeline.skip.es1"
4012- srcfile="${classes}/javax/media/opengl/GLES1.class"
4013- targetfile="${src.generated.java}/javax/media/opengl/DebugGLES1.java" />
4014-
4015- </target>
4016-
4017- <target name="java.generate.composable.pipeline.check.es2">
4018- <!-- Blow away the DebugGL*.java and TraceGL*.java sources if GL*.class has changed
4019- (the uptodate element doesn't support arbitrary source and destination files) -->
4020- <dependset>
4021- <srcfilelist dir="${classes}/javax/media/opengl" files="GLES2.class" />
4022- <targetfileset dir="${src.generated.java}/javax/media/opengl"
4023- includes="DebugGLES2.java,TraceGLES2.java" />
4024- </dependset>
4025-
4026- <!-- Now choose one of the two to test to see if we have to regenerate -->
4027- <uptodate property="java.generate.composable.pipeline.skip.es2"
4028- srcfile="${classes}/javax/media/opengl/GLES2.class"
4029- targetfile="${src.generated.java}/javax/media/opengl/DebugGLES2.java" />
4030-
4031- </target>
4032-
4033- <target name="java.generate.composable.pipeline.check.gl2">
4034- <!-- Blow away the DebugGL*.java and TraceGL*.java sources if GL*.class has changed
4035- (the uptodate element doesn't support arbitrary source and destination files) -->
4036- <dependset>
4037- <srcfilelist dir="${classes}/javax/media/opengl" files="GL2.class" />
4038- <targetfileset dir="${src.generated.java}/javax/media/opengl"
4039- includes="DebugGL2.java,TraceGL2.java" />
4040- </dependset>
4041-
4042- <!-- Now choose one of the two to test to see if we have to regenerate -->
4043- <uptodate property="java.generate.composable.pipeline.skip.gl2"
4044- srcfile="${classes}/javax/media/opengl/GL2.class"
4045- targetfile="${src.generated.java}/javax/media/opengl/DebugGL2.java" />
4046- </target>
4047-
4048- <target name="java.generate.composable.pipeline.check.gl3">
4049- <!-- Blow away the DebugGL*.java and TraceGL*.java sources if GL*.class has changed
4050- (the uptodate element doesn't support arbitrary source and destination files) -->
4051- <dependset>
4052- <srcfilelist dir="${classes}/javax/media/opengl" files="GL3.class" />
4053- <targetfileset dir="${src.generated.java}/javax/media/opengl"
4054- includes="DebugGL3.java,TraceGL3.java,DebugGL3bc.java,TraceGL3bc.java" />
4055- </dependset>
4056-
4057- <!-- Now choose one of the two to test to see if we have to regenerate -->
4058- <uptodate property="java.generate.composable.pipeline.skip.gl3"
4059- srcfile="${classes}/javax/media/opengl/GL3.class"
4060- targetfile="${src.generated.java}/javax/media/opengl/DebugGL3.java" />
4061- </target>
4062-
4063- <target name="java.generate.composable.pipeline.check.gl4">
4064- <!-- Blow away the DebugGL*.java and TraceGL*.java sources if GL*.class has changed
4065- (the uptodate element doesn't support arbitrary source and destination files) -->
4066- <dependset>
4067- <srcfilelist dir="${classes}/javax/media/opengl" files="GL4.class" />
4068- <targetfileset dir="${src.generated.java}/javax/media/opengl"
4069- includes="DebugGL4.java,TraceGL4.java,DebugGL4bc.java,TraceGL4bc.java" />
4070- </dependset>
4071-
4072- <!-- Now choose one of the two to test to see if we have to regenerate -->
4073- <uptodate property="java.generate.composable.pipeline.skip.gl4"
4074- srcfile="${classes}/javax/media/opengl/GL4.class"
4075- targetfile="${src.generated.java}/javax/media/opengl/DebugGL4.java" />
4076- </target>
4077-
4078- <target name="java.generate.composable.pipeline.es1" depends="java.generate.composable.pipeline.check.es1" unless="java.generate.composable.pipeline.skip.es1">
4079- <java classname="com.jogamp.gluegen.opengl.BuildComposablePipeline" fork="yes" failonerror="true">
4080- <arg value="javax.media.opengl.GLES1" />
4081- <arg value="${src.generated.java}/javax/media/opengl" />
4082- <classpath refid="pipeline.classpath" />
4083- </java>
4084- <java classname="com.jogamp.gluegen.opengl.BuildComposablePipeline" fork="yes" failonerror="true">
4085- <arg value="javax.media.opengl.GL2ES1" />
4086- <arg value="${src.generated.java}/javax/media/opengl" />
4087- <classpath refid="pipeline.classpath" />
4088- </java>
4089- </target>
4090-
4091- <target name="java.generate.composable.pipeline.es2" depends="java.generate.composable.pipeline.check.es2" unless="java.generate.composable.pipeline.skip.es2">
4092- <java classname="com.jogamp.gluegen.opengl.BuildComposablePipeline" fork="yes" failonerror="true">
4093- <arg value="javax.media.opengl.GLES2" />
4094- <arg value="${src.generated.java}/javax/media/opengl" />
4095- <classpath refid="pipeline.classpath" />
4096- </java>
4097- <java classname="com.jogamp.gluegen.opengl.BuildComposablePipeline" fork="yes" failonerror="true">
4098- <arg value="javax.media.opengl.GL2ES2" />
4099- <arg value="${src.generated.java}/javax/media/opengl" />
4100- <classpath refid="pipeline.classpath" />
4101- </java>
4102- </target>
4103-
4104- <target name="java.generate.composable.pipeline.gl2" depends="java.generate.composable.pipeline.check.gl2" unless="java.generate.composable.pipeline.skip.gl2">
4105- <java classname="com.jogamp.gluegen.opengl.BuildComposablePipeline" fork="yes" failonerror="true">
4106- <arg value="javax.media.opengl.GL2" />
4107- <arg value="${src.generated.java}/javax/media/opengl" />
4108- <classpath refid="pipeline.classpath" />
4109- </java>
4110- <java classname="com.jogamp.gluegen.opengl.BuildComposablePipeline" fork="yes" failonerror="true">
4111- <arg value="javax.media.opengl.GL2GL3" />
4112- <arg value="${src.generated.java}/javax/media/opengl" />
4113- <classpath refid="pipeline.classpath" />
4114- </java>
4115- </target>
4116-
4117- <target name="java.generate.composable.pipeline.gl3" depends="java.generate.composable.pipeline.check.gl3" unless="java.generate.composable.pipeline.skip.gl3">
4118- <java classname="com.jogamp.gluegen.opengl.BuildComposablePipeline" fork="yes" failonerror="true">
4119- <arg value="javax.media.opengl.GL3" />
4120- <arg value="${src.generated.java}/javax/media/opengl" />
4121- <classpath refid="pipeline.classpath" />
4122- </java>
4123-
4124- <java classname="com.jogamp.gluegen.opengl.BuildComposablePipeline" fork="yes" failonerror="true">
4125- <arg value="javax.media.opengl.GL3bc" />
4126- <arg value="${src.generated.java}/javax/media/opengl" />
4127- <classpath refid="pipeline.classpath" />
4128- </java>
4129- </target>
4130-
4131- <target name="java.generate.composable.pipeline.gl4" depends="java.generate.composable.pipeline.check.gl4" unless="java.generate.composable.pipeline.skip.gl4">
4132- <java classname="com.jogamp.gluegen.opengl.BuildComposablePipeline" fork="yes" failonerror="true">
4133- <arg value="javax.media.opengl.GL4" />
4134- <arg value="${src.generated.java}/javax/media/opengl" />
4135- <classpath refid="pipeline.classpath" />
4136- </java>
4137-
4138- <java classname="com.jogamp.gluegen.opengl.BuildComposablePipeline" fork="yes" failonerror="true">
4139- <arg value="javax.media.opengl.GL4bc" />
4140- <arg value="${src.generated.java}/javax/media/opengl" />
4141- <classpath refid="pipeline.classpath" />
4142- </java>
4143- </target>
4144-
4145- <target name="java.generate.composable.pipeline" depends="java.generate.composable.pipeline.es1, java.generate.composable.pipeline.es2, java.generate.composable.pipeline.gl2, java.generate.composable.pipeline.gl3, java.generate.composable.pipeline.gl4">
4146- </target>
4147-
4148- <target name="java.generate.composable.pipeline.custom.check.glfixfunc">
4149- <!-- Blow away the DebugGL*.java and TraceGL*.java sources if GL*.class has changed
4150- (the uptodate element doesn't support arbitrary source and destination files) -->
4151- <dependset>
4152- <srcfilelist dir="${classes}/jogamp/opengl/util/glsl/fixedfunc" files="FixedFuncHook.class" />
4153- <srcfilelist dir="${classes}/javax/media/opengl" files="GL2ES1.class" />
4154- <srcfilelist dir="${classes}/javax/media/opengl" files="GL2ES2.class" />
4155- <targetfileset dir="${src.generated.java}/jogamp/opengl/util/glsl/fixedfunc"
4156- includes="FixedFuncImpl.java" />
4157- </dependset>
4158-
4159- <!-- Now choose one of the two to test to see if we have to regenerate -->
4160- <uptodate property="java.generate.composable.pipeline.custom.skip.glfixfunc"
4161- srcfile="${classes}/javax/media/opengl/GL2ES1.class"
4162- targetfile="${src.generated.java}/jogamp/opengl/util/glsl/fixedfunc/FixedFuncImpl.java" />
4163- </target>
4164- <target name="java.generate.composable.pipeline.custom.glfixfunc" depends="java.generate.composable.pipeline.custom.check.glfixfunc" unless="java.generate.composable.pipeline.custom.skip.glfixfunc">
4165- <java classname="com.jogamp.gluegen.opengl.BuildComposablePipeline" fork="yes" failonerror="true">
4166- <arg value="javax.media.opengl.GL2ES1" />
4167- <arg value="${src.generated.java}/jogamp/opengl/util/glsl/fixedfunc" />
4168- <arg value="jogamp.opengl.util.glsl.fixedfunc.FixedFuncImpl" />
4169- <arg value="jogamp.opengl.util.glsl.fixedfunc.FixedFuncHook" />
4170- <arg value="javax.media.opengl.GL2ES2" />
4171- <arg value="prolog_xor_downstream" />
4172- <classpath refid="pipeline.classpath" />
4173- </java>
4174- </target>
4175- <target name="java.generate.composable.pipeline.custom" depends="init, common.gluegen.build, java.generate.composable.pipeline.custom.glfixfunc">
4176- </target>
4177-
4178- <!-- ================================================================== -->
4179- <!--
4180- - Compile the original and generated source. The composable pipelines
4181- - will be generated.
4182- -->
4183- <target name="java.compile.firstpass" depends="java.generate,java.generate.cg">
4184- <antcall target="java.generate.cleantemp" inheritRefs="true" />
4185-
4186- <!-- Perform the first pass Java compile. -->
4187- <javac destdir="${classes}"
4188- includes="javax/media/opengl/fixedfunc/** javax/media/opengl/GLDrawableFactory.java javax/media/opengl/GLDrawable.java javax/media/opengl/GLContext.java javax/media/opengl/GL.java javax/media/opengl/GL2ES1.java javax/media/opengl/GL2ES2.java javax/media/opengl/GL2GL3.java javax/media/opengl/GL2.java javax/media/opengl/GLES1.java javax/media/opengl/GLES2.java javax/media/opengl/GL3.java javax/media/opengl/GL3bc.java javax/media/opengl/GL4.java javax/media/opengl/GL4bc.java"
4189- fork="yes"
4190- memoryMaximumSize="${javac.memorymax}"
4191- includeAntRuntime="false"
4192- source="${target.sourcelevel}" debug="${javacdebug}" debuglevel="${javacdebuglevel}">
4193- <classpath refid="nativewindow_gluegen.classpath"/>
4194- <src path="${src.java}" />
4195- <src path="${src.generated.java}" />
4196- </javac>
4197- </target>
4198-
4199- <target name="java.compile.secondpass.javase">
4200- <!-- Perform the second pass Java compile; everything except portion of fixed function emulation depending on generated code. -->
4201- <javac destdir="${classes}"
4202- excludes="com/jogamp/opengl/util/glsl/fixedfunc/FixedFuncUtil.java,${java.excludes.all}"
4203- source="${target.sourcelevel}"
4204- fork="yes"
4205- memoryMaximumSize="${javac.memorymax}"
4206- includeAntRuntime="false"
4207- debug="${javacdebug}" debuglevel="${javacdebuglevel}">
4208- <classpath refid="nativewindow_gluegen.classpath"/>
4209- <src path="${src.java}" />
4210- <src path="${src.generated.java}" />
4211- </javac>
4212- </target>
4213-
4214- <target name="java.compile.secondpass" depends="java.generate.composable.pipeline, java.compile.secondpass.javase" />
4215-
4216- <target name="java.compile.thirdpass.javase">
4217- <!-- Perform the third pass Java compile; everything including fixed function emulation. -->
4218- <javac destdir="${classes}"
4219- excludes="${java.excludes.all}"
4220- source="${target.sourcelevel}"
4221- fork="yes"
4222- memoryMaximumSize="${javac.memorymax}"
4223- includeAntRuntime="false"
4224- debug="${javacdebug}" debuglevel="${javacdebuglevel}">
4225- <classpath refid="nativewindow_gluegen.classpath"/>
4226- <src path="${src.java}" />
4227- <src path="${src.generated.java}" />
4228- </javac>
4229- </target>
4230-
4231- <target name="java.compile.thirdpass" depends="java.generate.composable.pipeline.custom, java.compile.thirdpass.javase" />
4232-
4233- <target name="java.compile" depends="java.compile.firstpass,java.compile.secondpass,java.compile.thirdpass">
4234- <!-- make shadercode and fonts available in classpath -->
4235- <copy todir="${classes}">
4236- <fileset dir="${src.java}"
4237- includes="${java.part.nonjava}"
4238- excludes="**/*.java"/>
4239- </copy>
4240- </target>
4241-
4242- <!-- ================================================================== -->
4243- <!--
4244- - Compile the native C code for JOGL (and optionally the Cg binding).
4245- -->
4246-
4247- <target name="c.configure.1" depends="gluegen.cpptasks.detect.os,gluegen.cpptasks.setup.compiler">
4248- <!-- compiler configuration -->
4249- <!-- Note that we can use the base setups in the gluegen-cpptasks for most of these -->
4250-
4251- <compiler id="compiler.cfg.freebsd.jogl" extends="compiler.cfg.freebsd">
4252- <!-- Need to force X11R6 headers on to include path after stub_includes -->
4253- <includepath path="stub_includes/opengl"/>
4254- <includepath path="/usr/local/include" />
4255- </compiler>
4256-
4257- <compiler id="compiler.cfg.linux.armv7.jogl.x11" extends="compiler.cfg.linux.armv7">
4258- <!-- Need to force /usr/include headers on to include path (after all others), due to crosscompiler usage -->
4259- <compilerarg value="-idirafter" />
4260- <compilerarg value="/usr/include" />
4261- </compiler>
4262-
4263- <!-- linker configuration -->
4264-
4265- <linker id="linker.cfg.freebsd.jogl.x11" extends="linker.cfg.freebsd">
4266- <syslibset dir="/usr/local/lib" libs="X11"/>
4267- <syslibset dir="/usr/local/lib" libs="Xxf86vm" />
4268- </linker>
4269-
4270- <linker id="linker.cfg.freebsd.amd64.jogl.x11" extends="linker.cfg.freebsd.amd64">
4271- <syslibset dir="/usr/local/lib" libs="X11"/>
4272- <syslibset dir="/usr/local/lib" libs="Xxf86vm" />
4273- </linker>
4274-
4275- <linker id="linker.cfg.linux.jogl.x11" extends="linker.cfg.linux">
4276- <syslibset libs="X11"/>
4277- <syslibset libs="Xxf86vm" />
4278- </linker>
4279-
4280- <linker id="linker.cfg.linux.x86.jogl.x11" extends="linker.cfg.linux.x86">
4281- <syslibset libs="X11"/>
4282- <syslibset libs="Xxf86vm" />
4283- </linker>
4284-
4285- <linker id="linker.cfg.linux.amd64.jogl.x11" extends="linker.cfg.linux.amd64">
4286- <syslibset libs="X11"/>
4287- <syslibset libs="Xxf86vm" />
4288- </linker>
4289-
4290- <linker id="linker.cfg.linux.armv7.jogl.x11" extends="linker.cfg.linux.armv7">
4291- <syslibset dir="${env.TARGET_PLATFORM_LIBS}" libs="X11"/>
4292- <syslibset dir="${env.TARGET_PLATFORM_LIBS}" libs="Xxf86vm" />
4293- </linker>
4294-
4295- <linker id="linker.cfg.android.jogl" extends="linker.cfg.android">
4296- </linker>
4297-
4298- <linker id="linker.cfg.solaris.jogl.x11" extends="linker.cfg.solaris">
4299- <syslibset libs="X11"/>
4300- </linker>
4301-
4302- <linker id="linker.cfg.solaris.sparcv9.jogl.x11" extends="linker.cfg.solaris.sparcv9">
4303- <linkerarg value="-xarch=v9a" />
4304- <syslibset dir="/usr/lib/sparcv9" libs="X11"/>
4305- </linker>
4306-
4307- <linker id="linker.cfg.solaris.amd64.jogl.x11" extends="linker.cfg.solaris.amd64">
4308- <linkerarg value="-xarch=amd64" />
4309- <syslibset dir="/usr/lib/amd64" libs="X11"/>
4310- </linker>
4311-
4312- <linker id="linker.cfg.win32.mingw.jogl" extends="linker.cfg.win32.mingw">
4313- <linkerarg value="-Wl,--kill-at" /> <!-- remove @ from function names -->
4314- <syslibset libs="gdi32, kernel32"/>
4315- </linker>
4316-
4317- <linker id="linker.cfg.win64.mingw.jogl" extends="linker.cfg.win64.mingw">
4318- <linkerarg value="-Wl,--kill-at" /> <!-- remove @ from function names -->
4319- <syslibset libs="gdi32, kernel32"/>
4320- </linker>
4321-
4322- <linker id="linker.cfg.win32.msvc.jogl" extends="linker.cfg.win32.msvc">
4323- <syslibset libs="user32, kernel32" />
4324- <!-- This is temporary -->
4325- <syslibset libs="winmm" />
4326- </linker>
4327-
4328- <linker id="linker.cfg.macosx.jogl" extends="linker.cfg.macosx">
4329- <linkerarg value="-framework" />
4330- <linkerarg value="Cocoa" />
4331- <linkerarg value="-framework" />
4332- <linkerarg value="OpenGL" />
4333- </linker>
4334-
4335- <!--linker id="linker.cfg.macosx.jogl.cg" extends="linker.cfg.macosx.jogl">
4336- <linkerarg value="-framework"/>
4337- <linkerarg value="Cg"/>
4338- </linker-->
4339-
4340- <linker id="linker.cfg.hpux.jogl" extends="linker.cfg.hpux">
4341- <syslibset dir="/opt/graphics/OpenGL/lib" libs="GL, GLU"/>
4342- <syslibset dir="/usr/lib" libs="X11"/>
4343- </linker>
4344- </target>
4345-
4346- <target name="c.configure.win32.vc" if="isVCFamily">
4347- <echo message="Win32.VC" />
4348- <property name="compiler.cfg.id" value="compiler.cfg.win32.msvc" />
4349- <property name="linker.cfg.id.os" value="linker.cfg.win32.msvc.jogl" />
4350- </target>
4351-
4352- <target name="c.configure.win32.mingw" if="isMingW32">
4353- <echo message="Win32.MingW" />
4354- <property name="compiler.cfg.id" value="compiler.cfg.win32.mingw" />
4355- <property name="linker.cfg.id.os" value="linker.cfg.win32.mingw.jogl" />
4356- </target>
4357-
4358- <target name="c.configure.win64.mingw" if="isMingW64">
4359- <echo message="Win64.MingW" />
4360- <property name="compiler.cfg.id" value="compiler.cfg.win64.mingw" />
4361- <property name="linker.cfg.id.os" value="linker.cfg.win64.mingw.jogl" />
4362- </target>
4363-
4364- <target name="c.configure.linux.x86" if="isLinuxX86">
4365- <echo message="Linux.x86" />
4366- <property name="compiler.cfg.id" value="compiler.cfg.linux.x86" />
4367- <property name="linker.cfg.id.os" value="linker.cfg.linux.x86.jogl.x11" />
4368- </target>
4369-
4370- <target name="c.configure.linux.amd64" if="isLinuxAMD64">
4371- <echo message="Linux.AMD64" />
4372- <property name="compiler.cfg.id" value="compiler.cfg.linux.amd64" />
4373- <property name="linker.cfg.id.os" value="linker.cfg.linux.amd64.jogl.x11" />
4374- </target>
4375-
4376- <target name="c.configure.linux.armv7" if="isLinuxARMv7">
4377- <echo message="Linux.armv7" />
4378- <property name="compiler.cfg.id" value="compiler.cfg.linux.armv7.jogl.x11" />
4379- <property name="linker.cfg.id.os" value="linker.cfg.linux.armv7.jogl.x11" />
4380- </target>
4381-
4382- <target name="c.configure.linux.ia64" if="isLinuxIA64">
4383- <echo message="Linux.IA64" />
4384- <property name="compiler.cfg.id" value="compiler.cfg.linux" />
4385- <property name="linker.cfg.id.os" value="linker.cfg.linux.jogl.x11" />
4386- </target>
4387-
4388- <target name="c.configure.linux" depends="c.configure.linux.armv7,c.configure.linux.x86,c.configure.linux.amd64,c.configure.linux.ia64,c.configure.x11" if="isLinux" />
4389-
4390- <target name="c.configure.android" if="isAndroid">
4391- <echo message="Android" />
4392- <property name="compiler.cfg.id" value="compiler.cfg.android" />
4393- <property name="linker.cfg.id.os" value="linker.cfg.android.jogl" />
4394- </target>
4395-
4396- <target name="c.configure.solaris32" depends="c.configure.x11" if="isSolaris32Bit">
4397- <echo message="Solaris" />
4398- <property name="compiler.cfg.id" value="compiler.cfg.solaris" />
4399- <property name="linker.cfg.id.os" value="linker.cfg.solaris.jogl.x11" />
4400- </target>
4401-
4402-
4403- <target name="c.configure.solaris.sparcv9" depends="c.configure.x11" if="isSolarisSparcv9">
4404- <echo message="SolarisSparcv9" />
4405- <property name="compiler.cfg.id" value="compiler.cfg.solaris.sparcv9" />
4406- <property name="linker.cfg.id.os" value="linker.cfg.solaris.sparcv9.jogl.x11" />
4407- </target>
4408-
4409-
4410- <target name="c.configure.solaris.amd64" depends="c.configure.x11" if="isSolarisAMD64">
4411- <echo message="SolarisAMD64" />
4412- <property name="compiler.cfg.id" value="compiler.cfg.solaris.amd64" />
4413- <property name="linker.cfg.id.os" value="linker.cfg.solaris.amd64.jogl.x11" />
4414- </target>
4415-
4416- <target name="c.configure.freebsd.x86" depends="c.configure.x11" if="isFreeBSDX86">
4417- <echo message="FreeBSD" />
4418- <property name="compiler.cfg.id" value="compiler.cfg.freebsd.jogl" />
4419- <property name="linker.cfg.id.os" value="linker.cfg.freebsd.jogl.x11" />
4420- </target>
4421-
4422- <target name="c.configure.freebsd.amd64" depends="c.configure.x11" if="isFreeBSDAMD64">
4423- <echo message="FreeBSD" />
4424- <property name="compiler.cfg.id" value="compiler.cfg.freebsd.jogl" />
4425- <property name="linker.cfg.id.os" value="linker.cfg.freebsd.amd64.jogl.x11" />
4426- </target>
4427-
4428- <target name="c.configure.freebsd" depends="c.configure.freebsd.x86,c.configure.freebsd.amd64,c.configure.x11" if="isFreeBSD" />
4429-
4430- <target name="c.configure.hpux" depends="c.configure.x11" if="isHPUX">
4431- <echo message="HP-UX" />
4432- <property name="compiler.cfg.id" value="compiler.cfg.hpux" />
4433- <property name="linker.cfg.id.os" value="linker.cfg.hpux.jogl.x11" />
4434- </target>
4435-
4436- <target name="c.configure.win32" depends="c.configure.win32.vc,c.configure.win32.mingw,c.configure.win64.mingw" if="isWindows" />
4437-
4438- <target name="c.configure.x11" if="isX11" />
4439-
4440- <target name="c.configure.macosx" if="isOSX">
4441- <property name="compiler.cfg.id" value="compiler.cfg.macosx" />
4442- <property name="linker.cfg.id.os" value="linker.cfg.macosx.jogl" />
4443- </target>
4444-
4445- <target name="c.configure.2" depends="c.configure.win32,c.configure.linux,c.configure.android,c.configure.solaris32,c.configure.solaris.sparcv9,c.configure.solaris.amd64,c.configure.macosx,c.configure.freebsd,c.configure.hpux" />
4446-
4447- <target name="c.configure" depends="c.configure.1,c.configure.2" />
4448-
4449- <target name="rename.mingw.dll" if="isMingW">
4450- <move file="${src}" tofile="${dest}" />
4451- </target>
4452-
4453- <target name="rename.dylib" if="isOSX">
4454- <move file="${src}" tofile="${dest}" />
4455- </target>
4456-
4457- <macrodef name="c.build">
4458- <attribute name="c.compiler.src.files" />
4459- <attribute name="compiler.cfg.id" />
4460- <attribute name="linker.cfg.id" />
4461- <attribute name="output.lib.name" />
4462- <attribute name="c.compiler.use-jawt" default="false"/>
4463- <sequential>
4464- <echo message="Output lib name = @{output.lib.name}" />
4465-
4466- <!-- NOTE: the value of the debug and optimise attributes will not be overridden if already set externally -->
4467- <property name="c.compiler.debug" value="false" />
4468- <!-- Optimise flags one of { none, size, speed, minimal, full, aggressive, extreme, unsafe } -->
4469- <property name="c.compiler.optimise" value="none" />
4470-
4471- <condition property="c.compiler.use-debug"><istrue value="${c.compiler.debug}"/></condition>
4472-
4473- <patternset id="c.src.files.jogl.desktop">
4474- <include name="${rootrel.src.c}/JoglCommon.c"/>
4475- <include name="${rootrel.src.c}/GLDebugMessageHandler.c"/>
4476- <include name="${rootrel.src.c}/macosx/MacOSXCustomCGLCode.c" if="isOSX"/>
4477- <include name="${rootrel.src.c}/macosx/MacOSXWindowSystemInterface.m" if="isOSX"/>
4478- <include name="${rootrel.src.c}/macosx/ContextUpdater.m" if="isOSX"/>
4479- <include name="${rootrel.src.c}/GLXGetProcAddressARB.c" if="isX11"/>
4480- <!-- FIXME: the Mixer should be moved to another library -->
4481- <!--include name="${rootrel.src.c}/Mixer.cpp" if="isWindows"/-->
4482- <include name="${rootrel.src.c.openmax}/omx_tool.c" if="setup.addNativeOpenMAX"/>
4483- <include name="${rootrel.src.c.openmax}/com_jogamp_openmax_OMXInstance.c" if="setup.addNativeOpenMAX"/>
4484-
4485- <include name="${rootrel.generated.c.jogl}/gl4/GL4bcImpl_JNI.c"/>
4486- <!--include name="${rootrel.generated.c.jogl}/GLU_JNI.c"/ EMPTY -->
4487- <include name="${rootrel.generated.c.jogl}/gl2/GLUgl2_JNI.c"/>
4488- <include name="${rootrel.generated.c.jogl}/X11/GLX*.c" if="isX11"/>
4489- <include name="${rootrel.generated.c.jogl}/MacOSX/CGL*.c" if="isOSX"/>
4490- <include name="${rootrel.generated.c.jogl}/Windows/GDI*.c" if="isWindows"/>
4491- <include name="${rootrel.generated.c.jogl}/Windows/WGL*.c" if="isWindows"/>
4492- </patternset>
4493-
4494- <patternset id="c.src.files.jogl.mobile">
4495- <include name="${rootrel.src.c}/JoglCommon.c"/>
4496- <include name="${rootrel.src.c}/GLDebugMessageHandler.c"/>
4497- <include name="${rootrel.src.c}/GLXGetProcAddressARB.c" if="isX11"/>
4498- <include name="${rootrel.src.c.openmax}/omx_tool.c" if="setup.addNativeOpenMAX"/>
4499- <include name="${rootrel.src.c.openmax}/com_jogamp_openmax_OMXInstance.c" if="setup.addNativeOpenMAX"/>
4500-
4501- <include name="${rootrel.generated.c.jogl}/egl/EGL_JNI.c"/>
4502- <include name="${rootrel.generated.c.jogl}/egl/EGLExtImpl_JNI.c"/>
4503- <include name="${rootrel.generated.c.jogl}/es2/GLES2Impl_JNI.c"/>
4504- <include name="${rootrel.generated.c.jogl}/es1/GLES1Impl_JNI.c"/>
4505- <!--include name="${rootrel.generated.c.jogl}/GLU_JNI.c"/ EMPTY -->
4506- <!--include name="${rootrel.generated.c.jogl}/es1/GLUes1_JNI.c" EMPTY /-->
4507- </patternset>
4508-
4509- <patternset id="c.src.files.cg">
4510- <include name="${rootrel.generated.c.cg}/*.c"/>
4511- </patternset>
4512-
4513- <echo message="Compiling @{output.lib.name}" />
4514-
4515- <!-- have to wrap cc task with outofdate, because otherwise cc links a new library
4516- even when no files have been compiled -->
4517- <outofdate>
4518- <sourcefiles>
4519- <fileset dir="${project.root}"><patternset refid="@{c.compiler.src.files}"/></fileset>
4520- </sourcefiles>
4521- <targetfiles>
4522- <fileset dir="${obj.jogl}" includes="lib@{output.lib.name}.so"/>
4523- <fileset dir="${obj.jogl}" includes="@{output.lib.name}.dll"/>
4524- <fileset dir="${obj.jogl}" includes="lib@{output.lib.name}.jnilib"/>
4525- </targetfiles>
4526- <sequential>
4527- <cc outtype="shared"
4528- objdir="${obj.joglsub}"
4529- outfile="${obj.jogl}/@{output.lib.name}"
4530- optimize="${c.compiler.optimise}"
4531- debug="${c.compiler.debug}"
4532- multithreaded="true"
4533- exceptions="false"
4534- rtti="false">
4535-
4536- <fileset dir="${project.root}"><patternset refid="@{c.compiler.src.files}"/></fileset>
4537-
4538- <compiler extends="@{compiler.cfg.id}" >
4539- <sysincludepath path="${java.includes.dir}"/>
4540- <sysincludepath path="${java.includes.dir.platform}"/>
4541- <sysincludepath path="${stub.includes.gluegen.cc}"/>
4542- <includepath path="stub_includes/khr"/>
4543- <includepath path="stub_includes/egl"/>
4544- <includepath path="stub_includes/opengl"/>
4545- <includepath path="stub_includes/openmax" if="setup.addNativeOpenMAX"/>
4546- <includepath path="stub_includes/cg" if="setup.addNativeNVidiaCG"/>
4547-
4548- <!-- This is for the generated headers for handwritten C code -->
4549- <includepath path="${src.generated.c}" />
4550- <includepath path="${src.generated.c}/X11" if="isX11"/>
4551- <includepath path="${src.generated.c}/MacOSX" if="isOSX"/>
4552- <includepath path="${src.generated.c}/Windows" if="isWindows"/>
4553- <includepath path="${src.generated.c.openmax}" if="setup.addNativeOpenMAX"/>
4554-
4555- <!-- This must come last to not override real include paths -->
4556- <!-- includepath path="stub_includes/macosx" if="isOSX" / -->
4557- </compiler>
4558-
4559- <linker extends="@{linker.cfg.id}">
4560- <syslibset dir="${java.lib.platform}" libs="jawt" if="@{output.lib.name}.useLibJAWT"/>
4561- <syslibset dir="${java.lib.platform}/server" libs="jvm" if="@{output.lib.name}.useLibJVM"/>
4562- </linker>
4563- </cc>
4564-
4565- <!-- FIXME: this is a hack; the cpptask should have an option to change the
4566- suffix or at least understand the override from dylib to jnilib -->
4567- <antcall target="rename.dylib" inheritRefs="true">
4568- <param name="src" value="${obj.jogl}/lib@{output.lib.name}.dylib" />
4569- <param name="dest" value="${obj.jogl}/lib@{output.lib.name}.jnilib" />
4570- </antcall>
4571-
4572- <!-- FIXME: this is a hack; the cpptask should have an option to change the
4573- suffix or at least understand the override from dylib to jnilib -->
4574- <antcall target="rename.mingw.dll" inheritRefs="true">
4575- <param name="src" value="${obj.jogl}/lib@{output.lib.name}.so" />
4576- <param name="dest" value="${obj.jogl}/@{output.lib.name}.dll" />
4577- </antcall>
4578-
4579- <!-- this stripping may be called more than once on the same library dir,
4580- but that should cause no harm, and doing it here inside outofdate
4581- prevents the JARs from always being rebuilt even if no source code changes -->
4582- <antcall target="gluegen.cpptasks.striplibs" inheritRefs="true">
4583- <param name="libdir" value="${obj.jogl}"/>
4584- </antcall>
4585-
4586- </sequential>
4587- </outofdate>
4588- </sequential>
4589- </macrodef>
4590-
4591- <target name="c.build.jogl.prepare.openMAX" if="setup.addNativeOpenMAX">
4592- <javah destdir="${src.generated.c.openmax}" classpath="${javah.classpath}" class="com.jogamp.openmax.OMXInstance" />
4593- </target>
4594-
4595- <target name="c.build.jogl.prepare" depends="c.build.jogl.prepare.openMAX">
4596- <javah destdir="${build.jogl}/gensrc/native/jogl" classpath="${javah.classpath}" class="jogamp.opengl.GLDebugMessageHandler" />
4597- <!-- Generate the waveout Mixer header -->
4598- <!-- FIXME: this is temporary until we move this to another workspace -->
4599- <!--javah destdir="${build.jogl}/gensrc/native/jogl" classpath="${javah.classpath}" class="com.jogamp.audio.windows.waveout.Mixer" /-->
4600- </target>
4601-
4602- <target name="c.build.jogl.desktop" unless="setup.noNativeDesktop">
4603- <c.build c.compiler.src.files="c.src.files.jogl.desktop"
4604- output.lib.name="jogl_desktop"
4605- compiler.cfg.id="${compiler.cfg.id}"
4606- linker.cfg.id="${linker.cfg.id.os}"/>
4607- </target>
4608-
4609- <target name="c.build.jogl.mobile">
4610- <c.build c.compiler.src.files="c.src.files.jogl.mobile"
4611- output.lib.name="jogl_mobile"
4612- compiler.cfg.id="${compiler.cfg.id}"
4613- linker.cfg.id="${linker.cfg.id.os}"/>
4614- </target>
4615-
4616- <target name="c.build.jogl.cg" if="setup.addNativeNVidiaCG">
4617- <c.build c.compiler.src.files="c.src.files.cg"
4618- output.lib.name="jogl_cg"
4619- compiler.cfg.id="${compiler.cfg.id}"
4620- linker.cfg.id="${linker.cfg.id.os}"/>
4621- </target>
4622-
4623- <target name="c.manifest.cg" if="setup.addNativeNVidiaCG">
4624- <msvc.manifest objdir="${obj.jogl}" dllname="jogl_cg" />
4625- </target>
4626-
4627- <target name="c.manifest" if="isVC8Family">
4628- <!-- exec mt, the Microsoft Manifest Tool, to include DLL manifests in order to resolve the location of msvcr80.dll -->
4629- <msvc.manifest objdir="${obj.jogl}" dllname="jogl_es1" />
4630- <msvc.manifest objdir="${obj.jogl}" dllname="jogl_es2" />
4631- <msvc.manifest objdir="${obj.jogl}" dllname="jogl_desktop" />
4632- <antcall target="c.manifest.cg" inheritRefs="true" />
4633- </target>
4634-
4635- <target name="c.build.jogl" depends="c.configure,c.build.jogl.prepare,c.build.jogl.desktop,c.build.jogl.mobile,c.build.jogl.cg">
4636- <antcall target="c.manifest" inheritRefs="true" />
4637- </target>
4638-
4639- <!-- ================================================================== -->
4640- <!--
4641- - Build the jogl.jar files.
4642- -->
4643- <target name="build-jars-dependset" depends="init,gluegen.cpptasks.detect.os" >
4644- <dependset>
4645- <srcfileset dir="${src.java}"
4646- includes="${java.part.nonjava}"/>
4647- <targetfileset dir="."
4648- includes="${jogl.util.jar} ${jogl.util.fixedfuncemu.jar}" />
4649- </dependset>
4650- </target>
4651- <target name="build-jars" depends="build-jars-dependset,build-jars-javase" />
4652-
4653- <target name="setup-manifestfile" depends="common.init">
4654- <property name="manifestfile" value="joglversion"/>
4655- <copy file="${manifestfile}"
4656- tofile="${build.jogl}/manifest.mf"
4657- overwrite="true">
4658- <filterset>
4659- <filter token="VERSION" value="${jogl.version}"/>
4660- <filter token="SCM_BRANCH" value="${jogl.build.branch}"/>
4661- <filter token="SCM_COMMIT" value="${jogl.build.commit}"/>
4662- <filter token="BASEVERSION" value="${jogl_base_version}"/>
4663- </filterset>
4664- </copy>
4665- </target>
4666-
4667- <target name="build-jars-os-desktop-javase" depends="setup-manifestfile">
4668- <jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.os.x11.jar}" filesonly="true">
4669- <fileset dir="${classes}" includes="${java.part.glx}"/>
4670- </jar>
4671- <jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.os.win.jar}" filesonly="true">
4672- <fileset dir="${classes}" includes="${java.part.wgl}" />
4673- </jar>
4674- <jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.os.osx.jar}" filesonly="true">
4675- <fileset dir="${classes}" includes="${java.part.cgl}"/>
4676- </jar>
4677- </target>
4678-
4679- <target name="build-jars-mobile-javase" depends="setup-manifestfile">
4680- <jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.glmobile.jar}" filesonly="true">
4681- <fileset dir="${classes}"
4682- includes="${java.part.egl} ${java.part.es1} ${java.part.es2}"
4683- excludes="${java.part.awt} ${java.part.es1.dbg} ${java.part.es2.dbg}"/>
4684- </jar>
4685- <jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.glmobile.dbg.jar}" filesonly="true">
4686- <fileset dir="${classes}"
4687- includes="${java.part.es1.dbg} ${java.part.es2.dbg}"/>
4688- </jar>
4689- </target>
4690-
4691- <target name="build-jars-awt-javase" depends="setup-manifestfile" unless="setup.noAWT">
4692- <jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.awt.jar}" filesonly="true">
4693- <fileset dir="${classes}"
4694- includes="${java.part.awt}" />
4695- </jar>
4696- <jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.util.awt.jar}" filesonly="true">
4697- <fileset dir="${classes}"
4698- includes="${java.part.util.awt}"/>
4699- </jar>
4700- </target>
4701-
4702- <target name="build-jars-desktop-javase" depends="setup-manifestfile,build-jars-os-desktop-javase">
4703- <!--os specific gldesktop-->
4704- <jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.gldesktop.jar}" filesonly="true">
4705- <fileset dir="${classes}"
4706- includes="${java.part.gldesktop}"
4707- excludes="${java.part.gldesktop.dbg} ${java.part.glugldesktop}"/>
4708- </jar>
4709-
4710- <!-- misc -->
4711- <jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.gldesktop.dbg.jar}" filesonly="true">
4712- <fileset dir="${classes}"
4713- includes="${java.part.gldesktop.dbg}"/>
4714- </jar>
4715- <jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.glugldesktop.jar}" filesonly="true">
4716- <fileset dir="${classes}"
4717- includes="${java.part.glugldesktop}"/>
4718- </jar>
4719- <jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.util.gldesktop.jar}" filesonly="true">
4720- <fileset dir="${classes}"
4721- includes="${java.part.util.gldesktop}"
4722- excludes="${java.part.awt} ${java.part.util.awt}"/>
4723- </jar>
4724- </target>
4725-
4726- <target name="build-jars-javase" depends="setup-manifestfile, build-jars-mobile-javase, build-jars-desktop-javase, build-jars-awt-javase">
4727- <jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.core.jar}" filesonly="true">
4728- <fileset dir="${classes}"
4729- includes="${java.part.core}"
4730- excludes="${java.part.core.exclude}"/>
4731- </jar>
4732- <jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.sdk.jar}" filesonly="true">
4733- <fileset dir="${classes}"
4734- includes="${java.part.sdk}"/>
4735- </jar>
4736- <jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.glutess.jar}" filesonly="true">
4737- <fileset dir="${classes}"
4738- includes="${java.part.glutess}"/>
4739- </jar>
4740- <jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.glumipmap.jar}" filesonly="true">
4741- <fileset dir="${classes}"
4742- includes="${java.part.glumipmap}"/>
4743- </jar>
4744- <jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.util.jar}" filesonly="true">
4745- <fileset dir="${classes}"
4746- includes="${java.part.util} ${java.part.util.glsl} ${java.part.util.graph}"
4747- excludes="${java.part.util.awt} ${java.part.util.gldesktop} ${java.part.util.fixedfuncemu}"/>
4748- </jar>
4749- <jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.util.fixedfuncemu.jar}" filesonly="true">
4750- <fileset dir="${classes}"
4751- includes="${java.part.util.fixedfuncemu}"/>
4752- </jar>
4753- <jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.omx.jar}" filesonly="true">
4754- <fileset dir="${classes}"
4755- includes="${java.part.openmax}"/>
4756- </jar>
4757- <jar manifest="${build.jogl}/manifest.mf" destfile="${jogl.cg.jar}" filesonly="true">
4758- <fileset dir="${classes}"
4759- includes="${java.part.nv-cg}"/>
4760- </jar>
4761- <jar manifest="${build.jogl}/manifest.mf" destfile="${build.jogl}/jogl-natives-${os.and.arch}.jar" filesonly="true">
4762- <fileset dir="${obj.jogl}">
4763- <include name="*.${native.library.suffix}" />
4764- <exclude name="*jogl_cg.${native.library.suffix}" />
4765- </fileset>
4766- </jar>
4767- </target>
4768-
4769- <!-- ================================================================== -->
4770- <!--
4771- - Build the Javadocs for the sources.
4772- - NOTE: these are not entirely correct as the javadocs targets depend
4773- - on the platform specific build targets. To circumvent any
4774- - errors, ensure that the source is built first.
4775- -->
4776- <!-- Same as above but with Cg directories added -->
4777- <target name="javadoc" depends="init">
4778- <!-- Build the general public Javadoc with CG -->
4779- <javadoc packagenames="${javadoc.packagenames},com.jogamp.opengl.cg"
4780- excludepackagenames="${java.excludes.javadoc.packagenames}"
4781- sourcepath="${src.java};${src.generated.java}"
4782- destdir="${javadoc}" windowtitle="${javadoc.windowtitle}"
4783- overview="${javadoc.overview}"
4784- source="${target.sourcelevel}"
4785- maxmemory="512m"
4786- linkoffline="${javadoc.link} 142-packages"
4787- bottom="${javadoc.bottom}" >
4788- <classpath refid="nativewindow_gluegen.classpath"/>
4789- <taglet name="net.highteq.nativetaglet.NativeTaglet" path="${gluegen.jar}" />
4790- </javadoc>
4791- </target>
4792-
4793- <target name="javadoc.spec" depends="init">
4794- <javadoc packagenames="${javadoc.spec.packagenames}"
4795- excludepackagenames="${java.excludes.javadoc.packagenames}"
4796- sourcepath="${src.java};${src.generated.java}"
4797- destdir="${javadoc.spec}" windowtitle="${javadoc.windowtitle}"
4798- overview="${javadoc.overview}"
4799- source="${target.sourcelevel}"
4800- maxmemory="512m"
4801- linkoffline="${javadoc.link} 142-packages"
4802- bottom="${javadoc.bottom}" >
4803- <classpath refid="nativewindow_gluegen.classpath"/>
4804- <taglet name="net.highteq.nativetaglet.NativeTaglet" path="${gluegen.jar}" />
4805- </javadoc>
4806- </target>
4807-
4808- <target name="javadoc.dev.all" depends="init">
4809- <javadoc packagenames="${javadoc.dev.packagenames},com.jogamp.opengl.cg"
4810- excludepackagenames="${java.excludes.javadoc.packagenames}"
4811- sourcepath="${src.java};${src.generated.java}"
4812- destdir="${javadoc.dev}" windowtitle="${javadoc.windowtitle}"
4813- overview="${javadoc.overview}"
4814- source="${target.sourcelevel}"
4815- maxmemory="512m"
4816- linkoffline="${javadoc.link} 142-packages"
4817- bottom="${javadoc.bottom}" >
4818- <classpath refid="nativewindow_gluegen.classpath"/>
4819- <taglet name="net.highteq.nativetaglet.NativeTaglet" path="${gluegen.jar}" />
4820- </javadoc>
4821- </target>
4822-
4823- <target name="all.doc" description="Build JOGL docs" depends="init,javadoc,javadoc.spec,javadoc.dev.all" />
4824-
4825- <!-- ================================================================== -->
4826- <!--
4827- - Clean up all that is built.
4828- -->
4829- <target name="clean" description="Remove all build products" depends="declare.common">
4830- <delete includeEmptyDirs="true" quiet="true">
4831- <fileset dir="${tempdir}" />
4832- <fileset dir="${build.jogl}" />
4833- <fileset dir="${javadoc}" />
4834- <fileset dir="${javadoc.spec}" />
4835- <fileset dir="${javadoc.dev}" />
4836- </delete>
4837- </target>
4838-
4839- <!-- ================================================================== -->
4840- <!--
4841- - Build everything.
4842- -->
4843- <target name="all" description="Build JOGL JAR file(s) and native libraries." depends="init,java.compile,c.build.jogl,build-jars,generate.version.txt" />
4844-
4845- <target name="generate.version.txt" depends="init">
4846- <!-- Create a version.txt file indicating which version we just built -->
4847- <echo message="${jogl.version}" file="${build.jogl}/version.txt" />
4848- </target>
4849-
4850-</project>
4851
4852=== removed directory '.pc/otherArchsoswin.diff'
4853=== removed directory '.pc/otherArchsoswin.diff/make'
4854=== removed file '.pc/otherArchsoswin.diff/make/build-nativewindow.xml'
4855--- .pc/otherArchsoswin.diff/make/build-nativewindow.xml 2011-10-06 15:53:38 +0000
4856+++ .pc/otherArchsoswin.diff/make/build-nativewindow.xml 1970-01-01 00:00:00 +0000
4857@@ -1,865 +0,0 @@
4858-<?xml version="1.0" encoding="UTF-8"?>
4859-<!--
4860- - Ant build for the NativeWindow package. This build has been tested with ANT 1.7.0. The
4861- - optional.jar that contains the optional ANT tasks must be in the ANT
4862- - classpath (typically the ant/lib directory).
4863- -
4864- - A clean download of the NativeWindow sources is required for this build.
4865- -
4866- - This build has no dependence on environment variables; the needed
4867- - ones (e.g. java.home, ANT_HOME) are all set by the Ant wrapper shell
4868- - script, by the virtual machine, or elsewhere. However, on all platforms,
4869- - the C compiler and linker should be in the path. All other paths that
4870- - need to be set are in host.properties.
4871- -
4872- - NOTE: because the GlueGen config files have their own relative paths
4873- - which cannot be overridden by GlueGen, GlueGen MUST be run from
4874- - the "make" directory. This also means that this build.xml MUST
4875- - be run from the "make" directory.
4876- -
4877- - Public targets:
4878- - all: (default; autodetects OS and chooses C compiler from gluegen.properties)
4879- - clean: clean all built
4880- - javadoc: create the standard developer Javadoc (recommended)
4881- - (Note: should build all first - may be dependence in the future)
4882- - javadoc.spec: create the standard developer Javadoc but exclude com.jogamp.* classes
4883- - javadoc.dev: create the internal developer Javadoc. This includes the
4884- - Java and C file generators. Note that it is only supported
4885- - to create the Javadoc for the platform on which you are
4886- - currently running.
4887- -
4888- - Note: on Windows the "win32.c.compiler" property in gluegen.properties
4889- - is required to select the appropriate C compiler. See the example
4890- - gluegen.properties in the gluegen workspace for valid values. On Mac OS X
4891- - universal binaries may also be built by setting the "macosxfat"
4892- - property in gluegen.properties; again see the example file in this
4893- - directory.
4894- -
4895- - Thanks to Rob Grzywinski and Artur Biesiadowski for the bulk of the
4896- - ANT build, including the GlueGen tasks, the building of
4897- - the Java generated sources, the first and second phase Java compiles, and
4898- - the building of the jar file. Thanks to Alex Radeski for the bulk of the
4899- - port to the ant-contrib CPPTask framework. Thanks to Athomas Goldberg for
4900- - the original OS detection code.
4901- -
4902- - Some environment defs affecting native compilation
4903- setup.noNativeAWT
4904-
4905- - Internal settings, may not be necessary to set them manually,
4906- since all JAR archives are orthogonal.
4907- setup.noAWT
4908- -->
4909-<project name="NativeWindow" basedir="." default="all">
4910-
4911- <import file="build-common.xml"/>
4912-
4913- <!-- needed for outofdate task -->
4914- <taskdef resource="net/sf/antcontrib/antlib.xml">
4915- <classpath> <pathelement location="${ant-contrib.jar}"/> </classpath>
4916- </taskdef>
4917-
4918- <!-- ================================================================== -->
4919- <!--
4920- - Base initialization and detection of operating system.
4921- -->
4922- <target name="base.init" depends="common.init">
4923-
4924- <!-- partitioning -->
4925-
4926- <property name="java.part.swt"
4927- value="jogamp/nativewindow/swt/**"/>
4928-
4929- <property name="java.part.core"
4930- value="javax/media/nativewindow/* javax/media/nativewindow/util/* javax/media/nativewindow/egl/* com/jogamp/nativewindow/* jogamp/nativewindow/* jogamp/nativewindow/jvm/* ${java.part.swt}"/>
4931-
4932- <property name="java.part.awt"
4933- value="javax/media/nativewindow/awt/* jogamp/nativewindow/jawt/** jogamp/nativewindow/**/awt/**"/>
4934-
4935- <property name="java.part.x11"
4936- value="jogamp/nativewindow/x11/** javax/media/nativewindow/x11/*" />
4937-
4938- <property name="java.part.windows"
4939- value="jogamp/nativewindow/windows/** javax/media/nativewindow/windows/*" />
4940-
4941- <property name="java.part.macosx"
4942- value="jogamp/nativewindow/macosx/** javax/media/nativewindow/macosx/*" />
4943-
4944- <!-- condition excludes -->
4945-
4946- <condition property="java.excludes.awt"
4947- value="${java.part.awt}">
4948- <isset property="setup.noAWT"/>
4949- </condition>
4950-
4951- <property name="java.excludes.all" value="${java.excludes.awt}" />
4952- <echo message="java.excludes.all: ${java.excludes.all}" />
4953- </target>
4954-
4955-
4956- <!-- ================================================================== -->
4957- <!--
4958- - Declare all paths and user defined variables.
4959- -->
4960- <target name="declare.common" description="Declare properties" depends="base.init">
4961-
4962- <property name="config.nativewindow" value="${config}/nativewindow" />
4963-
4964- <property name="rootrel.src" value="src/nativewindow" />
4965- <property name="rootrel.src.java" value="${rootrel.src}/classes" />
4966- <property name="rootrel.src.c" value="${rootrel.src}/native" />
4967-
4968- <property name="rootrel.src.generated" value="${rootrel.build}/nativewindow/gensrc" />
4969- <property name="rootrel.generated.c" value="${rootrel.src.generated}/native" />
4970-
4971- <!-- The source directories. -->
4972- <property name="src.java" value="${project.root}/${rootrel.src.java}" />
4973- <property name="src.c" value="${project.root}/${rootrel.src.c}" />
4974-
4975- <!-- The generated source directories. -->
4976- <property name="src.generated" value="${build.nativewindow}/gensrc" />
4977- <property name="src.generated.java" value="${src.generated}/classes" />
4978- <property name="src.generated.c" value="${src.generated}/native" />
4979-
4980- <!-- The compiler output directories. -->
4981- <property name="classes" value="${build.nativewindow}/classes" />
4982-
4983- <property name="javah.classpath" value="${gluegen-rt.jar}:${classes}" />
4984-
4985- <!-- The headers from which Java files are generated -->
4986- <dirset id="stub.includes.fileset.all" dir=".">
4987- <include name="${stub.includes}/macosx/**" />
4988- <include name="${stub.includes}/win32/**" />
4989- <include name="${stub.includes}/x11/**" />
4990- <include name="${stub.includes}/gluegen/**" />
4991- <include name="${stub.includes}/khr/**" />
4992- <include name="${stub.includes}/jni/**" />
4993- </dirset>
4994- <fileset id="stub.includes.dependencies.fileset.1" dir="${stub.includes}">
4995- <include name="macosx/**" />
4996- <include name="win32/**" />
4997- <include name="x11/**" />
4998- <include name="common/**" />
4999- <include name="jni/**" />
5000- </fileset>
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches

to all changes: