Posted by
Sven Gothel on
Jul 21, 2014; 1:22pm
URL: https://forum.jogamp.org/gluegen-examples-needed-tp4031123p4032607.html
On 07/20/2014 03:09 AM, peterk [via jogamp] wrote:
<snip/>
>
> What I woudl love is for a simple gluegen built class a simple complete script
> or gnu make makefile (not Ant) which isn't factored in a convoluted hard to
> untangle blob of hard to trace dependencies for a simple complete C+java
> application.
>
> Basically A "C" file with a simple method or methods in it like void
> printString(char *string) { printf(string); } and the associated .h .cfg (etc)
> files required for the build.
>
<snip/>
> *And* it's output is then combined with and any ancilary code needed to create
> a complete loadable DLL with all the proper export declarations and or export
> symbol tables, bind it with whatever libraries might be needed, and a simple
> java main() class that will load the built DLL and classes and properly call
> the method.
>
<snip/>
> An extended "complete" version would have a method for each data type
> supported by gluegen such as the ones well exemplified in the gluegen manual.
> That part seems good, it's putting the whole thing together in a non-ant
> build to start working on a real C+java app is my issue.
GlueGen unit tests:
<gluegen/src/junit/com/jogamp/gluegen/test/junit/generation/>
<gluegen/src/junit/com/jogamp/gluegen/test/junit/structgen/>
contain thorough tests of:
- generating the java and native 'glue' based on C header files
- the C 'tool' native code
- testing the code
It uses our ant build facility, hence you would need
to create your own 'scripted' or Makefile based version!
~Sven
>
> Thanks!
>