summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2014-05-31 13:39:08 -0700
committerHarvey Harrison <[email protected]>2014-05-31 13:39:08 -0700
commite8bc9edd3c39170af038ab23b8cdca9ffd6f2d56 (patch)
treee2f872ccf2d81b72e7d373226a3994738184479b
parentb8d85c035bbd2d6fa8a37f957bcf80acab18015e (diff)
gluegen: move all antlr grammars to a top-level directory
/src/main/antlr/.. This gets the .g files unmixed from the non-generated java files for the cgram/jgram packages. Signed-off-by: Harvey Harrison <[email protected]>
-rw-r--r--make/build.xml19
-rw-r--r--src/main/antlr/com/jogamp/gluegen/cgram/GnuCEmitter.g (renamed from src/java/com/jogamp/gluegen/cgram/GnuCEmitter.g)0
-rw-r--r--src/main/antlr/com/jogamp/gluegen/cgram/GnuCParser.g (renamed from src/java/com/jogamp/gluegen/cgram/GnuCParser.g)0
-rw-r--r--src/main/antlr/com/jogamp/gluegen/cgram/GnuCTreeParser.g (renamed from src/java/com/jogamp/gluegen/cgram/GnuCTreeParser.g)0
-rw-r--r--src/main/antlr/com/jogamp/gluegen/cgram/HeaderParser.g (renamed from src/java/com/jogamp/gluegen/cgram/HeaderParser.g)0
-rw-r--r--src/main/antlr/com/jogamp/gluegen/cgram/StdCParser.g (renamed from src/java/com/jogamp/gluegen/cgram/StdCParser.g)0
-rw-r--r--src/main/antlr/com/jogamp/gluegen/jgram/JavaParser.g (renamed from src/java/com/jogamp/gluegen/jgram/JavaParser.g)0
7 files changed, 9 insertions, 10 deletions
diff --git a/make/build.xml b/make/build.xml
index 8791d76..81a82c0 100644
--- a/make/build.xml
+++ b/make/build.xml
@@ -58,6 +58,7 @@
<!-- The source and build directories. -->
<property name="project.root" value=".." />
<property name="src.java" value="${project.root}/src/java" />
+ <property name="src.antlr" value="${project.root}/src/main/antlr" />
<property name="build" location="${project.root}/${rootrel.build}" />
<property name="javadoc.root.path" location="${build}/javadoc" />
<property name="javadoc.gluegen.path" location="${javadoc.root.path}/gluegen/javadoc" />
@@ -116,15 +117,13 @@
</path>
<!-- The location of the GlueGen source and the C grammar files. -->
- <property name="gluegen" value="${src.java}/com/jogamp/gluegen" />
- <property name="c.grammar" value="${gluegen}/cgram" />
- <property name="j.grammar" value="${gluegen}/jgram" />
+ <property name="c.grammar" value="${src.antlr}/com/jogamp/gluegen/cgram" />
+ <property name="j.grammar" value="${src.antlr}/com/jogamp/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/jogamp/gluegen" />
- <property name="generated.java.from.c.grammar" value="${gluegen.build}/cgram" />
- <property name="generated.java.from.j.grammar" value="${gluegen.build}/jgram" />
+ <property name="generated.java.from.c.grammar" value="${src.generated.java}/com/jogamp/gluegen/cgram" />
+ <property name="generated.java.from.j.grammar" value="${src.generated.java}/com/jogamp/gluegen/jgram" />
<property name="tools.jar" value="${java.home}/../lib/tools.jar"/>
@@ -631,15 +630,15 @@
<uptodate property="gluegen.build.skip.java1">
<srcfiles dir= "." includes="*.xml"/>
<srcfiles dir= "${src.java}" includes="**"/>
- <srcfiles dir= "${c.grammar}" includes="**/*.g"/>
- <srcfiles dir= "${j.grammar}" includes="**/*.g"/>
+ <srcfiles dir= "${c.grammar}" includes="*.g"/>
+ <srcfiles dir= "${j.grammar}" includes="*.g"/>
<mapper type="merge" to="${build}/gluegen.jar"/>
</uptodate>
<uptodate property="gluegen.build.skip.java2">
<srcfiles dir= "." includes="*.xml"/>
<srcfiles dir= "${src.java}" includes="**"/>
- <srcfiles dir= "${c.grammar}" includes="**/*.g"/>
- <srcfiles dir= "${j.grammar}" includes="**/*.g"/>
+ <srcfiles dir= "${c.grammar}" includes="*.g"/>
+ <srcfiles dir= "${j.grammar}" includes="*.g"/>
<mapper type="merge" to="${build}/gluegen-rt.jar"/>
</uptodate>
<condition property="gluegen.build.skip.java" value="true">
diff --git a/src/java/com/jogamp/gluegen/cgram/GnuCEmitter.g b/src/main/antlr/com/jogamp/gluegen/cgram/GnuCEmitter.g
index 38ded36..38ded36 100644
--- a/src/java/com/jogamp/gluegen/cgram/GnuCEmitter.g
+++ b/src/main/antlr/com/jogamp/gluegen/cgram/GnuCEmitter.g
diff --git a/src/java/com/jogamp/gluegen/cgram/GnuCParser.g b/src/main/antlr/com/jogamp/gluegen/cgram/GnuCParser.g
index e8ca8c5..e8ca8c5 100644
--- a/src/java/com/jogamp/gluegen/cgram/GnuCParser.g
+++ b/src/main/antlr/com/jogamp/gluegen/cgram/GnuCParser.g
diff --git a/src/java/com/jogamp/gluegen/cgram/GnuCTreeParser.g b/src/main/antlr/com/jogamp/gluegen/cgram/GnuCTreeParser.g
index dbe2f98..dbe2f98 100644
--- a/src/java/com/jogamp/gluegen/cgram/GnuCTreeParser.g
+++ b/src/main/antlr/com/jogamp/gluegen/cgram/GnuCTreeParser.g
diff --git a/src/java/com/jogamp/gluegen/cgram/HeaderParser.g b/src/main/antlr/com/jogamp/gluegen/cgram/HeaderParser.g
index 0b4d5ec..0b4d5ec 100644
--- a/src/java/com/jogamp/gluegen/cgram/HeaderParser.g
+++ b/src/main/antlr/com/jogamp/gluegen/cgram/HeaderParser.g
diff --git a/src/java/com/jogamp/gluegen/cgram/StdCParser.g b/src/main/antlr/com/jogamp/gluegen/cgram/StdCParser.g
index 7b34656..7b34656 100644
--- a/src/java/com/jogamp/gluegen/cgram/StdCParser.g
+++ b/src/main/antlr/com/jogamp/gluegen/cgram/StdCParser.g
diff --git a/src/java/com/jogamp/gluegen/jgram/JavaParser.g b/src/main/antlr/com/jogamp/gluegen/jgram/JavaParser.g
index f67579e..f67579e 100644
--- a/src/java/com/jogamp/gluegen/jgram/JavaParser.g
+++ b/src/main/antlr/com/jogamp/gluegen/jgram/JavaParser.g