From 4dbb8731219212e27c9afb769a1c62b32bd230a6 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 5 Aug 2011 05:32:15 +0200 Subject: deployment resturcturing: combine nativewindow/jogl/newt ; newt: 'driver' separation ; android cleanup remaining all-in-one jnlp's / jars: jogl-all-awt.jnlp -> jogl.all.jar jogl-all-noawt.jnlp -> jogl.all-noawt.jar jogl-all-mobile.jnlp -> jogl.all-mobile.jar native for all above: jogl-all-natives-linux-amd64.jar jogl.all-android.apk jogl.all-android.jar more may follow for each supported platfrom ++++ - newt: proper 'driver' separation - all drivers reside now in jogamp.newt.driver.* - remove intptr.cfg / use gluegen's --- make/build-common.xml | 297 ++++++++++++++++-------- make/build-jogl.xml | 289 +++++++---------------- make/build-nativewindow.xml | 52 ++--- make/build-newt.xml | 205 ++++++++-------- make/build-test.xml | 18 +- make/build.xml | 138 +++++++++-- make/config/intptr.cfg | 17 -- make/config/jogl/cg-common.cfg | 1 + make/config/jogl/cglext.cfg | 3 +- make/config/jogl/egl.cfg | 5 +- make/config/jogl/eglext.cfg | 5 +- make/config/jogl/gl-es1.cfg | 2 +- make/config/jogl/gl-es2.cfg | 2 +- make/config/jogl/gl-gl4bc.cfg | 1 - make/config/jogl/gl-headers.cfg | 1 + make/config/jogl/gl-if-gl2.cfg | 1 - make/config/jogl/gl-if-gl3.cfg | 1 - make/config/jogl/gl-if-gl3bc.cfg | 1 - make/config/jogl/gl-if-gl4.cfg | 1 - make/config/jogl/gl3-headers.cfg | 1 + make/config/jogl/gl3ext-headers.cfg | 1 + make/config/jogl/glu-gl2.cfg | 3 +- make/config/jogl/glxext.cfg | 1 - make/config/jogl/wgl-win32.cfg | 2 - make/config/jogl/wglext.cfg | 1 - make/config/nativewindow/jawt-win32.cfg | 3 +- make/config/nativewindow/jawt-x11.cfg | 3 +- make/config/nativewindow/win32-lib.cfg | 5 +- make/config/nativewindow/x11-lib.cfg | 3 +- make/joglversion | 1 + make/nativewindowversion | 1 + make/newtversion | 1 + make/scripts/lstjars.sh | 78 ++----- make/scripts/make.jogl.all.linux-armv7-cross.sh | 6 +- make/scripts/make.jogl.all.linux-x86.sh | 9 +- make/scripts/make.jogl.all.linux-x86_64.sh | 6 +- make/scripts/make.jogl.all.macosx.sh | 1 - make/scripts/make.jogl.all.win32.bat | 7 +- make/scripts/make.jogl.all.win64.bat | 7 +- make/scripts/tests.sh | 2 +- make/stub_includes/egl/EGL/eglplatform.h | 2 +- make/versions.xml | 1 + 42 files changed, 598 insertions(+), 587 deletions(-) delete mode 100644 make/config/intptr.cfg (limited to 'make') diff --git a/make/build-common.xml b/make/build-common.xml index b0759f3a4..040e9e5e7 100644 --- a/make/build-common.xml +++ b/make/build-common.xml @@ -16,6 +16,7 @@ + @@ -87,20 +88,27 @@ + - - - - - - + + + + + + + + + + + - + + @@ -130,6 +139,9 @@ + + + @@ -227,161 +239,242 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - + + - - - + + + + - + - + + + - - + + - + + + + + + - - - + + + + - + + + - - - + - + + - - - + + - + + - - - + + - + - - + 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}"/> - + + + - - - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/make/build-jogl.xml b/make/build-jogl.xml index 9747c67cf..a6aa04e5a 100644 --- a/make/build-jogl.xml +++ b/make/build-jogl.xml @@ -35,10 +35,6 @@ - property in gluegen.properties; again see the example file in this - directory. - - - Optional properties: - - -Djogl.cg=1 when combined with the build or javadoc targets will cause - - the experimental binding to NVidia's Cg language to be built. - - - Thanks to Rob Grzywinski and Artur Biesiadowski for the bulk of the - ANT build, including the GlueGen and StaticGLInfo tasks, the building of - the Java generated sources, the first and second phase Java compiles, and @@ -46,10 +42,13 @@ - port to the ant-contrib CPPTask framework. Thanks to Athomas Goldberg for - the original OS detection code. - - - Some environment defs affecting compilation + - Some environment defs affecting native compilation (only) + setup.noNativeDesktop - drop native desktop bindings (glx, wgl, ..) + + setup.addNativeOpenMAX - add experimental binding to Khrono's OpenMAX - - setup.nodesktop is set iff: - !isWindows && !isOSX && !isX11 + setup.addNativeNVidiaCG - add experimental binding to NVidia's Cg language + (enabled for windows, osx and X11 per default) - Internal settings, may not be necessary to set them manually, since all JAR archives are orthogonal. @@ -66,6 +65,14 @@ + + + + + + + + + - - - - - + @@ -176,15 +182,7 @@ - - - - - - - + @@ -691,7 +689,7 @@ - + @@ -781,7 +779,7 @@ - from the C GL headers. This involves setting the taskdef and creating - the classpath reference id then running the task on each header. --> - + @@ -1039,7 +1037,7 @@ @@ -1189,6 +1187,12 @@ + + + + + + @@ -1238,7 +1242,7 @@ - + @@ -1275,8 +1279,8 @@ - - + + @@ -1287,27 +1291,16 @@ - + - - + + - - - - - - - - - - - @@ -1349,15 +1342,15 @@ - - + + - + @@ -1395,7 +1388,7 @@ - + @@ -1406,35 +1399,28 @@ - + - - - - - - + - + - + @@ -1446,7 +1432,7 @@ - + @@ -1457,9 +1443,9 @@ + includes="${java.part.nonjava}"/> + includes="${jogl.util.jar} ${jogl.util.fixedfuncemu.jar}" /> @@ -1467,7 +1453,7 @@ @@ -1478,148 +1464,105 @@ - - - - - - - - + + - + - + - - - - - - - - + + + includes="${java.part.egl} ${java.part.es1} ${java.part.es2}" + excludes="${java.part.awt} ${java.part.es1.dbg} ${java.part.es2.dbg}"/> - + - - - + includes="${java.part.es1.dbg} ${java.part.es2.dbg}"/> - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + - + - - + + - + - + - + - + - + - + + + + + + + @@ -1633,24 +1576,8 @@ - on the platform specific build targets. To circumvent any - errors, ensure that the source is built first. --> - - - - - - - - - + - - - - - - - - - - - - - + - - - - - - - - - - - - - + - - diff --git a/make/build-nativewindow.xml b/make/build-nativewindow.xml index 2353fd3d8..e3fcdb5e2 100644 --- a/make/build-nativewindow.xml +++ b/make/build-nativewindow.xml @@ -42,10 +42,8 @@ - port to the ant-contrib CPPTask framework. Thanks to Athomas Goldberg for - the original OS detection code. - - - Some environment defs affecting compilation - - - setup.nodesktop is set iff: - !isWindows && !isOSX && !isX11 + - Some environment defs affecting native compilation + setup.noNativeAWT - Internal settings, may not be necessary to set them manually, since all JAR archives are orthogonal. @@ -66,15 +64,6 @@ --> - - - - - - - - - + + + + + + @@ -514,7 +509,7 @@ - + @@ -709,7 +704,7 @@ @@ -721,7 +716,7 @@ - + @@ -729,45 +724,30 @@ - + - + - - - - - - - - - - - - - + + - + - diff --git a/make/build-newt.xml b/make/build-newt.xml index c6bd9c861..c5c05386a 100644 --- a/make/build-newt.xml +++ b/make/build-newt.xml @@ -44,14 +44,17 @@ - - Some environment defs affecting compilation + - Some environment defs affecting native compilation + setup.noNativeDesktop + setup.addNativeKD + setup.addNativeIntelGDL + setup.addNativeBroadcomEGL + - Internal settings, may not be necessary to set them manually, since all JAR archives are orthogonal. setup.noAWT setup.noOpenGL - - setup.nodesktop is set iff: - !isWindows && !isOSX && !isX11 - --> @@ -73,9 +76,10 @@ - - - + + + + @@ -83,9 +87,10 @@ - - - + + + + @@ -93,26 +98,35 @@ + + + + + value="com/jogamp/newt/awt/** com/jogamp/newt/event/awt/** jogamp/newt/awt/** ${java.part.driver.awt}"/> - + - + - + - + - + + + - + @@ -125,12 +139,7 @@ - - - - - + @@ -193,14 +202,14 @@ - + @@ -366,6 +375,13 @@ + + + + + + + @@ -430,7 +446,7 @@ - + @@ -463,9 +479,9 @@ - - - + + + @@ -506,10 +522,10 @@ - - - - + + + + @@ -547,34 +563,26 @@ - - - + + - - - - - + + + - - - + - - - - - - - - - - + + + + + + + + + - - @@ -615,49 +623,56 @@ - + - + - + + includes="${java.part.driver.x11}"/> - - - - + + + + + includes="${java.part.driver.macosx}"/> - + + includes="${java.part.driver.android}"/> - + + includes="${java.part.driver.kd}"/> + + + + + + - - - - - - + + + - + @@ -667,29 +682,11 @@ - - - - - - - - - - - - - - - - + - @@ -709,7 +706,7 @@ source="${target.sourcelevel}" linkoffline="${javadoc.link} 142-packages" bottom="${javadoc.bottom}" > - + @@ -723,7 +720,7 @@ source="${target.sourcelevel}" linkoffline="${javadoc.link} 142-packages" bottom="${javadoc.bottom}" > - + @@ -737,7 +734,7 @@ source="${target.sourcelevel}" linkoffline="${javadoc.link} 142-packages" bottom="${javadoc.bottom}" > - + diff --git a/make/build-test.xml b/make/build-test.xml index 9dfc526c9..ed7584feb 100644 --- a/make/build-test.xml +++ b/make/build-test.xml @@ -71,10 +71,10 @@ - - - + + + @@ -87,7 +87,7 @@ memoryMaximumSize="${javac.memorymax}" includeAntRuntime="false" debug="${javacdebug}" debuglevel="${javacdebuglevel}"> - + @@ -135,7 +135,7 @@ failonerror="false" output="${test.class.result.file}"> - + @@ -286,7 +398,7 @@ source="${target.sourcelevel}" maxmemory="1024m" bottom="${javadoc.bottom}" > - + @@ -307,7 +419,7 @@ source="${target.sourcelevel}" maxmemory="1024m" bottom="${javadoc.bottom}" > - + @@ -329,7 +441,7 @@ source="${target.sourcelevel}" maxmemory="1024m" bottom="${javadoc.bottom}" > - + @@ -350,7 +462,7 @@ source="${target.sourcelevel}" maxmemory="1024m" bottom="${javadoc.bottom}" > - + diff --git a/make/config/intptr.cfg b/make/config/intptr.cfg deleted file mode 100644 index c946e4851..000000000 --- a/make/config/intptr.cfg +++ /dev/null @@ -1,17 +0,0 @@ -CustomCCode #ifdef _WIN32 -CustomCCode #ifdef _MSC_VER -CustomCCode /* This typedef is apparently needed for Microsoft compilers before VC8, -CustomCCode and on Windows CE */ -CustomCCode #if (_MSC_VER < 1400) || defined(UNDER_CE) -CustomCCode #ifdef _WIN64 -CustomCCode typedef long long intptr_t; -CustomCCode #else -CustomCCode typedef int intptr_t; -CustomCCode #endif -CustomCCode #endif -CustomCCode #else -CustomCCode #include -CustomCCode #endif -CustomCCode #else -CustomCCode #include -CustomCCode #endif diff --git a/make/config/jogl/cg-common.cfg b/make/config/jogl/cg-common.cfg index 7ec47390f..606f86b9d 100644 --- a/make/config/jogl/cg-common.cfg +++ b/make/config/jogl/cg-common.cfg @@ -119,6 +119,7 @@ RuntimeExceptionType CgException # generated C code # +CustomCCode #include /* android */ CustomCCode #include CustomCCode #include CustomCCode diff --git a/make/config/jogl/cglext.cfg b/make/config/jogl/cglext.cfg index 721fe911b..34a59dda3 100644 --- a/make/config/jogl/cglext.cfg +++ b/make/config/jogl/cglext.cfg @@ -23,8 +23,9 @@ GetProcAddressTableExpr _context.getCGLExtProcAddressTable() # Ignore everything that doesn't start with cgl or CGL IgnoreNot ^(cgl|CGL).+ +CustomCCode #include +CustomCCode #include Include gl-headers.cfg -Include ../intptr.cfg CustomJavaCode CGLExt public boolean isFunctionAvailable(String glFunctionName); CustomJavaCode CGLExt public boolean isExtensionAvailable(String glExtensionName); diff --git a/make/config/jogl/egl.cfg b/make/config/jogl/egl.cfg index ea299bfcc..ee74b46e6 100644 --- a/make/config/jogl/egl.cfg +++ b/make/config/jogl/egl.cfg @@ -21,10 +21,11 @@ GetProcAddressTableExpr _table ArgumentIsString eglGetProcAddress 0 ReturnsString eglQueryString +CustomCCode #include /* android */ +CustomCCode #include +CustomCCode #include CustomCCode #include -Include ../intptr.cfg - CustomJavaCode EGL private static EGLProcAddressTable _table = new EGLProcAddressTable(new GLProcAddressResolver()); CustomJavaCode EGL public static void resetProcAddressTable(DynamicLookupHelper lookup) { CustomJavaCode EGL _table.reset(lookup); diff --git a/make/config/jogl/eglext.cfg b/make/config/jogl/eglext.cfg index 3af90d3af..2e422ff72 100644 --- a/make/config/jogl/eglext.cfg +++ b/make/config/jogl/eglext.cfg @@ -20,6 +20,9 @@ EmitProcAddressTable true ProcAddressTableClassName EGLExtProcAddressTable GetProcAddressTableExpr _context.getEGLExtProcAddressTable() +CustomCCode #include /* android */ +CustomCCode #include +CustomCCode #include CustomCCode /* Define EGL_EGLEXT_PROTOTYPES so that the EGL extension prototypes in CustomCCode "eglext.h" are parsed. */ CustomCCode #define EGL_EGLEXT_PROTOTYPES @@ -27,8 +30,6 @@ CustomCCode CustomCCode #include CustomCCode #include -Include ../intptr.cfg - # There are some #defines in eglext.h that GlueGen and PCPP don't currently handle CustomJavaCode EGLExt /** Part of EGL_KHR_image */ CustomJavaCode EGLExt public static final long EGL_NO_IMAGE = 0; diff --git a/make/config/jogl/gl-es1.cfg b/make/config/jogl/gl-es1.cfg index 88ce09569..518dc07b5 100644 --- a/make/config/jogl/gl-es1.cfg +++ b/make/config/jogl/gl-es1.cfg @@ -78,6 +78,7 @@ CustomJavaCode GLES1Impl glClearDepthf((float)depth); } CustomJavaCode GLES1Impl public void glDepthRange(double zNear, double zFar) { CustomJavaCode GLES1Impl glDepthRangef((float)zNear, (float)zFar); } +CustomCCode #include /* android */ CustomCCode /* Define GL_GLEXT_PROTOTYPES so that the OpenGL extension prototypes in CustomCCode "glext.h" are parsed. */ CustomCCode #define GL_GLEXT_PROTOTYPES @@ -87,7 +88,6 @@ CustomCCode /* #define GL_APICALL __declspec(dllimport) */ CustomCCode #include CustomCCode #include CustomCCode #include -Include ../intptr.cfg IncludeAs CustomJavaCode GLES1Impl gl-impl-CustomJavaCode-common.java IncludeAs CustomJavaCode GLES1Impl gl-impl-CustomJavaCode-gles1.java diff --git a/make/config/jogl/gl-es2.cfg b/make/config/jogl/gl-es2.cfg index f529ddbf7..614904aa0 100644 --- a/make/config/jogl/gl-es2.cfg +++ b/make/config/jogl/gl-es2.cfg @@ -62,6 +62,7 @@ JavaPrologue glGetIntegerv if ( glStateTracker.getInt(pname, params, params_offs IncludeAs CustomJavaCode GLES2 gl-if-CustomJavaCode-gles2.java +CustomCCode #include /* android */ CustomCCode /* Define GL_GLEXT_PROTOTYPES so that the OpenGL extension prototypes in CustomCCode "glext.h" are parsed. */ CustomCCode #define GL_GLEXT_PROTOTYPES @@ -71,7 +72,6 @@ CustomCCode /* #define GL_APICALL __declspec(dllimport) */ CustomCCode #include CustomCCode #include CustomCCode #include -Include ../intptr.cfg IncludeAs CustomJavaCode GLES2Impl gl-impl-CustomJavaCode-common.java IncludeAs CustomJavaCode GLES2Impl gl-impl-CustomJavaCode-gles2.java diff --git a/make/config/jogl/gl-gl4bc.cfg b/make/config/jogl/gl-gl4bc.cfg index 6833d24d5..67582af91 100644 --- a/make/config/jogl/gl-gl4bc.cfg +++ b/make/config/jogl/gl-gl4bc.cfg @@ -89,7 +89,6 @@ CustomJavaCode GL4bcImpl glOrtho((double)left, (double)right, (double)bottom, Include gl-headers.cfg Include gl3ext-headers.cfg -Include ../intptr.cfg IncludeAs CustomJavaCode GL4bcImpl gl-impl-CustomJavaCode-common.java IncludeAs CustomJavaCode GL4bcImpl gl-impl-CustomJavaCode-gl4bc.java diff --git a/make/config/jogl/gl-headers.cfg b/make/config/jogl/gl-headers.cfg index a23d09dc1..d94e217de 100644 --- a/make/config/jogl/gl-headers.cfg +++ b/make/config/jogl/gl-headers.cfg @@ -1,3 +1,4 @@ +CustomCCode #include /* android */ CustomCCode /* Define GL_GLEXT_PROTOTYPES so that the OpenGL extension prototypes in CustomCCode "glext.h" are parsed. */ CustomCCode #define GL_GLEXT_PROTOTYPES diff --git a/make/config/jogl/gl-if-gl2.cfg b/make/config/jogl/gl-if-gl2.cfg index 6063bba7e..da6ca1647 100644 --- a/make/config/jogl/gl-if-gl2.cfg +++ b/make/config/jogl/gl-if-gl2.cfg @@ -35,7 +35,6 @@ CustomJavaCode GL2 public boolean glIsPBOPackEnabled(); CustomJavaCode GL2 public boolean glIsPBOUnpackEnabled(); Include gl-headers.cfg -Include ../intptr.cfg EmitProcAddressTable false ProcAddressTableClassName DontGenerateProcAddressTableStuff diff --git a/make/config/jogl/gl-if-gl3.cfg b/make/config/jogl/gl-if-gl3.cfg index 3ccc2c58c..fc08eccfd 100644 --- a/make/config/jogl/gl-if-gl3.cfg +++ b/make/config/jogl/gl-if-gl3.cfg @@ -31,7 +31,6 @@ EmitProcAddressTable false TagNativeBinding true Include gl3-headers.cfg -Include ../intptr.cfg EmitProcAddressTable false ProcAddressTableClassName DontGenerateProcAddressTableStuff diff --git a/make/config/jogl/gl-if-gl3bc.cfg b/make/config/jogl/gl-if-gl3bc.cfg index f23d3710d..6765e099f 100644 --- a/make/config/jogl/gl-if-gl3bc.cfg +++ b/make/config/jogl/gl-if-gl3bc.cfg @@ -38,7 +38,6 @@ IgnoreExtension GL_EXT_point_parameters Include gl-headers.cfg Include gl3ext-headers.cfg -Include ../intptr.cfg EmitProcAddressTable false ProcAddressTableClassName DontGenerateProcAddressTableStuff diff --git a/make/config/jogl/gl-if-gl4.cfg b/make/config/jogl/gl-if-gl4.cfg index b660bfaac..dbcf633b2 100644 --- a/make/config/jogl/gl-if-gl4.cfg +++ b/make/config/jogl/gl-if-gl4.cfg @@ -29,5 +29,4 @@ GetProcAddressTableExpr DontGenerateProcAddressTableStuff TagNativeBinding true Include gl3-headers.cfg -Include ../intptr.cfg diff --git a/make/config/jogl/gl3-headers.cfg b/make/config/jogl/gl3-headers.cfg index 3cab4a4e9..8b35a07b4 100644 --- a/make/config/jogl/gl3-headers.cfg +++ b/make/config/jogl/gl3-headers.cfg @@ -1,3 +1,4 @@ +CustomCCode #include /* android */ CustomCCode /* Define GL3_PROTOTYPES so that the OpenGL extension prototypes in CustomCCode "gl3.h" are parsed. */ CustomCCode #define GL3_PROTOTYPES diff --git a/make/config/jogl/gl3ext-headers.cfg b/make/config/jogl/gl3ext-headers.cfg index dfc4ea796..5e2c7aa37 100644 --- a/make/config/jogl/gl3ext-headers.cfg +++ b/make/config/jogl/gl3ext-headers.cfg @@ -1,3 +1,4 @@ +CustomCCode #include /* android */ CustomCCode /* Define GL_GL3EXT_PROTOTYPES so that the OpenGL extension prototypes in CustomCCode "gl3ext.h" are parsed. */ CustomCCode #define GL_GL3EXT_PROTOTYPES diff --git a/make/config/jogl/glu-gl2.cfg b/make/config/jogl/glu-gl2.cfg index 5909c8743..9387b4c4a 100644 --- a/make/config/jogl/glu-gl2.cfg +++ b/make/config/jogl/glu-gl2.cfg @@ -8,6 +8,7 @@ ImplPackage javax.media.opengl.glu.gl2 ImplJavaClass GLUgl2 ParentClass GLUgl2 GLU +CustomCCode #include /* android */ CustomCCode #if defined(WIN32) CustomCCode #define WIN32_LEAN_AND_MEAN CustomCCode #include @@ -22,8 +23,6 @@ CustomCCode #elif defined(__unix__) CustomCCode #include CustomCCode #endif -Include ../intptr.cfg - EmitProcAddressTable true ProcAddressTablePackage jogamp.opengl.glu.gl2 ProcAddressTableClassName GLUgl2ProcAddressTable diff --git a/make/config/jogl/glxext.cfg b/make/config/jogl/glxext.cfg index 82490a2e8..de23b9f17 100644 --- a/make/config/jogl/glxext.cfg +++ b/make/config/jogl/glxext.cfg @@ -26,7 +26,6 @@ Import jogamp.nativewindow.x11.* IgnoreNot ^(glX|GLX).+ Include gl-headers.cfg -Include ../intptr.cfg CustomCCode /* Provide Windows typedefs */ CustomCCode typedef void* LPVOID; diff --git a/make/config/jogl/wgl-win32.cfg b/make/config/jogl/wgl-win32.cfg index a86834531..3fd6ad928 100644 --- a/make/config/jogl/wgl-win32.cfg +++ b/make/config/jogl/wgl-win32.cfg @@ -37,8 +37,6 @@ CustomCCode #undef WIN32_LEAN_AND_MEAN CustomCCode #include CustomCCode #include -Include ../intptr.cfg - DropUniqVendorExtensions AMD # We need GL_APPLE_float_pixels for our pbuffer implementation # DropUniqVendorExtensions APPLE diff --git a/make/config/jogl/wglext.cfg b/make/config/jogl/wglext.cfg index d37a861b7..15986b6cf 100644 --- a/make/config/jogl/wglext.cfg +++ b/make/config/jogl/wglext.cfg @@ -25,7 +25,6 @@ Ignore GL_.+ Ignore gl.+ Include gl-headers.cfg -Include ../intptr.cfg # FIXME: for the time being, ignore all extensions requiring the # presence of java.nio.LongBuffer because it doesn't exist on CDC/FP + diff --git a/make/config/nativewindow/jawt-win32.cfg b/make/config/nativewindow/jawt-win32.cfg index d1fa7020a..5b571f719 100644 --- a/make/config/nativewindow/jawt-win32.cfg +++ b/make/config/nativewindow/jawt-win32.cfg @@ -8,7 +8,8 @@ Opaque long HDC IgnoreField JAWT_Win32DrawingSurfaceInfo null IgnoreField JAWT_Win32DrawingSurfaceInfo hpalette -Include ../intptr.cfg +CustomCCode #include +CustomCCode #include StructPackage JAWT_Win32DrawingSurfaceInfo jogamp.nativewindow.jawt.windows EmitStruct JAWT_Win32DrawingSurfaceInfo diff --git a/make/config/nativewindow/jawt-x11.cfg b/make/config/nativewindow/jawt-x11.cfg index ac9d1aa9a..05db2aa0c 100644 --- a/make/config/nativewindow/jawt-x11.cfg +++ b/make/config/nativewindow/jawt-x11.cfg @@ -8,7 +8,8 @@ Opaque long Display * IgnoreField JAWT_X11DrawingSurfaceInfo GetAWTColor -CustomCCode #include +CustomCCode #include +CustomCCode #include StructPackage JAWT_X11DrawingSurfaceInfo jogamp.nativewindow.jawt.x11 EmitStruct JAWT_X11DrawingSurfaceInfo diff --git a/make/config/nativewindow/win32-lib.cfg b/make/config/nativewindow/win32-lib.cfg index 894211182..b8886bdac 100644 --- a/make/config/nativewindow/win32-lib.cfg +++ b/make/config/nativewindow/win32-lib.cfg @@ -29,10 +29,9 @@ CustomCCode #define WIN32_LEAN_AND_MEAN CustomCCode #include CustomCCode #undef WIN32_LEAN_AND_MEAN +CustomCCode #include +CustomCCode #include CustomCCode #include -CustomCCode #include - -Include ../intptr.cfg CustomCCode extern HINSTANCE GetApplicationHandle(); diff --git a/make/config/nativewindow/x11-lib.cfg b/make/config/nativewindow/x11-lib.cfg index 8848980ea..d9e4ccd0a 100644 --- a/make/config/nativewindow/x11-lib.cfg +++ b/make/config/nativewindow/x11-lib.cfg @@ -39,7 +39,8 @@ CustomJavaCode X11Lib private static int getFirstElement(int[] arr, int offset) CustomJavaCode XVisualInfo public static XVisualInfo create(XVisualInfo s) { XVisualInfo d = XVisualInfo.create(); d.getBuffer().put(s.getBuffer()); d.getBuffer().rewind(); s.getBuffer().rewind(); return d; } -CustomCCode #include +CustomCCode #include +CustomCCode #include CustomCCode #include CustomCCode #include diff --git a/make/joglversion b/make/joglversion index c7d7f48ca..bf0220fa0 100644 --- a/make/joglversion +++ b/make/joglversion @@ -1,3 +1,4 @@ +Manifest-Version: 1.0 Specification-Title: Java Bindings for OpenGL API Specification Specification-Version: @BASEVERSION@ Specification-Vendor: JogAmp Community diff --git a/make/nativewindowversion b/make/nativewindowversion index 462ffdba5..3eb3bc2c2 100644 --- a/make/nativewindowversion +++ b/make/nativewindowversion @@ -1,3 +1,4 @@ +Manifest-Version: 1.0 Specification-Title: Native Window Interface API Specification Specification-Version: @BASEVERSION@ Specification-Vendor: JogAmp Community diff --git a/make/newtversion b/make/newtversion index 84847fb65..e8aa60caa 100644 --- a/make/newtversion +++ b/make/newtversion @@ -1,3 +1,4 @@ +Manifest-Version: 1.0 Specification-Title: NEWT API Specification Specification-Version: @BASEVERSION@ Specification-Vendor: JogAmp Community diff --git a/make/scripts/lstjars.sh b/make/scripts/lstjars.sh index c72a48a9b..82e378e20 100755 --- a/make/scripts/lstjars.sh +++ b/make/scripts/lstjars.sh @@ -34,61 +34,33 @@ function listdeployment() { echo JOGL Deployment Payload for $JAR_SUFFIX echo - echo JOGL ES1 NEWT CORE - report gluegen-rt.$JAR_SUFFIX nativewindow.all-noawt.$JAR_SUFFIX jogl.core.$JAR_SUFFIX jogl.util.$JAR_SUFFIX jogl.egl.$JAR_SUFFIX jogl.gles1.$JAR_SUFFIX newt.all-noawt.$JAR_SUFFIX libgluegen-rt.so.gz libjogl_es1.so.gz libnewt.so.gz + echo JOGL ALL + report gluegen-rt.$JAR_SUFFIX jogl.all.$JAR_SUFFIX libgluegen-rt.so.gz libnativewindow_awt.so.gz libnativewindow_x11.so.gz libjogl_desktop.so.gz libnewt.so.gz echo - echo JOGL ES2 NEWT CORE - report gluegen-rt.$JAR_SUFFIX nativewindow.all-noawt.$JAR_SUFFIX jogl.core.$JAR_SUFFIX jogl.util.$JAR_SUFFIX jogl.egl.$JAR_SUFFIX jogl.gles2.$JAR_SUFFIX newt.all-noawt.$JAR_SUFFIX libgluegen-rt.so.gz libjogl_es2.so.gz libnewt.so.gz + echo JOGL ALL no AWT + report gluegen-rt.$JAR_SUFFIX jogl.all-noawt.$JAR_SUFFIX libgluegen-rt.so.gz libnativewindow_x11.so.gz libjogl_desktop.so.gz libnewt.so.gz echo - echo JOGL ES2 NEWT CORE FIXED - report gluegen-rt.$JAR_SUFFIX nativewindow.all-noawt.$JAR_SUFFIX jogl.core.$JAR_SUFFIX jogl.util.$JAR_SUFFIX jogl.egl.$JAR_SUFFIX jogl.gles2.$JAR_SUFFIX jogl.util.fixedfuncemu.$JAR_SUFFIX newt.all-noawt.$JAR_SUFFIX libgluegen-rt.so.gz libjogl_es2.so.gz libnewt.so.gz - echo - - echo JOGL GL2ES12 NEWT - report gluegen-rt.$JAR_SUFFIX nativewindow.all-noawt.$JAR_SUFFIX jogl.core.$JAR_SUFFIX jogl.util.$JAR_SUFFIX jogl.os.$OSS.$JAR_SUFFIX jogl.gl2es12.$JAR_SUFFIX newt.all-noawt.$JAR_SUFFIX libgluegen-rt.so.gz libjogl_gl2es12.so.gz libnewt.so.gz libnativewindow_$OSS.so.gz - echo - - echo JOGL GL2 NEWT - report gluegen-rt.$JAR_SUFFIX nativewindow.all-noawt.$JAR_SUFFIX jogl.core.$JAR_SUFFIX jogl.util.$JAR_SUFFIX jogl.os.$OSS.$JAR_SUFFIX jogl.gldesktop.$JAR_SUFFIX newt.all-noawt.$JAR_SUFFIX libgluegen-rt.so.gz libjogl_desktop.so.gz libnewt.so.gz libnativewindow_$OSS.so.gz - echo - - echo JOGL GL2 AWT - report gluegen-rt.$JAR_SUFFIX nativewindow.all.$JAR_SUFFIX jogl.core.$JAR_SUFFIX jogl.util.$JAR_SUFFIX jogl.os.$OSS.$JAR_SUFFIX jogl.gldesktop.$JAR_SUFFIX jogl.awt.$JAR_SUFFIX libgluegen-rt.so.gz libjogl_desktop.so.gz libnativewindow_$OSS.so.gz libnativewindow_awt.so.gz - echo - - echo JOGL ALL AWT - report gluegen-rt.$JAR_SUFFIX nativewindow.all.$JAR_SUFFIX jogl.all.$JAR_SUFFIX libgluegen-rt.so.gz libjogl_desktop.so.gz libnativewindow_$OSS.so.gz libnativewindow_awt.so.gz - echo - - echo JOGL ALL No AWT - report gluegen-rt.$JAR_SUFFIX nativewindow.all-noawt.$JAR_SUFFIX jogl.all-noawt.$JAR_SUFFIX newt.all-noawt.$JAR_SUFFIX libgluegen-rt.so.gz libjogl_desktop.so.gz libnativewindow_$OSS.so.gz libnewt.so.gz - echo - - echo JOGL GLU - report jogl.glu.*$JAR_SUFFIX - echo - - echo JOGL EVERYTHING - report *.all.$JAR_SUFFIX libgluegen-rt.so.gz libnativewindow_$OSS.so.gz libnativewindow_awt.so.gz libjogl_desktop.so.gz libjogl_es1.so.gz libjogl_es2.so.gz libnewt.so.gz + echo JOGL Android - mobile egl es1 es2 + report gluegen-rt.$JAR_SUFFIX jogl.all-android.$JAR_SUFFIX libgluegen-rt.so.gz libjogl_mobile.so.gz echo } rm -rf $STATDIR mkdir -p $STATDIR -cp -a $BUILDDIR/nativewindow/obj/*.so $STATDIR -cp -a $BUILDDIR/jogl/obj/*.so $STATDIR -cp -a $BUILDDIR/newt/obj/*.so $STATDIR -cp -a $BUILDDIR/nativewindow/*.jar $STATDIR -cp -a $BUILDDIR/jogl/*.jar $STATDIR -cp -a $BUILDDIR/newt/*.jar $STATDIR +cp -a $BUILDDIR/lib/*.so $STATDIR +cp -a $BUILDDIR/jar/* $STATDIR cp -a $BUILDDIR_GLUEGEN/gluegen-rt.jar $STATDIR -cp -a $BUILDDIR_GLUEGEN/gluegen-rt-natives-linux-i586.jar $STATDIR cp -a $BUILDDIR_GLUEGEN/obj/libgluegen-rt.so $STATDIR cd $STATDIR +rm -rf nope +mkdir -p nope/atomic +mv gluegen*jar *-natives*.jar nope/ +mv atomic/gluegen-gl.jar nope/atomic + for i in *.so ; do gzip $i done @@ -99,33 +71,27 @@ echo rm -f *.lst -for i in *.jar ; do +for i in *.jar atomic/*.jar ; do fname=$i - bname=$(basename $fname .jar) + bname=$(dirname $fname)/$(basename $fname .jar) echo list $fname to $bname.lst jar tf $fname | grep class | sort > $bname.lst done -rm -rf nope -mkdir -p nope - -mv jogl.test.lst *-noawt.lst *.all*.lst nope/ - -mv jogl.gl2es12.*.lst jogl.gldesktop.*.lst nope/ -echo duplicates - w/o gl2es12.* gldesktop.* +echo duplicates in atomics echo -sort jogl*.lst | uniq -d -mv nope/* . +sort atomic/jogl*.lst | uniq -d -mv jogl.test.lst *.all*.lst gluegen-gl.lst nope/ -cat *.lst | sort -u > allparts.lst -mv nope/* . -cat *.all.lst gluegen-rt.lst | sort -u > allall.lst +cat atomic/*.lst | sort -u > allparts.lst +mv nope/*jar . +cat jogl.all.lst gluegen-rt.lst | sort -u > allall.lst echo all vs allparts delta echo diff -Nur allparts.lst allall.lst +mv nope/* . + listdeployment jar if [ $pack200 -eq 1 ] ; then diff --git a/make/scripts/make.jogl.all.linux-armv7-cross.sh b/make/scripts/make.jogl.all.linux-armv7-cross.sh index bbde79949..9a6b00a4a 100755 --- a/make/scripts/make.jogl.all.linux-armv7-cross.sh +++ b/make/scripts/make.jogl.all.linux-armv7-cross.sh @@ -31,9 +31,9 @@ ant \ -DisX11=true \ -DisCrosscompilation=true \ \ - -DuseKD=true \ - -DuseOpenMAX=true \ - -DuseBroadcomEGL=true \ + -Dsetup.addNativeKD=true \ + -Dsetup.addNativeOpenMAX=true \ + -Dsetup.addNativeBroadcomEGL=true \ $* 2>&1 | tee make.jogl.all.linux-armv7-cross.log diff --git a/make/scripts/make.jogl.all.linux-x86.sh b/make/scripts/make.jogl.all.linux-x86.sh index f1f521203..b81cf79f6 100755 --- a/make/scripts/make.jogl.all.linux-x86.sh +++ b/make/scripts/make.jogl.all.linux-x86.sh @@ -28,15 +28,13 @@ if [ "$1" = "-libdir" ] ; then fi -# -Djogl.cg=1 # -Dc.compiler.debug=true -# -DuseOpenMAX=true \ +# -Dsetup.addNativeOpenMAX=true \ # -Dgluegen.cpptasks.detected.os=true \ # -DisUnix=true \ # -DisLinux=true \ # -DisLinuxX86=true \ # -DisX11=true \ -# -Djogl.cg=1 \ #LD_LIBRARY_PATH=/opt-linux-x86_64/mesa-7.8.1/lib64 #export LD_LIBRARY_PATH @@ -55,10 +53,9 @@ echo LIBGL_DEBUG: $LIBGL_DEBUG 2>&1 | tee -a $LOGF ant \ $CUSTOMLIBDIR \ - -Djogl.cg=1 \ -Drootrel.build=build-x86 \ -Dos.arch=x86 \ - -DuseKD=true \ - -DuseOpenMAX=true \ + -Dsetup.addNativeOpenMAX=true \ + -Dsetup.addNativeKD=true \ $* 2>&1 | tee -a $LOGF diff --git a/make/scripts/make.jogl.all.linux-x86_64.sh b/make/scripts/make.jogl.all.linux-x86_64.sh index aab3eecae..e57f0a9ad 100755 --- a/make/scripts/make.jogl.all.linux-x86_64.sh +++ b/make/scripts/make.jogl.all.linux-x86_64.sh @@ -27,7 +27,6 @@ if [ "$1" = "-libdir" ] ; then shift fi -# -Djogl.cg=1 # -Dc.compiler.debug=true \ # -Dgluegen.cpptasks.detected.os=true \ @@ -56,9 +55,8 @@ echo LIBGL_DEBUG: $LIBGL_DEBUG 2>&1 | tee -a $LOGF ant \ $CUSTOMLIBDIR \ -Djavacdebuglevel="source,lines,vars" \ - -Djogl.cg=1 \ -Drootrel.build=build-x86_64 \ - -DuseKD=true \ - -DuseOpenMAX=true \ + -Dsetup.addNativeOpenMAX=true \ + -Dsetup.addNativeKD=true \ $* 2>&1 | tee -a $LOGF diff --git a/make/scripts/make.jogl.all.macosx.sh b/make/scripts/make.jogl.all.macosx.sh index 967790b6e..0eaaa1c71 100755 --- a/make/scripts/make.jogl.all.macosx.sh +++ b/make/scripts/make.jogl.all.macosx.sh @@ -8,6 +8,5 @@ fi # -Dc.compiler.debug=true ant \ - -Djogl.cg=1 \ -Drootrel.build=build-macosx \ $* 2>&1 | tee make.jogl.all.macosx.log diff --git a/make/scripts/make.jogl.all.win32.bat b/make/scripts/make.jogl.all.win32.bat index 09cbfbe4e..c9aac8331 100755 --- a/make/scripts/make.jogl.all.win32.bat +++ b/make/scripts/make.jogl.all.win32.bat @@ -9,8 +9,7 @@ set PATH=%JAVA_HOME%\bin;%ANT_PATH%\bin;c:\mingw\bin;%PATH% set LIB_GEN=%THISDIR%\lib set CLASSPATH=.;%THISDIR%\build-win32\classes REM -Dc.compiler.debug=true -REM -DuseOpenMAX=true -REM -DuseKD=true -REM -Djogl.cg=1 +REM -Dsetup.addNativeOpenMAX=true +REM -Dsetup.addNativeKD=true -ant -Drootrel.build=build-win32 -Djogl.cg=1 %1 %2 %3 %4 %5 %6 %7 %8 %9 > make.jogl.all.win32.log 2>&1 +ant -Drootrel.build=build-win32 %1 %2 %3 %4 %5 %6 %7 %8 %9 > make.jogl.all.win32.log 2>&1 diff --git a/make/scripts/make.jogl.all.win64.bat b/make/scripts/make.jogl.all.win64.bat index 7b43f73c1..5b1b10a8e 100755 --- a/make/scripts/make.jogl.all.win64.bat +++ b/make/scripts/make.jogl.all.win64.bat @@ -9,8 +9,7 @@ set PATH=%JAVA_HOME%\bin;%ANT_PATH%\bin;c:\mingw64\bin;c:\mingw\bin;%PATH% set LIB_GEN=%THISDIR%\lib set CLASSPATH=.;%THISDIR%\build-win64\classes REM -Dc.compiler.debug=true -REM -DuseOpenMAX=true -REM -DuseKD=true -REM -Djogl.cg=1 +REM -Dsetup.addNativeOpenMAX=true +REM -Dsetup.addNativeKD=true -ant -Dc.compiler.debug=true -Drootrel.build=build-win64 -Djogl.cg=1 %1 %2 %3 %4 %5 %6 %7 %8 %9 > make.jogl.all.win64.log 2>&1 +ant -Dc.compiler.debug=true -Drootrel.build=build-win64 %1 %2 %3 %4 %5 %6 %7 %8 %9 > make.jogl.all.win64.log 2>&1 diff --git a/make/scripts/tests.sh b/make/scripts/tests.sh index e10044f47..b4f635cd5 100755 --- a/make/scripts/tests.sh +++ b/make/scripts/tests.sh @@ -55,7 +55,7 @@ function jrun() { #D_ARGS="-Dnewt.debug.Window -Dnewt.debug.Display -Dnewt.debug.EDT" #D_ARGS="-Dnewt.debug.EDT" # D_ARGS="-Dnativewindow.debug.ToolkitLock.TraceLock -Dnativewindow.debug.X11Util.TraceDisplayLifecycle=true" - D_ARGS="-Dnativewindow.x11.mt-bug=true" + #D_ARGS="-Dnativewindow.x11.mt-bug=true" #D_ARGS="-Dnativewindow.x11.mt-bug=true -Djogl.debug.DebugGL" #D_ARGS="-Dnativewindow.x11.mt-bug=true -Djogl.debug=all" #D_ARGS="-Dnativewindow.x11.mt-bug=true -Dnativewindow.debug.NativeWindow -Dnativewindow.debug.X11Util -Dnativewindow.debug.ToolkitLock.TraceLock -Dnativewindow.debug.X11Util.TraceDisplayLifecycle=true" diff --git a/make/stub_includes/egl/EGL/eglplatform.h b/make/stub_includes/egl/EGL/eglplatform.h index 0a05f16f5..a661736c1 100644 --- a/make/stub_includes/egl/EGL/eglplatform.h +++ b/make/stub_includes/egl/EGL/eglplatform.h @@ -83,7 +83,7 @@ typedef int EGLNativeDisplayType; typedef void *EGLNativeWindowType; typedef void *EGLNativePixmapType; -#elif defined(__unix__) +#elif defined(__X11__) /* X11 (tentative) */ #include diff --git a/make/versions.xml b/make/versions.xml index 66e81d8c6..6cb59b978 100644 --- a/make/versions.xml +++ b/make/versions.xml @@ -12,6 +12,7 @@ betas before release candidates to give the Community time to react.--> +