diff options
author | Kenneth Russel <[email protected]> | 2009-07-18 23:32:24 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2009-07-18 23:32:24 +0000 |
commit | a33fade58b3cf22b72241767e6615042a5ed22c1 (patch) | |
tree | 0f9700cb59193afbf27fef9481b2a28c2d14938d /make | |
parent | 190d2e62712a7de5ee8e9a7989157d06b34aedd9 (diff) |
Updates to joglutils workspace to work with JOGL 2 APIs. Cleaned up
build process. Added targets for joglutils.jar and joglutils-demos.jar
as well as javadoc. Deleted build directory from svn.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/joglutils/trunk@103 83d24430-9974-4f80-8418-2cc3294053b9
Diffstat (limited to 'make')
-rw-r--r-- | make/build.xml | 62 | ||||
-rw-r--r-- | make/lib/jogl-demos-util.jar | bin | 0 -> 130694 bytes | |||
-rw-r--r-- | make/lib/swing-layout-1.0.jar | bin | 0 -> 140545 bytes |
3 files changed, 53 insertions, 9 deletions
diff --git a/make/build.xml b/make/build.xml index 19247ce..bd65149 100644 --- a/make/build.xml +++ b/make/build.xml @@ -10,22 +10,47 @@ - built into its build directory. --> <project name="joglutils" basedir="." default="all"> - <property name="src.dir" value="../src" /> - <property name="output.dir" value="../build" /> - <property name="output.tmp.dir" value="../build/classes" /> + <property name="top.dir" value=".." /> + <property name="src.dir" value="${top.dir}/src" /> + <property name="demos.src.dir" value="${top.dir}/demos/src" /> + <property name="output.dir" value="${top.dir}/build" /> + <property name="output.tmp.dir" value="${top.dir}/build/classes" /> <property name="output.jar" value="${output.dir}/joglutils.jar" /> - <property name="jogl.jar" value="../../jogl/build/jogl.jar" /> - <property name="swinglayout.jar" value="${output.dir}/lib/swing-layout-1.0.jar" /> + <property name="demos.jar" value="${output.dir}/joglutils-demos.jar" /> + <property name="jogl.jar" value="${top.dir}/../jogl/build/jogl/jogl.all.jar" /> + <property name="nativewindow.jar" value="${top.dir}/../jogl/build/nativewindow/nativewindow.all.jar" /> + <property name="swinglayout.jar" value="lib/swing-layout-1.0.jar" /> + <property name="jogl-demos-util.jar" value="lib/jogl-demos-util.jar" /> <path id="build.classpath"> <pathelement location="${jogl.jar}" /> + <pathelement location="${nativewindow.jar}" /> + <pathelement location="${jogl-demos-util.jar}" /> <pathelement location="${swinglayout.jar}" /> </path> + <path id="demos.build.classpath"> + <pathelement location="${jogl.jar}" /> + <pathelement location="${nativewindow.jar}" /> + <pathelement location="${jogl-demos-util.jar}" /> + <pathelement location="${swinglayout.jar}" /> + <pathelement location="${output.jar}" /> + </path> <property name="javadoc.link" value="http://java.sun.com/j2se/1.5.0/docs/api/" /> - <property name="msg.javadoc.dir" value="../msg_javadoc" /> + <property name="javadoc.dir" value="${output.dir}/javadoc" /> + <property name="javadoc.packagenames" value="net.java.joglutils,net.java.joglutils.demos,net.java.joglutils.jogltext,net.java.joglutils.lighting,net.java.joglutils.test3ds,net.java.joglutils.ThreeDS" /> + <target name="javadoc"> + <javadoc packagenames="${javadoc.packagenames}" + sourcepath="${src.dir}" + destdir="${javadoc.dir}" + source="1.5" + linkoffline="${javadoc.link} 5-packages" > + </javadoc> + </target> + + <property name="msg.javadoc.dir" value="${output.dir}/msg_javadoc" /> <property name="msg.javadoc.packagenames" value="net.java.joglutils.msg.actions,net.java.joglutils.msg.collections,net.java.joglutils.msg.elements,net.java.joglutils.msg.math,net.java.joglutils.msg.misc,net.java.joglutils.msg.nodes,net.java.joglutils.msg.test" /> - <property name="msg.javadoc.overview" value="../src/net/java/joglutils/msg/overview.html" /> + <property name="msg.javadoc.overview" value="${top.dir}/src/net/java/joglutils/msg/overview.html" /> <property name="msg.javadoc.windowtitle" value="Minimal Scene Graph (MSG)" /> <target name="msg.javadoc"> <javadoc packagenames="${msg.javadoc.packagenames}" @@ -45,8 +70,27 @@ </javac> </target> + <target name="joglutils.jar" depends="compile"> + <delete file="${output.jar}" failonerror="false" /> + <jar destfile="${output.jar}"> + <fileset dir="${output.tmp.dir}" + includes="net/**" /> + </jar> + </target> + + <target name="joglutils-demos.jar" depends="joglutils.jar"> + <javac destdir="${output.tmp.dir}" source="5" debug="true" debuglevel="source,lines"> + <src path="${demos.src.dir}" /> + <classpath refid="demos.build.classpath" /> + </javac> + <jar destfile="${demos.jar}"> + <fileset dir="${output.tmp.dir}" + includes="jgudemos/**" /> + </jar> + </target> + <target name="clean"> - <delete dir="${output.tmp.dir}" failonerror="false" /> + <delete dir="${output.dir}" failonerror="false" /> </target> <target name="msg.jar" depends="compile"> @@ -58,7 +102,7 @@ </jar> </target> - <target name="all" depends="compile"> + <target name="all" depends="joglutils.jar,joglutils-demos.jar"> <delete file="${output.jar}" failonerror="false" /> <jar destfile="${output.jar}"> <fileset dir="${output.tmp.dir}" /> diff --git a/make/lib/jogl-demos-util.jar b/make/lib/jogl-demos-util.jar Binary files differnew file mode 100644 index 0000000..fb139f9 --- /dev/null +++ b/make/lib/jogl-demos-util.jar diff --git a/make/lib/swing-layout-1.0.jar b/make/lib/swing-layout-1.0.jar Binary files differnew file mode 100644 index 0000000..a3fc956 --- /dev/null +++ b/make/lib/swing-layout-1.0.jar |