diff options
author | Kenneth Russel <[email protected]> | 2008-05-13 11:21:23 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2008-05-13 11:21:23 +0000 |
commit | b3eed5170f323d1c6d4d90de28a691eebeb035df (patch) | |
tree | e1841cbb1589b62ddceb1154563f891daaea21dc /make | |
parent | 144dd147e18f346617649b55d730a8a5fef9f2d6 (diff) |
OpenGL ES 1 and ES 2 demos, not built by default;
build.xml changes to conditionally build these demos via
ant -Djogl.es1=1 or ant -Djogl.es2=1
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@228 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'make')
-rw-r--r-- | make/build.xml | 59 |
1 files changed, 56 insertions, 3 deletions
diff --git a/make/build.xml b/make/build.xml index 1394819..0b66f11 100644 --- a/make/build.xml +++ b/make/build.xml @@ -31,6 +31,23 @@ </fail> </target> + <target name="setup.gles"> + <condition property="isGLES"> + <or> + <isset property="jogl.es1" /> + <isset property="jogl.es2" /> + </or> + </condition> + + <condition property="isGLES1"> + <isset property="jogl.es1" /> + </condition> + + <condition property="isGLES2"> + <isset property="jogl.es2" /> + </condition> + </target> + <target name="setup.cg.excludes" unless="jogl.cg"> <property name="jogl.cg.excludes" value="demos/cg/**,demos/hdr/CgPipeline.java,demos/hdr/shaders/cg/**" /> </target> @@ -39,7 +56,7 @@ <property name="jogl.cg.excludes" value="" /> </target> - <target name="init" depends="java.class.path.validate,setup.cg.excludes,skip.cg.excludes"> + <target name="init" depends="java.class.path.validate,setup.gles,setup.cg.excludes,skip.cg.excludes"> <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" /> @@ -73,7 +90,7 @@ <copy file="../lib/stax-1.2.0.jar" todir="../build" /> </target> - <target name="all" depends="init"> + <target name="all-desktop" unless="isGLES"> <mkdir dir="${classes}" /> <path id="jogl-demos.classpath"> <pathelement location="${jogl.jar}" /> @@ -81,7 +98,7 @@ <pathelement location="${joal-demos.jar}" /> <pathelement location="${simple-xml.jar}" /> </path> - <javac destdir="${classes}" excludes="${jogl.cg.excludes},demos/nurbs/**" source="1.4" target="1.4" debug="true" debuglevel="source,lines"> + <javac destdir="${classes}" excludes="${jogl.cg.excludes},demos/nurbs/**,demos/apx/**" source="1.4" target="1.4" debug="true" debuglevel="source,lines"> <src path="${src}" /> <classpath refid="jogl-demos.classpath" /> </javac> @@ -125,6 +142,42 @@ /> </target> + <target name="all-gles1" if="isGLES1"> + <mkdir dir="${classes}" /> + <path id="jogl-demos.classpath"> + <pathelement location="${jogl.jar}" /> + </path> + <javac destdir="${classes}" includes="demos/apx/es1/**" source="1.4" target="1.4" debug="true" debuglevel="source,lines" + bootclasspath="../../gluegen/make/lib/cdc_fp.jar"> + <src path="${src}" /> + <classpath refid="jogl-demos.classpath" /> + </javac> + <jar destfile="${jogl.demos.jar}"> + <fileset dir="${classes}"> + <include name="**" /> + </fileset> + </jar> + </target> + + <target name="all-gles2" if="isGLES2"> + <mkdir dir="${classes}" /> + <path id="jogl-demos.classpath"> + <pathelement location="${jogl.jar}" /> + </path> + <javac destdir="${classes}" includes="demos/apx/es2/**" source="1.4" target="1.4" debug="true" debuglevel="source,lines" + bootclasspath="../../gluegen/make/lib/cdc_fp.jar"> + <src path="${src}" /> + <classpath refid="jogl-demos.classpath" /> + </javac> + <jar destfile="${jogl.demos.jar}"> + <fileset dir="${classes}"> + <include name="**" /> + </fileset> + </jar> + </target> + + <target name="all" depends="init, all-desktop, all-gles1, all-gles2" /> + <target name="javadoc" depends="init"> <mkdir dir="${javadoc}" /> <javadoc destdir="${javadoc}" windowtitle="JOGL Demos" |