summaryrefslogtreecommitdiffstats
path: root/make
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 /make
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]>
Diffstat (limited to 'make')
-rw-r--r--make/build.xml19
1 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">