diff options
author | Kenneth Russel <[email protected]> | 2007-10-09 07:38:25 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2007-10-09 07:38:25 +0000 |
commit | c8e0d487886dbec1e3a994ea36724bbf59f5122a (patch) | |
tree | 0b9588684708a2429b8252ca367777d0b9125bf6 /make | |
parent | 2bdf0b792c0b89cde549087af1676ee558e37aa6 (diff) |
Integration of Tomas Hrasky's port of basic GLU NURBS functionality
from C++ to Java, plus example applications, done as part of his
Bachelor of Science degree at the University of Hradec Králové,
Faculty of Informatics and Management.
Current state of code is documented in
src/classes/com/sun/opengl/impl/nurbs/README.txt.
Example applications require Java 1.5 and are not currently built by
default. Specify -Djogl.nurbs=1 during jogl-demos build with a 1.5
javac on the PATH to build them. Dependent jars are copied to build
output directory.
Deleted old partially-complete GLU NURBS port.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@223 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'make')
-rw-r--r-- | make/build.xml | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/make/build.xml b/make/build.xml index e73061a..1394819 100644 --- a/make/build.xml +++ b/make/build.xml @@ -43,6 +43,7 @@ <property name="jogl.jar" value="../../jogl/build/jogl.jar" /> <property name="joal.jar" value="../lib/joal.jar" /> <property name="joal-demos.jar" value="../lib/joal-demos.jar" /> + <property name="simple-xml.jar" value="../lib/simple-xml-1.1.1.jar" /> <property name="classes" value="../build/classes" /> <property name="src" value="../src" /> <property name="javadoc" value="../javadoc" /> @@ -54,17 +55,37 @@ <property name="jogl.demos.src.zip" value="../build/jogl-demos-src.zip" /> </target> + <target name="nurbs" if="jogl.nurbs"> + <!-- NOTE: this target requires a 1.5 javac to be on the PATH --> + <javac destdir="${classes}" includes="demos/nurbs/**" source="1.5" debug="true" debuglevel="source,lines"> + <src path="${src}" /> + <classpath refid="jogl-demos.classpath" /> + </javac> + <!-- Copy icons to output dir --> + <copy todir="../build"> + <fileset dir="${src}"> + <include name="demos/nurbs/icons/*.png" /> + </fileset> + </copy> + <!-- Copy dependent libraries to output dir --> + <copy file="../lib/simple-xml-1.1.1.jar" todir="../build" /> + <copy file="../lib/stax-api-1.0.1.jar" todir="../build" /> + <copy file="../lib/stax-1.2.0.jar" todir="../build" /> + </target> + <target name="all" depends="init"> <mkdir dir="${classes}" /> <path id="jogl-demos.classpath"> <pathelement location="${jogl.jar}" /> <pathelement location="${joal.jar}" /> <pathelement location="${joal-demos.jar}" /> + <pathelement location="${simple-xml.jar}" /> </path> - <javac destdir="${classes}" excludes="${jogl.cg.excludes}" source="1.4" debug="true" debuglevel="source,lines"> + <javac destdir="${classes}" excludes="${jogl.cg.excludes},demos/nurbs/**" source="1.4" target="1.4" debug="true" debuglevel="source,lines"> <src path="${src}" /> <classpath refid="jogl-demos.classpath" /> </javac> + <antcall target="nurbs" inheritrefs="true" /> <jar destfile="${jogl.demos.jar}"> <fileset dir="${classes}"> <exclude name="gleem/**" /> |