aboutsummaryrefslogtreecommitdiffstats
path: root/make/build-test.xml
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-06-25 10:16:01 +0200
committerSven Gothel <[email protected]>2014-06-25 10:16:01 +0200
commit9ee44e1a289ecbac024662dd5a2ffc42e8add023 (patch)
tree2946a8bbf78e2fd26d088c35ee24cde3e51648e0 /make/build-test.xml
parent6cb643671578aa912d16dd17e773d92f4667118b (diff)
Bug 1025 - GlueGen: Add accessor for compound fields of type array, pointer and string (code generation)
Enhance compound access as delivered by Bug 1022, to also generate accessors (getter and setter) for array, pointer and string types. Allow configuration of array length either via their internal size (c-header) or config 'ReturnedArrayLength'. 'ReturnedArrayLength' allows specifying a java expression. Canonical field names of compounds are _now_ specified as follows for configuration entries: COMPOUND.FIELD e.g. StructA.fieldB Also allow configuration of pointer fields to be treated as referenced arrays via 'ReturnedArrayLength'. Further, allow specifying 'pointer fields' as String values via 'ReturnsString' configuration. ++++ Implementation details: - handle above described accessor features - enhance JavaDoc for generated accessors - generate native JNI compound and string accessor on demand - encapsule accessor code generation in their own methods - enhance exception messages - enhance type verbosity in debug mode - verbose debug output via GlueGen.debug() Tests: - Features covered by test1.[ch] and Test1p1JavaEmitter and Test1p2ProcAddressEmitter - Validated compilation and unit tests for modules: - joal - jogl (minor config changes req.) - jocl (minor config changes req.)
Diffstat (limited to 'make/build-test.xml')
-rw-r--r--make/build-test.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/make/build-test.xml b/make/build-test.xml
index bb36243..f9092d0 100644
--- a/make/build-test.xml
+++ b/make/build-test.xml
@@ -601,6 +601,8 @@ chmod 644 ${results}/* \${line.separator}
<include name="${build_t.gen.rootrel}/native/Bindingtest1p1Impl_JNI.c"/>
<include name="${build_t.gen.rootrel}/native/TK_Engine_JNI.c"/>
<include name="${build_t.gen.rootrel}/native/TK_Surface_JNI.c"/>
+ <include name="${build_t.gen.rootrel}/native/TK_ModelConst_JNI.c"/>
+ <include name="${build_t.gen.rootrel}/native/TK_ModelMutable_JNI.c"/>
</patternset>
<c.build c.compiler.src.files="junit.test1p1.c.src.files"
@@ -625,6 +627,8 @@ chmod 644 ${results}/* \${line.separator}
<include name="${build_t.gen.rootrel}/native/Bindingtest1p2Impl_JNI.c"/>
<include name="${build_t.gen.rootrel}/native/TK_Engine_JNI.c"/>
<include name="${build_t.gen.rootrel}/native/TK_Surface_JNI.c"/>
+ <include name="${build_t.gen.rootrel}/native/TK_ModelConst_JNI.c"/>
+ <include name="${build_t.gen.rootrel}/native/TK_ModelMutable_JNI.c"/>
</patternset>
<c.build c.compiler.src.files="junit.test1p2.c.src.files"