Login  Register

Re: gluegen - examples needed

Posted by Wade Walker on Jul 23, 2014; 1:27am
URL: https://forum.jogamp.org/gluegen-examples-needed-tp4031123p4032636.html

peterk wrote
If the directives in the config files are overridable with gluegen command line arguments,
ie: the JavaOutputDir,and NativeOutputDir I'll do that.

If not if I include a build generated config file on the command line will it specify those values for all config files following it on the command line if they do not set these values themselves?

If so will the path specified for the output directory be interpreted relative to the config file containing the directive, or to the config file specifying the output to be generated?
If you look at the JOCL project source code (which is the one I'm most familiar with, since I just had to work on this stuff recently), jocl/make/build.xml shows how the gluegen tool is invoked with an "output root directory", which should also be a command-line argument to gluegen. The config files (like jocl/make/config/cl-common.cfg) use JavaOutputDir and NativeOutputDir to specify output directories relative to that root directory. So it should be entirely possible for you to have a separate build directory and keep your source directory read-only -- that's what JOCL does also.