Re: [pygccxml-development] Header files in generated code
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-06-20 13:31:50
|
On 6/20/06, Allen Bierbaum <al...@vr...> wrote: > Summary: How is the list of header files in the generated module code > determined? The code I am going to describe is in module_creator/creator.py file. See _create_includes method Basically I extract all files where declaration have been declared and then I add include to those files to generated code. > Details: > > I have my generation script running now, but it is producing code that > will not compile. The problem is that the list of header files in the > generated code contains file names that I never told the module builder > to parse directly. The "extra" files are not meant to be included > directly and cause the compiler to error out (they are .inl files that > are included by the associated class .hpp file) > > It seems a little strange to me that the generated code would not just > contain the same list of headers that I passed to the module builder > originally. Those headers were used to find all the symbols so it would > make sense that those are the only headers that would be needed in the > generated code. You are absolutely right and this should be fixed. > Is there some way that I can override this behavior and tell pyplusplus > to only put my original list of headers into the generated code? Yes. mb = module_builder_t( ... ) mb.build_code_creator( ... ) mb.code_creator.replace_included_headers( list of your includes(=plain string ) ) -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |