Re: Re: [Synopsis-devel] Building on win32 without Cygwin
Stefan Seefeld <[email protected]>
| Newsgroups | gmane.comp.documentation.synopsis |
|---|---|
| Message-ID | <[email protected]> |
[email protected] wrote: > I've tried scons. It seems pretty cool, but I'm not sure how well it > replaces configure in terms of finding all the tools to use. I don't think it does that at all. That's one reason I didn't go down this route further. > I put the python23.dll in my mingw/lib directory, then added -lpython23 > to LIBS in the makefile for the Cxx parser. you're supposed turn the > python23.dll into libpython23.a like this > (http://sebsauvage.net/python/mingw.html) but for some reason this > worked for me. Interesting. I'll have to try it out (I'll be working with windows starting next week or so, so I can look into windows native support for synopsis). I'v come across a post on comp.lang.python where someone mailed about an RFE concerning libpythonxy.a being included in windows python packages for the above reason. > To be honest, I want to use your Cxx parser to make a test collector in > python (http://www.c2.com/cgi/wiki?TestCollector). How do I call the > parser directly from a python script? using Cxx.Parser.process, I'm not > sure what to pass into as the parameter 'ast', or how to get the AST > object out. indeed, and I don't think it would be of much use for you the way it is right now. I'm not preserving the whole AST, but just the declarations. Is that really enough for you to generate a unit test automatically ? In case you are interested, I'm looking into extending the synopsis API to support the richer AST the C++ backend ('Openc++') generates, so more advanced use cases such as code generation are supported. That work will take quite some time, so please don't hold your breath. However, any contribution would of course get us there faster :-) Regards, Stefan