Re: [pygccxml-development] Re: recent changes to pygccxml\pyplusplus
Brought to you by:
mbaas,
roman_yakovenko
|
From: Matthias B. <ba...@ir...> - 2006-03-06 15:21:09
|
Allen Bierbaum wrote:
> Interesting. I would like to hear more about that. I was never able to
> figure out what ALL_AT_ONCE did let alone get it to work. I have been
> creating my own temporary file in the wrapper generation script. Please
> tell me more. :)
The parser() function has an option "compilation_mode" which can be set
to pygccxml.parser.COMPILATION_MODE.ALL_AT_ONCE (default is FILE_BY_FILE):
decls = pygccxml.parser.parse(
...<your options here>....,
compilation_mode = pygccxml.parser.COMPILATION_MODE.ALL_AT_ONCE
)
With this option pyplusplus generates a temporary header (it seems this
is even done in memory so no temporary file is used, but I haven't
inspected the sources that closely, so I could be wrong) and invokes
gccxml only once. So it would relieve you from creating the temporary
header yourself. The drawback is that this compilation mode totally
ignores the cache. :(
- Matthias -
|