From 0906140a18690a9dced8dec12dfdd8cf4c95a4df Mon Sep 17 00:00:00 2001 From: sg215889 Date: Fri, 24 Jul 2009 07:29:28 -0700 Subject: Add: Extended support for CVM crosscompile: - Clean up X11 dependency - NativeWindow: - Seperate X11 out of core. - Add nativewindow.x11.jar and nativewindow.x11.cdc.jar - Newt: - Seperate X11,win,osx out of core. - Add newt.x11.jar, newt.win.jar, newt.osx.jar and the CDC variants Fix: External Context & Drawable (X11 and Windows) - Properly fetch current context values (ctx, display, drawable, ..) - Create GraphicsConfiguration based on the given pixelformat/FBConfig Fix: Java2D OpenGL Usage - Using the external context as shared for the external drawable - JAWTUtil: Skip locking in case of OGL-Flush-Queue - TODO: Windows FBO still does not work .. (X11 is fine) --- make/build-jogl.xml | 172 ++++++++++++++++++++++----------- make/build-nativewindow.xml | 204 +++++++++++++++++++++++----------------- make/build-newt.xml | 144 +++++++++++++++++++++++----- make/make.jogl.all.linux-x86.sh | 1 + make/nativewindowRIversion-cdc | 8 ++ make/nativewindowversion-cdc | 8 ++ 6 files changed, 370 insertions(+), 167 deletions(-) create mode 100644 make/nativewindowRIversion-cdc create mode 100644 make/nativewindowversion-cdc (limited to 'make') diff --git a/make/build-jogl.xml b/make/build-jogl.xml index f68f82a85..c48745da7 100644 --- a/make/build-jogl.xml +++ b/make/build-jogl.xml @@ -51,10 +51,14 @@ - - Some environment defs affecting compilation + - setup.noAWT is set iff: + !isWindows && !isOSX && !noX11 + - Internal settings, may not be necessary to set them manually, since all JAR archives are orthogonal. setup.noAWT setup.noCDC + --> @@ -73,6 +77,34 @@ --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -183,7 +215,12 @@ - + + + + + @@ -263,9 +300,13 @@ - + + + + + @@ -341,14 +382,16 @@ + + - - + + - + - + - + - + + + + + + + + + + + + + - - + + + + - - + - - + - + - - - - - - - - - @@ -1731,7 +1780,32 @@ - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + @@ -1822,18 +1892,6 @@ - - - - - - - - - - - diff --git a/make/build-nativewindow.xml b/make/build-nativewindow.xml index d6d57bce0..79e6b93ae 100644 --- a/make/build-nativewindow.xml +++ b/make/build-nativewindow.xml @@ -44,20 +44,12 @@ - - Some environment defs affecting compilation - setup.cdcfp - Using the CDC Java runtime library - - no DoubleBuffer - - no LongBuffer - - This will set - -> setup.noAWT + - setup.noAWT is set iff: + !isWindows && !isOSX && !noX11 - Internal settings, may not be necessary to set them manually, since all JAR archives are orthogonal. setup.noAWT - setup.noX11WindowsMacOsX, which implies: - setup.noX11 - setup.noWindows - setup.noMacOsX --> @@ -77,66 +69,48 @@ - - - - - - - + + + + + - - - - - - - - - + + + + + - - - + + + + - - - + - - - - - - - - + + + + - - - - + value="javax/media/nativewindow/*, javax/media/nativewindow/egl/*, javax/media/nativewindow/macosx/*, javax/media/nativewindow/windows/*, com/sun/nativewindow/impl/*, com/sun/nativewindow/impl/jvm/*"/> - + - - - + - - + + - - - - - - - - - - - - - + @@ -233,6 +192,7 @@ + @@ -242,10 +202,12 @@ + + @@ -285,9 +247,12 @@ + + + @@ -315,11 +280,13 @@ + + @@ -337,7 +304,6 @@ - @@ -393,6 +359,10 @@ emitter="com.sun.gluegen.JavaEmitter"> + + + @@ -409,6 +379,10 @@ emitter="com.sun.gluegen.JavaEmitter"> + + + @@ -468,22 +442,22 @@ - Compile the original and generated source. The composable pipelines - will be generated. --> - + - - + - + - + - + @@ -848,6 +822,29 @@ + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + - + + excludes="${java.part.awt} ${java.part.x11}"/> - - + + + + + + + + @@ -69,15 +73,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + value="com/sun/javafx/newt/*, com/sun/javafx/newt/util/*, com/sun/javafx/newt/impl/*"/> + + + + + + @@ -99,7 +139,12 @@ - + + + + + @@ -161,9 +206,16 @@ - + + + + + + + + @@ -182,28 +234,35 @@ + + - - - + + - - + + + + + + + + @@ -510,13 +569,18 @@ - - - - - + + + + + + + + + + - - + + + + + + + + + + + + + + + includes="${java.part.x11}"/> + + + + + + + + + + + + + + + - + - - - + + + + + +