diff options
author | Kenneth Russel <[email protected]> | 2003-07-14 05:34:51 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2003-07-14 05:34:51 +0000 |
commit | 32350278dd07c95bec7e8adcf19ca1601dd6c6b4 (patch) | |
tree | 1e33a3c50e9c5173a2f8b08270e0cb4a1b692192 /make/build-staticglgen.xml | |
parent | 4f936be964c9e8613a5e43e1d88490ff7f550ec9 (diff) |
Added Ant build support, contributed by Rob Grzywinski and Artur
Biesiadowski. Modified their original build.xml to understand
dependencies between build phases (to avoid full rebuilds each time)
and to invoke the C compiler without requiring an external Makefile.
At this point the old Makefile/Makefile2 pair is obsolete and will be
deleted shortly, as soon as the Ant build has been tested on Linux and
Mac OS X. Additionally, Cygwin is no longer needed for the build; the
documentation will be updated to reflect this. Refactored some of the
stub_includes files to be common between platforms, yielding a build
process cleanup. Fixed bugs in Javadocs.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@19 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/build-staticglgen.xml')
-rw-r--r-- | make/build-staticglgen.xml | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/make/build-staticglgen.xml b/make/build-staticglgen.xml new file mode 100644 index 000000000..d054abbb0 --- /dev/null +++ b/make/build-staticglgen.xml @@ -0,0 +1,91 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + - Ant build for JOGL's BuildStaticGLInfo and corresponding ANT task. This + - build should not be called directly. It is invoked from the main + - "build.xml" file and relies on the properties set therein. + - + - This build has been tested with ANT 1.5.3 and JOGL 1.1.1.1. + - + - Public targets: + - all: clean and build BuildStaticGLInfo and StaticGLGen Ant task + - clean: clean all built + --> +<project name="JOGL.BuildStaticGLInfo" default="all"> + <!-- ================================================================== --> + <!-- + - Declare all paths and user defined variables. + --> + <target name="declare" description="Declare properties"> + <!-- The location of the BuildStaticGLInfo source. --> + <property name="static.gl.src" value="${src}/net/java/games/gluegen/opengl" /> + </target> + + <!-- ================================================================== --> + <!-- + - Build BuildStaticGLInfo. + --> + <target name="build.static.gl" depends="declare"> + <!-- Ensure that the output classes directory exists. --> + <mkdir dir="${classes}" /> + + <!-- Compile BuildStaticGLInfo --> + <javac srcdir="${src}" destdir="${classes}" includes="**/BuildStaticGLInfo.java" source="1.4"> + <classpath refid="antlr.classpath" /> + </javac> + + <!-- Inform the user that BuildStaticGLInfo has been successfully built. --> + <echo message="" /> + <echo message="BuildStaticGLInfo has been built successfully." /> + </target> + + <!-- ================================================================== --> + <!-- + - Build the StaticGLGen ANT task. + --> + <target name="build.static.gl.task" depends="declare"> + <!-- Ensure that the output classes directory exists. --> + <mkdir dir="${classes}" /> + + <!-- Build the BuildStaticGLInfo ANT task. + - NOTE: ONLY the StaticGLGen is built at this time. BuildStaticGLInfo + - itself is built in a separate task. --> + <javac destdir="${classes}" includes="**/StaticGLGenTask.java" source="1.4"> + <src path="${src}" /> + <classpath refid="classpath" /> + </javac> + + <!-- Inform the user that the BuildStaticGLInfo ANT task has been + - successfully built. --> + <echo message="" /> + <echo message="StaticGLGen ANT task has been built successfully." /> + </target> + + <!-- ================================================================== --> + <!-- + - Clean up all that is built. + - NOTE: this is a bit heavy-handed as it may delete more than just + - what is built with this build. + --> + <target name="clean" depends="declare"> + <!-- Create the directory before attempting to delete it. Deleting + - non-existant dirs will cause an error. --> + <mkdir dir="${classes}" /> + + <delete includeEmptyDirs="true"> + <fileset dir="${classes}" /> + </delete> + </target> + + <!-- ================================================================== --> + <!-- + - Build BuildStaticGLInfo and the BuildStaticGLInfo ANT task. + --> + <target name="all" depends="declare"> + <!-- Build BuildStaticGLInfo --> + <antcall target="build.static.gl" /> + + <!-- Build the BuildStaticGLInfo ANT task --> + <antcall target="build.static.gl.task" /> + </target> + +</project>
\ No newline at end of file |