diff options
author | Kenneth Russel <[email protected]> | 2009-06-18 01:47:20 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2009-06-18 01:47:20 +0000 |
commit | c3e34198941443446c227d388f1d313a0ef41455 (patch) | |
tree | 5dacaa6af9068e23c0b56fc31aa74e8a12a3bd6f /make/build-newt.xml | |
parent | 28e55e1d35ea321d77ecf136df6a0bfa986f45ab (diff) |
Thanks to Sven's changes to make each platform build a platform-
independent jogl.jar, the "dist" target can now be completely
eliminated from the various build.xmls. Removed this to achieve a
significant simplification. The nightly build scripts now take care of
the needed copying.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1984 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/build-newt.xml')
-rw-r--r-- | make/build-newt.xml | 342 |
1 files changed, 0 insertions, 342 deletions
diff --git a/make/build-newt.xml b/make/build-newt.xml index 33eb57ac8..da314090e 100644 --- a/make/build-newt.xml +++ b/make/build-newt.xml @@ -641,348 +641,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 newt.dist.dir as a System property (i.e., - - "ant -Dnewt.dist.dir=../dist dist"); directories named newt-linux, - - newt-win, and newt-macosx need to be inside that directory and each - - of those directories needs to contain both the newt.jar for that - - platform as well as the native code (libnewt.so, newt.dll, or - - libnewt.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="newt.dist.dir"> - <fail> - - ****************************************************************** - ** To build the Jogl distribution out of the platform-specific ** - ** component jars and native code, the property newt.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="newt.dist.dir"> - <condition property="windows.complete"> - <and> - <available file="${newt.dist.dir}/newt-win/newt.jar" /> - <available file="${newt.dist.dir}/newt-win/32/newt.dll" /> - </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="newt.dist.dir"> - <condition property="windows-amd64.complete"> - <and> - <available file="${newt.dist.dir}/newt-win/64/newt.dll" /> - </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="newt.dist.dir"> - <condition property="linux.complete"> - <and> - <available file="${newt.dist.dir}/newt-linux/newt.jar" /> - <available file="${newt.dist.dir}/newt-linux/32/libnewt.so" /> - </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="newt.dist.dir"> - <condition property="linux-amd64.complete"> - <and> - <available file="${newt.dist.dir}/newt-linux/64/libnewt.so" /> - </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="newt.dist.dir"> - <condition property="macosx.complete"> - <and> - <available file="${newt.dist.dir}/newt-macosx/newt.jar" /> - <available file="${newt.dist.dir}/newt-macosx/ppc/libnewt.jnilib" /> - </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="newt.dist.dir"> - <condition property="macosxfat.complete"> - <and> - <available file="${newt.dist.dir}/newt-macosx/newt.jar" /> - <available file="${newt.dist.dir}/newt-macosx/fat/libnewt.jnilib" /> - </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="newt.dist.dir"> - <condition property="solsparc.complete"> - <and> - <available file="${newt.dist.dir}/newt-solsparc/newt.jar" /> - <available file="${newt.dist.dir}/newt-solsparc/32/libnewt.so" /> - </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="newt.dist.dir"> - <condition property="solsparcv9.complete"> - <and> - <available file="${newt.dist.dir}/newt-solsparc/newt.jar" /> - <available file="${newt.dist.dir}/newt-solsparc/64/libnewt.so" /> - </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="newt.dist.dir"> - <condition property="solx86.complete"> - <and> - <available file="${newt.dist.dir}/newt-solx86/newt.jar" /> - <available file="${newt.dist.dir}/newt-solx86/32/libnewt.so" /> - </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="newt.dist.dir"> - <condition property="solamd64.complete"> - <and> - <available file="${newt.dist.dir}/newt-solx86/64/libnewt.so" /> - </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="newt.tmp.version" value="newt-${tmp.version}-${zip.os.arch}" /> - <!-- Create all needed directories --> - <delete dir="${newt.dist.dir}/tmp" failonerror="false" /> - <mkdir dir="${newt.dist.dir}/tmp/${newt.tmp.version}/lib" /> - <!-- Copy in files --> - <copy todir="${newt.dist.dir}/tmp/${newt.tmp.version}/lib"> - <fileset dir="${zip.src.so.dir}" includes="*${zip.so.suffix}" /> - </copy> - <copy file="${newt.dist.dir}/newt.jar" todir="${newt.dist.dir}/tmp/${newt.tmp.version}/lib" /> - <copy file="../CHANGELOG.txt" todir="${newt.dist.dir}/tmp/${newt.tmp.version}" /> - <copy file="../COPYRIGHT.txt" todir="${newt.dist.dir}/tmp/${newt.tmp.version}" /> - <copy file="../LICENSE.txt" tofile="${newt.dist.dir}/tmp/${newt.tmp.version}/LICENSE-NEWT-${tmp.version}.txt" /> - <copy file="README-zip-bundles.txt" - tofile="${newt.dist.dir}/tmp/${newt.tmp.version}/README.txt" - overwrite="true"> - <filterset> - <filter token="VERSION" value="${tmp.version}"/> - </filterset> - </copy> - <copy file="../doc/userguide/index.html" tofile="${newt.dist.dir}/tmp/${newt.tmp.version}/Userguide.html" /> - <!-- zip it up --> - <zip destfile="${newt.dist.dir}/${newt.tmp.version}.zip" - basedir="${newt.dist.dir}/tmp" - includes="${newt.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="${newt.dist.dir}" includes="*.jar" /> - </delete> - <delete> - <fileset dir="${newt.dist.dir}" includes="*.zip" /> - </delete> - <delete dir="${newt.dist.dir}/tmp" failonerror="false" /> - <delete dir="${newt.dist.dir}/META-INF" failonerror="false" /> - <!-- Extract manifest from one of the jars to re-use it in the dist jar --> - <unjar src="${newt.dist.dir}/newt-win/newt.jar" dest="${newt.dist.dir}" > - <patternset> - <include name="META-INF/MANIFEST.MF" /> - </patternset> - </unjar> - <!-- Build jar files suitable for Java Web Start --> - <jar manifest="${newt.dist.dir}/META-INF/MANIFEST.MF" destfile="${newt.dist.dir}/newt.jar" duplicate="preserve"> - <zipgroupfileset dir="${newt.dist.dir}" - includes="newt-win/newt.jar, newt-linux/newt.jar, newt-macosx/newt.jar" /> - </jar> - <!-- Apply Pack200 repacking to allow later compression by that mechanism --> - <apply executable="pack200" verbose="true" > - <arg value="--repack" /> - <fileset file="${newt.dist.dir}/newt.jar" /> - </apply> - <jar destfile="${newt.dist.dir}/newt-natives-windows-i586.jar" - basedir="${newt.dist.dir}/newt-win/32" - includes="newt.dll" /> - <jar destfile="${newt.dist.dir}/newt-natives-windows-amd64.jar" - basedir="${newt.dist.dir}/newt-win/64" - includes="newt.dll" /> - <jar destfile="${newt.dist.dir}/newt-natives-linux-i586.jar" - basedir="${newt.dist.dir}/newt-linux/32" - includes="libnewt.so" /> - <jar destfile="${newt.dist.dir}/newt-natives-linux-amd64.jar" - basedir="${newt.dist.dir}/newt-linux/64" - includes="libnewt.so" /> - <jar destfile="${newt.dist.dir}/newt-natives-macosx-ppc.jar" - basedir="${newt.dist.dir}/newt-macosx/ppc" - includes="libnewt.jnilib" /> - <jar destfile="${newt.dist.dir}/newt-natives-macosx-universal.jar" - basedir="${newt.dist.dir}/newt-macosx/fat" - includes="libnewt.jnilib" /> - <jar destfile="${newt.dist.dir}/newt-natives-solaris-sparc.jar" - basedir="${newt.dist.dir}/newt-solsparc/32" - includes="libnewt.so" /> - <jar destfile="${newt.dist.dir}/newt-natives-solaris-sparcv9.jar" - basedir="${newt.dist.dir}/newt-solsparc/64" - includes="libnewt.so" /> - <jar destfile="${newt.dist.dir}/newt-natives-solaris-i586.jar" - basedir="${newt.dist.dir}/newt-solx86/32" - includes="libnewt.so" /> - <jar destfile="${newt.dist.dir}/newt-natives-solaris-amd64.jar" - basedir="${newt.dist.dir}/newt-solx86/64" - includes="libnewt.so" /> - - <zip destfile="${newt.dist.dir}/newt-${tmp.version}-src.zip" - basedir="../.." - includes="jogl/*.txt,jogl/doc/**,jogl/make/**,jogl/src/newt/**" - 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 newt.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="${newt.dist.dir}/newt-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="${newt.dist.dir}/newt-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="${newt.dist.dir}/newt-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="${newt.dist.dir}/newt-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="${newt.dist.dir}/newt-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="${newt.dist.dir}/newt-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="${newt.dist.dir}/newt-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="${newt.dist.dir}/newt-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="${newt.dist.dir}/newt-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="${newt.dist.dir}/newt-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="${newt.dist.dir}/newt-${tmp.version}-webstart.zip" - basedir="${newt.dist.dir}" - includes="*.jar" /> - <!-- Create a version.txt file indicating which version we just built --> - <echo message="${tmp.version}" file="${newt.dist.dir}/version.txt" /> - </target> - - <!-- ================================================================== --> - <!-- - Clean up all that is built. --> <target name="clean" description="Remove all build products" depends="declare.common"> |