diff options
author | Sven Gothel <[email protected]> | 2008-07-18 12:18:39 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2008-07-18 12:18:39 +0000 |
commit | c020a396e0cab63fa2b4d283decbea7d20ce3511 (patch) | |
tree | ff6b28bf17ed1739ca715ed443795af8f4fe2196 /make/build.xml | |
parent | aa1a3b6381b79fa1caa43bd6169244f1cff23500 (diff) |
- New config feature: 'IgnoreExtendedInterfaceSymbols <java class source file>'
All enums and functions within the specified interface (or abstract class),
will not be emitted in the resulting interface.
This simplifies the GL profile config's a lot, as well reducing the footprint.
- Adding JavaParser 'com.sun.gluegen.jgram.JavaParser',
which collects enums and functions.
- New config feature 'UnsupportedExceptionType <exception name>',
which complements the 'RuntimeExceptionType <exception name>' feature.
UnsupportedExceptionType's are thrown in case a function is not available.
- Fix: BuildComposablePipeline
- Method names are now unique by:
- name, return type, modifiers and arguments
- Cleanup:
- mv: com.sun.gluegen.runtime.opengl.GLUnifiedName -> com.sun.gluegen.opengl.GLUnifiedName
- contains only the compile time portion of the former
- add: com.sun.gluegen.opengl.runtime.GLExtensionNames
- contains the extension name handling
- bulletproof GL function and GL enum recognition.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@101 a78bb65f-1512-4460-ba86-f6dc96a7bf27
Diffstat (limited to 'make/build.xml')
-rwxr-xr-x | make/build.xml | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/make/build.xml b/make/build.xml index 1ff74b8..dd9f147 100755 --- a/make/build.xml +++ b/make/build.xml @@ -81,11 +81,13 @@ <!-- The location of the GlueGen source and the C grammar files. --> <property name="gluegen" value="${src.java}/com/sun/gluegen" /> <property name="c.grammar" value="${gluegen}/cgram" /> + <property name="j.grammar" value="${gluegen}/jgram" /> <!-- The resulting location of the generated Java files from the - C grammar via ANTLR. --> <property name="gluegen.build" value="${src.generated.java}/com/sun/gluegen" /> - <property name="generated.java.from.grammar" value="${gluegen.build}/cgram" /> + <property name="generated.java.from.c.grammar" value="${gluegen.build}/cgram" /> + <property name="generated.java.from.j.grammar" value="${gluegen.build}/jgram" /> </target> <!-- @@ -95,7 +97,7 @@ - @param output.dir the directory to write the generated files to. If - the directory does not exist, it will be created. --> - <target name="generate.c.grammar"> + <target name="generate.grammar"> <!-- Generate the Java files --> <antlr target="${output.dir}/${target}" outputdirectory="${output.dir}"> <classpath refid="antlr.classpath" /> @@ -405,37 +407,47 @@ including supergrammars, in one place, so copy all of the grammars to the output directory up front so we don't put temporary files into the source tree --> - <mkdir dir="${generated.java.from.grammar}" /> - <copy todir="${generated.java.from.grammar}"> + <mkdir dir="${generated.java.from.c.grammar}" /> + <copy todir="${generated.java.from.c.grammar}"> <fileset dir="${c.grammar}"> <include name="*.g" /> </fileset> </copy> + <mkdir dir="${generated.java.from.j.grammar}" /> + <copy todir="${generated.java.from.j.grammar}"> + <fileset dir="${j.grammar}"> + <include name="*.g" /> + </fileset> + </copy> <!-- Generate the Java files from the C grammar using ANTLR. --> - <antcall target="generate.c.grammar"> - <param name="output.dir" value="${generated.java.from.grammar}" /> + <antcall target="generate.grammar"> + <param name="output.dir" value="${generated.java.from.c.grammar}" /> <param name="target" value="StdCParser.g" /> </antcall> <antcall target="generate.c.grammar.glib"> - <param name="output.dir" value="${generated.java.from.grammar}" /> + <param name="output.dir" value="${generated.java.from.c.grammar}" /> <param name="target" value="GnuCParser.g" /> <param name="glib" value="StdCParser.g" /> </antcall> - <antcall target="generate.c.grammar"> - <param name="output.dir" value="${generated.java.from.grammar}" /> + <antcall target="generate.grammar"> + <param name="output.dir" value="${generated.java.from.c.grammar}" /> <param name="target" value="GnuCTreeParser.g" /> </antcall> <antcall target="generate.c.grammar.glib"> - <param name="output.dir" value="${generated.java.from.grammar}" /> + <param name="output.dir" value="${generated.java.from.c.grammar}" /> <param name="target" value="GnuCEmitter.g" /> <param name="glib" value="GnuCTreeParser.g" /> </antcall> <antcall target="generate.c.grammar.glib"> - <param name="output.dir" value="${generated.java.from.grammar}" /> + <param name="output.dir" value="${generated.java.from.c.grammar}" /> <param name="target" value="HeaderParser.g" /> <param name="glib" value="GnuCTreeParser.g" /> </antcall> + <antcall target="generate.grammar"> + <param name="output.dir" value="${generated.java.from.j.grammar}" /> + <param name="target" value="JavaParser.g" /> + </antcall> <!-- Build GlueGen using the generated Java files along with the - original source. --> |