diff options
Diffstat (limited to 'make/build-jogl.xml')
-rw-r--r-- | make/build-jogl.xml | 430 |
1 files changed, 0 insertions, 430 deletions
diff --git a/make/build-jogl.xml b/make/build-jogl.xml index a1f324d62..8f7a4ac5d 100644 --- a/make/build-jogl.xml +++ b/make/build-jogl.xml @@ -1891,436 +1891,6 @@ <!-- ================================================================== --> <!-- - - Build the platform-independent distribution out of jars built for - - Windows, Linux and Mac OS X; the Java sources for Jogl can't be - - fully cross-compiled at this time. To run this target, you need to - - specify the property jogl.dist.dir as a System property (i.e., - - "ant -Djogl.dist.dir=../dist dist"); directories named jogl-linux, - - jogl-win, and jogl-macosx need to be inside that directory and each - - of those directories needs to contain both the jogl.jar for that - - platform as well as the native code (libjogl.so, jogl.dll, or - - libjogl.jnilib). Also builds jars containing the native code for - - Windows, Linux, Mac OS X, Solaris/SPARC and Solaris/x86. - --> - <target name="dist.dir.check" unless="jogl.dist.dir"> - <fail> - - ****************************************************************** - ** To build the Jogl distribution out of the platform-specific ** - ** component jars and native code, the property jogl.dist.dir ** - ** needs to be specified on the command line. Please read the ** - ** comments associated with the "dist" target in the build.xml. ** - ****************************************************************** - </fail> - </target> - - <target name="dist.check.windows" if="jogl.dist.dir"> - <condition property="windows.complete"> - <and> - <available file="${jogl.dist.dir}/jogl-win/jogl.jar" /> - <available file="${jogl.dist.dir}/jogl-win/32/jogl.dll" /> - <available file="${jogl.dist.dir}/jogl-win/32/jogl_awt.dll" /> - <available file="${jogl.dist.dir}/jogl-win/32/jogl_cg.dll" /> - <available file="${jogl.dist.dir}/jogl-win/32/gluegen-rt.dll" /> - <available file="${jogl.dist.dir}/jogl-win/32/gluegen-rt-natives-windows-i586.jar" /> - </and> - </condition> - <fail unless="windows.complete"> - ****************************************************************** - ** Files are missing from the Windows build. This will cause ** - ** the distribution to be incomplete. Please check the status ** - ** of the Windows build and try again. ** - ****************************************************************** - </fail> - </target> - - <target name="dist.check.windows-amd64" if="jogl.dist.dir"> - <condition property="windows-amd64.complete"> - <and> - <available file="${jogl.dist.dir}/jogl-win/64/jogl.dll" /> - <available file="${jogl.dist.dir}/jogl-win/64/jogl_awt.dll" /> - <available file="${jogl.dist.dir}/jogl-win/64/jogl_cg.dll" /> - <available file="${jogl.dist.dir}/jogl-win/64/gluegen-rt.dll" /> - <available file="${jogl.dist.dir}/jogl-win/64/gluegen-rt-natives-windows-amd64.jar" /> - </and> - </condition> - <fail unless="windows-amd64.complete"> - ********************************************************************* - ** Files are missing from the Windows/AMD64 build. This will cause ** - ** the distribution to be incomplete. Please check the status ** - ** of the Windows/AMD64 build and try again. ** - ********************************************************************* - </fail> - </target> - - <target name="dist.check.linux" if="jogl.dist.dir"> - <condition property="linux.complete"> - <and> - <available file="${jogl.dist.dir}/jogl-linux/jogl.jar" /> - <available file="${jogl.dist.dir}/jogl-linux/32/libjogl.so" /> - <available file="${jogl.dist.dir}/jogl-linux/32/libjogl_awt.so" /> - <available file="${jogl.dist.dir}/jogl-linux/32/libjogl_cg.so" /> - <available file="${jogl.dist.dir}/jogl-linux/32/libgluegen-rt.so" /> - <available file="${jogl.dist.dir}/jogl-linux/32/gluegen-rt-natives-linux-i586.jar" /> - <!-- Assume we also copy over these generated files in the Linux build --> - <!-- in order to satisfy requests from end users that we provide these --> - <!-- files for easier source browsing in IDEs --> - <available file="${jogl.dist.dir}/jogl-linux/DebugGL2.java" /> - <available file="${jogl.dist.dir}/jogl-linux/TraceGL2.java" /> - <available file="${jogl.dist.dir}/jogl-linux/GL.java" /> - <available file="${jogl.dist.dir}/jogl-linux/GLU.java" /> - </and> - </condition> - <fail unless="linux.complete"> - ****************************************************************** - ** Files are missing from the Linux build. This will cause ** - ** the distribution to be incomplete. Please check the status ** - ** of the Linux build and try again. ** - ****************************************************************** - </fail> - </target> - - <target name="dist.check.linux-amd64" if="jogl.dist.dir"> - <condition property="linux-amd64.complete"> - <and> - <available file="${jogl.dist.dir}/jogl-linux/64/libjogl.so" /> - <available file="${jogl.dist.dir}/jogl-linux/64/libjogl_awt.so" /> - <available file="${jogl.dist.dir}/jogl-linux/64/libjogl_cg.so" /> - <available file="${jogl.dist.dir}/jogl-linux/64/libgluegen-rt.so" /> - <available file="${jogl.dist.dir}/jogl-linux/64/gluegen-rt-natives-linux-amd64.jar" /> - </and> - </condition> - <fail unless="linux-amd64.complete"> - ******************************************************************* - ** Files are missing from the Linux/AMD64 build. This will cause ** - ** the distribution to be incomplete. Please check the status ** - ** of the Linux/AMD64 build and try again. ** - ******************************************************************* - </fail> - </target> - - <target name="dist.check.macosx" if="jogl.dist.dir"> - <condition property="macosx.complete"> - <and> - <available file="${jogl.dist.dir}/jogl-macosx/jogl.jar" /> - <available file="${jogl.dist.dir}/jogl-macosx/ppc/libjogl.jnilib" /> - <available file="${jogl.dist.dir}/jogl-macosx/ppc/libjogl_awt.jnilib" /> - <available file="${jogl.dist.dir}/jogl-macosx/ppc/libjogl_cg.jnilib" /> - <available file="${jogl.dist.dir}/jogl-macosx/ppc/libgluegen-rt.jnilib" /> - <available file="${jogl.dist.dir}/jogl-macosx/ppc/gluegen-rt-natives-macosx-ppc.jar" /> - </and> - </condition> - <fail unless="macosx.complete"> - ****************************************************************** - ** Files are missing from the Mac OS X build. This will cause ** - ** the distribution to be incomplete. Please check the status ** - ** of the Mac OS X build and try again. ** - ****************************************************************** - </fail> - </target> - - - <target name="dist.check.macosxfat" if="jogl.dist.dir"> - <condition property="macosxfat.complete"> - <and> - <available file="${jogl.dist.dir}/jogl-macosx/jogl.jar" /> - <available file="${jogl.dist.dir}/jogl-macosx/fat/libjogl.jnilib" /> - <available file="${jogl.dist.dir}/jogl-macosx/fat/libjogl_awt.jnilib" /> - <available file="${jogl.dist.dir}/jogl-macosx/fat/libjogl_cg.jnilib" /> - <available file="${jogl.dist.dir}/jogl-macosx/fat/libgluegen-rt.jnilib" /> - <available file="${jogl.dist.dir}/jogl-macosx/fat/gluegen-rt-natives-macosx-universal.jar" /> - </and> - </condition> - <fail unless="macosxfat.complete"> - ****************************************************************** - ** Files are missing from the Mac OS X build. This will cause ** - ** the distribution to be incomplete. Please check the status ** - ** of the Mac OS X build and try again. ** - ****************************************************************** - </fail> - </target> - - - - <target name="dist.check.solsparc" if="jogl.dist.dir"> - <condition property="solsparc.complete"> - <and> - <available file="${jogl.dist.dir}/jogl-solsparc/jogl.jar" /> - <available file="${jogl.dist.dir}/jogl-solsparc/32/libjogl.so" /> - <available file="${jogl.dist.dir}/jogl-solsparc/32/libjogl_awt.so" /> - <available file="${jogl.dist.dir}/jogl-solsparc/32/libgluegen-rt.so" /> - <available file="${jogl.dist.dir}/jogl-solsparc/32/gluegen-rt-natives-solaris-sparc.jar" /> - </and> - </condition> - <fail unless="solsparc.complete"> - ****************************************************************** - ** Files are missing from the Solaris/SPARC build. This will ** - ** cause the distribution to be incomplete. Please check the ** - ** status of the Solaris/SPARC build and try again. ** - ****************************************************************** - </fail> - </target> - - <target name="dist.check.solsparcv9" if="jogl.dist.dir"> - <condition property="solsparcv9.complete"> - <and> - <available file="${jogl.dist.dir}/jogl-solsparc/jogl.jar" /> - <available file="${jogl.dist.dir}/jogl-solsparc/64/libjogl.so" /> - <available file="${jogl.dist.dir}/jogl-solsparc/64/libjogl_awt.so" /> - <available file="${jogl.dist.dir}/jogl-solsparc/64/libgluegen-rt.so" /> - <available file="${jogl.dist.dir}/jogl-solsparc/64/gluegen-rt-natives-solaris-sparcv9.jar" /> - </and> - </condition> - <fail unless="solsparcv9.complete"> - ****************************************************************** - ** Files are missing from the Solaris/SPARCv9 build. This will ** - ** cause the distribution to be incomplete. Please check the ** - ** status of the Solaris/SPARCv9 build and try again. ** - ****************************************************************** - </fail> - </target> - - <target name="dist.check.solx86" if="jogl.dist.dir"> - <condition property="solx86.complete"> - <and> - <available file="${jogl.dist.dir}/jogl-solx86/jogl.jar" /> - <available file="${jogl.dist.dir}/jogl-solx86/32/libjogl.so" /> - <available file="${jogl.dist.dir}/jogl-solx86/32/libjogl_awt.so" /> - <available file="${jogl.dist.dir}/jogl-solx86/32/libjogl_cg.so" /> - <available file="${jogl.dist.dir}/jogl-solx86/32/libgluegen-rt.so" /> - <available file="${jogl.dist.dir}/jogl-solx86/32/gluegen-rt-natives-solaris-i586.jar" /> - </and> - </condition> - <fail unless="solx86.complete"> - ****************************************************************** - ** Files are missing from the Solaris/x86 build. This will ** - ** cause the distribution to be incomplete. Please check the ** - ** status of the Solaris/x86 build and try again. ** - ****************************************************************** - </fail> - </target> - - <target name="dist.check.solamd64" if="jogl.dist.dir"> - <condition property="solamd64.complete"> - <and> - <available file="${jogl.dist.dir}/jogl-solx86/64/libjogl.so" /> - <available file="${jogl.dist.dir}/jogl-solx86/64/libjogl_awt.so" /> - <available file="${jogl.dist.dir}/jogl-solx86/64/libgluegen-rt.so" /> - <available file="${jogl.dist.dir}/jogl-solx86/64/gluegen-rt-natives-solaris-amd64.jar" /> - </and> - </condition> - <fail unless="solamd64.complete"> - ****************************************************************** - ** Files are missing from the Solaris/x86/64 (amd64) build. This * - ** will cause the distribution ** - ** to be incomplete. Please check the ** - ** status of the Solaris/x86 (amd64) build and try again. ** - ****************************************************************** - </fail> - </target> - - <!-- Helper task for dist target below --> - <!-- Required parameters: --> - <!-- zip.os.arch = the os/arch combination for this zip file (i.e., "windows-i586") --> - <!-- zip.src.so.dir = the directory containing the .so's / .dll's / .jnilib's for this platform--> - <target name="dist.build.zip"> - <property name="jogl.tmp.version" value="jogl-${tmp.version}-${zip.os.arch}" /> - <!-- Create all needed directories --> - <delete dir="${jogl.dist.dir}/tmp" failonerror="false" /> - <mkdir dir="${jogl.dist.dir}/tmp/${jogl.tmp.version}/lib" /> - <!-- Copy in files --> - <copy todir="${jogl.dist.dir}/tmp/${jogl.tmp.version}/lib"> - <fileset dir="${zip.src.so.dir}" includes="*${zip.so.suffix}" /> - </copy> - <copy file="${jogl.dist.dir}/jogl.jar" todir="${jogl.dist.dir}/tmp/${jogl.tmp.version}/lib" /> - <copy file="${jogl.dist.dir}/gluegen-rt.jar" todir="${jogl.dist.dir}/tmp/${jogl.tmp.version}/lib" /> - <copy file="../CHANGELOG.txt" todir="${jogl.dist.dir}/tmp/${jogl.tmp.version}" /> - <copy file="../COPYRIGHT.txt" todir="${jogl.dist.dir}/tmp/${jogl.tmp.version}" /> - <copy file="../LICENSE.txt" tofile="${jogl.dist.dir}/tmp/${jogl.tmp.version}/LICENSE-JOGL-${tmp.version}.txt" /> - <copy file="README-zip-bundles.txt" - tofile="${jogl.dist.dir}/tmp/${jogl.tmp.version}/README.txt" - overwrite="true"> - <filterset> - <filter token="VERSION" value="${tmp.version}"/> - </filterset> - </copy> - <copy file="../doc/userguide/index.html" tofile="${jogl.dist.dir}/tmp/${jogl.tmp.version}/Userguide.html" /> - <!-- zip it up --> - <zip destfile="${jogl.dist.dir}/${jogl.tmp.version}.zip" - basedir="${jogl.dist.dir}/tmp" - includes="${jogl.tmp.version}/**" /> - </target> - - <target name="dist" depends="dist.dir.check,dist.check.windows,dist.check.windows-amd64,dist.check.linux,dist.check.linux-amd64,dist.check.macosx,dist.check.macosxfat,dist.check.solsparc,dist.check.solsparcv9,dist.check.solx86,dist.check.solamd64,setup-version-RI,setup-version-non-RI"> - <delete> - <fileset dir="${jogl.dist.dir}" includes="*.jar" /> - </delete> - <delete> - <fileset dir="${jogl.dist.dir}" includes="*.zip" /> - </delete> - <delete dir="${jogl.dist.dir}/tmp" failonerror="false" /> - <delete dir="${jogl.dist.dir}/META-INF" failonerror="false" /> - <!-- Extract manifest from one of the jars to re-use it in the dist jar --> - <unjar src="${jogl.dist.dir}/jogl-win/jogl.jar" dest="${jogl.dist.dir}" > - <patternset> - <include name="META-INF/MANIFEST.MF" /> - </patternset> - </unjar> - <!-- Build jar files suitable for Java Web Start --> - <jar manifest="${jogl.dist.dir}/META-INF/MANIFEST.MF" destfile="${jogl.dist.dir}/jogl.jar" duplicate="preserve"> - <zipgroupfileset dir="${jogl.dist.dir}" - includes="jogl-win/jogl.jar, jogl-linux/jogl.jar, jogl-macosx/jogl.jar" /> - </jar> - <!-- Apply Pack200 repacking to allow later compression by that mechanism --> - <apply executable="pack200" verbose="true" > - <arg value="--repack" /> - <fileset file="${jogl.dist.dir}/jogl.jar" /> - </apply> - <jar destfile="${jogl.dist.dir}/jogl-natives-windows-i586.jar" - basedir="${jogl.dist.dir}/jogl-win/32" - includes="jogl.dll,jogl_awt.dll,jogl_cg.dll" /> - <jar destfile="${jogl.dist.dir}/jogl-natives-windows-amd64.jar" - basedir="${jogl.dist.dir}/jogl-win/64" - includes="jogl.dll,jogl_awt.dll,jogl_cg.dll" /> - <jar destfile="${jogl.dist.dir}/jogl-natives-linux-i586.jar" - basedir="${jogl.dist.dir}/jogl-linux/32" - includes="libjogl.so,libjogl_awt.so,libjogl_cg.so" /> - <jar destfile="${jogl.dist.dir}/jogl-natives-linux-amd64.jar" - basedir="${jogl.dist.dir}/jogl-linux/64" - includes="libjogl.so,libjogl_awt.so,libjogl_cg.so" /> - <jar destfile="${jogl.dist.dir}/jogl-natives-macosx-ppc.jar" - basedir="${jogl.dist.dir}/jogl-macosx/ppc" - includes="libjogl.jnilib,libjogl_awt.jnilib,libjogl_cg.jnilib" /> - <jar destfile="${jogl.dist.dir}/jogl-natives-macosx-universal.jar" - basedir="${jogl.dist.dir}/jogl-macosx/fat" - includes="libjogl.jnilib,libjogl_awt.jnilib,libjogl_cg.jnilib" /> - <jar destfile="${jogl.dist.dir}/jogl-natives-solaris-sparc.jar" - basedir="${jogl.dist.dir}/jogl-solsparc/32" - includes="libjogl.so,libjogl_awt.so" /> - <jar destfile="${jogl.dist.dir}/jogl-natives-solaris-sparcv9.jar" - basedir="${jogl.dist.dir}/jogl-solsparc/64" - includes="libjogl.so,libjogl_awt.so" /> - <jar destfile="${jogl.dist.dir}/jogl-natives-solaris-i586.jar" - basedir="${jogl.dist.dir}/jogl-solx86/32" - includes="libjogl.so,libjogl_awt.so,libjogl_cg.so" /> - <jar destfile="${jogl.dist.dir}/jogl-natives-solaris-amd64.jar" - basedir="${jogl.dist.dir}/jogl-solx86/64" - includes="libjogl.so,libjogl_awt.so" /> - <!-- Copy gluegen-rt.jar from Linux build (arbitrary; this jar is platform-independent) --> - <copy file="${jogl.dist.dir}/jogl-linux/gluegen-rt.jar" todir="${jogl.dist.dir}" /> - <!-- Copy gluegen-rt native jars out of platform-specific subdirectories --> - <copy todir="${jogl.dist.dir}"> - <fileset dir="${jogl.dist.dir}/jogl-win/32" includes="gluegen-natives-*.jar" /> - </copy> - <copy todir="${jogl.dist.dir}"> - <fileset dir="${jogl.dist.dir}/jogl-win/64" includes="gluegen-natives-*.jar" /> - </copy> - <copy todir="${jogl.dist.dir}"> - <fileset dir="${jogl.dist.dir}/jogl-linux/32" includes="gluegen-natives-*.jar" /> - </copy> - <copy todir="${jogl.dist.dir}"> - <fileset dir="${jogl.dist.dir}/jogl-linux/64" includes="gluegen-natives-*.jar" /> - </copy> - <copy todir="${jogl.dist.dir}"> - <fileset dir="${jogl.dist.dir}/jogl-macosx/ppc" includes="gluegen-natives-*.jar" /> - </copy> - <copy todir="${jogl.dist.dir}"> - <fileset dir="${jogl.dist.dir}/jogl-macosx/fat" includes="gluegen-natives-*.jar" /> - </copy> - <copy todir="${jogl.dist.dir}"> - <fileset dir="${jogl.dist.dir}/jogl-solsparc/32" includes="gluegen-natives-*.jar" /> - </copy> - <copy todir="${jogl.dist.dir}"> - <fileset dir="${jogl.dist.dir}/jogl-solsparc/64" includes="gluegen-natives-*.jar" /> - </copy> - <copy todir="${jogl.dist.dir}"> - <fileset dir="${jogl.dist.dir}/jogl-solx86/32" includes="gluegen-natives-*.jar" /> - </copy> - <copy todir="${jogl.dist.dir}"> - <fileset dir="${jogl.dist.dir}/jogl-solx86/64" includes="gluegen-natives-*.jar" /> - </copy> - - <!-- Build a source archive as well --> - <!-- First copy the generated files out of the Linux build results into the appropriate --> - <!-- directory of this source tree (so that they'll be blown away properly with an --> - <!-- "ant clean") --> - <mkdir dir="../${rootrel.build.jogl}/gensrc/classes/javax/media/opengl/glu" /> - <copy file="${jogl.dist.dir}/jogl-linux/DebugGL2.java" todir="../${rootrel.build.jogl}/gensrc/classes/javax/media/opengl" /> - <copy file="${jogl.dist.dir}/jogl-linux/TraceGL2.java" todir="../${rootrel.build.jogl}/gensrc/classes/javax/media/opengl" /> - <copy file="${jogl.dist.dir}/jogl-linux/GL.java" todir="../${rootrel.build.jogl}/gensrc/classes/javax/media/opengl" /> - <copy file="${jogl.dist.dir}/jogl-linux/GLU.java" todir="../${rootrel.build.jogl}/gensrc/classes/javax/media/opengl/glu" /> - <copy file="${jogl.dist.dir}/jogl-linux/GLUquadric.java" todir="../${rootrel.build.jogl}/gensrc/classes/javax/media/opengl/glu" /> - <zip destfile="${jogl.dist.dir}/jogl-${tmp.version}-src.zip" - basedir="../.." - includes="gluegen/LICENSE.txt,gluegen/doc/**,gluegen/make/**,gluegen/src/**,jogl/*.txt,jogl/${rootrel.build.jogl}/gensrc/classes/javax/media/opengl/**,jogl/doc/**,jogl/make/**,jogl/src/jogl/**" - excludes="**/*.class,**/*~" - /> - <!-- Create zip archives suitable for developers --> - <!-- Unfortunately, we have to replicate the os/arch name combinations from - gluegen-cpptasks.xml. The reason for this is that we can't generate these - zip archives on the platform where the builds run; we have to run the dist - target in order to get the platform-independent jogl.jar. --> - <antcall target="dist.build.zip" inheritAll="true"> - <param name="zip.os.arch" value="linux-i586" /> - <param name="zip.so.suffix" value=".so" /> - <param name="zip.src.so.dir" value="${jogl.dist.dir}/jogl-linux/32" /> - </antcall> - <antcall target="dist.build.zip" inheritAll="true"> - <param name="zip.os.arch" value="linux-amd64" /> - <param name="zip.so.suffix" value=".so" /> - <param name="zip.src.so.dir" value="${jogl.dist.dir}/jogl-linux/64" /> - </antcall> - <antcall target="dist.build.zip" inheritAll="true"> - <param name="zip.os.arch" value="macosx-ppc" /> - <param name="zip.so.suffix" value=".jnilib" /> - <param name="zip.src.so.dir" value="${jogl.dist.dir}/jogl-macosx/ppc" /> - </antcall> - <antcall target="dist.build.zip" inheritAll="true"> - <param name="zip.os.arch" value="macosx-universal" /> - <param name="zip.so.suffix" value=".jnilib" /> - <param name="zip.src.so.dir" value="${jogl.dist.dir}/jogl-macosx/fat" /> - </antcall> - <antcall target="dist.build.zip" inheritAll="true"> - <param name="zip.os.arch" value="solaris-i586" /> - <param name="zip.so.suffix" value=".so" /> - <param name="zip.src.so.dir" value="${jogl.dist.dir}/jogl-solx86/32" /> - </antcall> - <antcall target="dist.build.zip" inheritAll="true"> - <param name="zip.os.arch" value="solaris-amd64" /> - <param name="zip.so.suffix" value=".so" /> - <param name="zip.src.so.dir" value="${jogl.dist.dir}/jogl-solx86/64" /> - </antcall> - <antcall target="dist.build.zip" inheritAll="true"> - <param name="zip.os.arch" value="solaris-sparc" /> - <param name="zip.so.suffix" value=".so" /> - <param name="zip.src.so.dir" value="${jogl.dist.dir}/jogl-solsparc/32" /> - </antcall> - <antcall target="dist.build.zip" inheritAll="true"> - <param name="zip.os.arch" value="solaris-sparcv9" /> - <param name="zip.so.suffix" value=".so" /> - <param name="zip.src.so.dir" value="${jogl.dist.dir}/jogl-solsparc/64" /> - </antcall> - <antcall target="dist.build.zip" inheritAll="true"> - <param name="zip.os.arch" value="windows-i586" /> - <param name="zip.so.suffix" value=".dll" /> - <param name="zip.src.so.dir" value="${jogl.dist.dir}/jogl-win/32" /> - </antcall> - <antcall target="dist.build.zip" inheritAll="true"> - <param name="zip.os.arch" value="windows-amd64" /> - <param name="zip.so.suffix" value=".dll" /> - <param name="zip.src.so.dir" value="${jogl.dist.dir}/jogl-win/64" /> - </antcall> - <!-- Create one last zip archive by hand, this one containing all of the --> - <!-- Java Web Start jar files (for easier redistribution) --> - <zip destfile="${jogl.dist.dir}/jogl-${tmp.version}-webstart.zip" - basedir="${jogl.dist.dir}" - includes="*.jar" /> - <!-- Create a version.txt file indicating which version we just built --> - <echo message="${tmp.version}" file="${jogl.dist.dir}/version.txt" /> - </target> - - <!-- ================================================================== --> - <!-- - Clean up all that is built. --> <target name="clean" description="Remove all build products" depends="declare.common"> |