aboutsummaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2003-07-14 18:38:37 +0000
committerKenneth Russel <[email protected]>2003-07-14 18:38:37 +0000
commit031a72040e3ce319c51d08ecd8926e29c63dacbb (patch)
treeaa4d287f92fe3b24e2fc1510fb8505b99bf4116d /make
parentaf8b3cf24acd7ab2ed44d62248b327602f3620ce (diff)
Added "dist" target to assemble one jogl.jar out of platform-specific
ones and to create jars for each platform's native code. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@25 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make')
-rw-r--r--make/build.xml51
1 files changed, 51 insertions, 0 deletions
diff --git a/make/build.xml b/make/build.xml
index e9a7bbc42..5635c2353 100644
--- a/make/build.xml
+++ b/make/build.xml
@@ -951,6 +951,57 @@
<!-- ================================================================== -->
<!--
+ - 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-win32, 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.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" depends="dist.check">
+ <delete file="${jogl.dist.dir}/jogl.jar" />
+ <delete>
+ <fileset dir="${jogl.dist.dir}" includes="jogl-natives-*.jar" />
+ </delete>
+ <jar destfile="${jogl.dist.dir}/jogl.jar" duplicate="preserve">
+ <zipgroupfileset dir="${jogl.dist.dir}"
+ includes="jogl-win32/*.jar, jogl-linux/*.jar, jogl-macosx/*.jar" />
+ </jar>
+ <jar destfile="${jogl.dist.dir}/jogl-natives-win32.jar"
+ basedir="${jogl.dist.dir}/jogl-win32"
+ includes="jogl.dll" />
+ <jar destfile="${jogl.dist.dir}/jogl-natives-linux.jar"
+ basedir="${jogl.dist.dir}/jogl-linux"
+ includes="libjogl.so" />
+ <jar destfile="${jogl.dist.dir}/jogl-natives-macosx.jar"
+ basedir="${jogl.dist.dir}/jogl-macosx"
+ includes="libjogl.jnilib" />
+ <jar destfile="${jogl.dist.dir}/jogl-natives-solsparc.jar"
+ basedir="${jogl.dist.dir}/jogl-solsparc"
+ includes="libjogl.so" />
+ <jar destfile="${jogl.dist.dir}/jogl-natives-solx86.jar"
+ basedir="${jogl.dist.dir}/jogl-solx86"
+ includes="libjogl.so" />
+ </target>
+
+ <!-- ================================================================== -->
+ <!--
- Clean up all that is built.
-->
<target name="clean" depends="declare">