summaryrefslogtreecommitdiffstats
path: root/make/build.xml
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-04-12 23:18:20 +0200
committerMichael Bien <[email protected]>2010-04-12 23:18:20 +0200
commitd4b189bb12ec18e2e3893a7e83074b06b09f2605 (patch)
tree8e4c1ae358caf8b421b540cbcde907fe06067884 /make/build.xml
parentafb45360514377a193009d436957898cc5f1855d (diff)
gluegen creates now LongObject and LongLongHashMap from LongIntHashMap additional to the Int*Maps.
Diffstat (limited to 'make/build.xml')
-rwxr-xr-xmake/build.xml24
1 files changed, 21 insertions, 3 deletions
diff --git a/make/build.xml b/make/build.xml
index f90cd81..08cd66c 100755
--- a/make/build.xml
+++ b/make/build.xml
@@ -425,27 +425,45 @@
-->
<target name="pre-build">
+ <!-- Int*Maps -->
<antcall target="create-map" inheritrefs="true">
+ <param name="map.src" value="IntIntHashMap"/>
<param name="map.name" value="IntObjectHashMap"/>
<param name="map.value" value="Object"/>
<param name="map.null" value="null"/>
</antcall>
<antcall target="create-map" inheritrefs="true">
+ <param name="map.src" value="IntIntHashMap"/>
<param name="map.name" value="IntLongHashMap"/>
<param name="map.value" value="long"/>
<param name="map.null" value="0"/>
</antcall>
+ <!-- Long*Maps -->
+ <antcall target="create-map" inheritrefs="true">
+ <param name="map.src" value="LongIntHashMap"/>
+ <param name="map.name" value="LongObjectHashMap"/>
+ <param name="map.value" value="Object"/>
+ <param name="map.null" value="null"/>
+ </antcall>
+
+ <antcall target="create-map" inheritrefs="true">
+ <param name="map.src" value="LongIntHashMap"/>
+ <param name="map.name" value="LongLongHashMap"/>
+ <param name="map.value" value="long"/>
+ <param name="map.null" value="0"/>
+ </antcall>
+
</target>
<target name="create-map">
<!-- substitutes certain token in IntIntHashmap to create new primitive HasmMap-->
- <copy file="${src.java}/com/jogamp/common/util/IntIntHashMap.java"
+ <copy file="${src.java}/com/jogamp/common/util/${map.src}.java"
tofile="${src.generated.java}/com/jogamp/common/util/${map.name}.java" overwrite="true">
<filterchain>
- <replaceregex pattern="IntIntHashMap" replace="${map.name}"/>
- <replaceregex pattern="@see ${map.name}" replace="@see IntIntHashMap"/>
+ <replaceregex pattern="${map.src}" replace="${map.name}"/>
+ <replaceregex pattern="@see ${map.name}" replace="@see ${map.src}"/>
<replaceregex pattern="/\*value\*/int/\*value\*/" replace="${map.value}"/>
<replaceregex pattern="/\*null\*/0/\*null\*/" replace="${map.null}"/>
</filterchain>