June 07, 2012
On Mon, 28 May 2012 19:55:09 +0200
Andrej Mitrovic <andrej.mitrovich@gmail.com> wrote:

Dear Andrej,

thank you very much for your response...

> I was busy doing another rewrite of my codebase since it was getting rather large and too specific for wxwidgets (lots and lots of doxygen workarounds). Doxygen files for handwritten interfaces are full of missing information so this wasn't going anywhere (I've made about 65 fixes myself but this was already getting tiring

Yeah, I was following wx Trac for some time. :-)

> So right now I'm writing a generic C++ wrapper generator, not specific to wxwidgets.

Will it be usable for C libs as well?

> I can still extract type info from doxygen xml (as long
> as the xml was generated from actual header files unlike in
> wxwidgets), but I've also added support for gccxml (the cvs version is
> mostly up-to-date and it actually works for wxWidgets). I should be
> able to add support for clang later on, by outputting its typeinfo to
> xml.

It sounds very good.

> Since I've made the codegen generic enough it should be possible to output swig interface files instead of directly generating code. I'll experiment with this once I'm done with my own codegen feature.

Interesting...I'm really curious to try it out.

> Anyway I really have no idea whether I'll have wxWidgets bindings any time soon but I think I'll put the code generator online in a few weeks.

Thank you very much.


> Work is still in progress, need more time!

Do you envision that your generator could be used for something like Qt as well? (Personally, I'm more inclined to wxWidgets due to its native look, but D is really starving with stable & maintained GUI bindings.)


Sincerely,
Gour


-- 
From anger, complete delusion arises, and from delusion bewilderment of memory. When memory is bewildered, intelligence is lost, and when intelligence is lost one falls down again into the material pool.

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810


June 07, 2012
On 6/7/12, Gour <gour@atmarama.net> wrote:
> Will it be usable for C libs as well?

I'll see about that. I'm not sure if doxygen works on C libraries, if it does then it's doable. Since now I support POD types there's nothing from stopping the generator to work on C libraries.

gccxml works for C++ libraries *or* as a special case C libraries which can be parsed by a C++ compiler (which means there's a strict set of rules where it might not work). The real issue with gccxml is that it's a set of patches that modifies the g++ front-end but not the GCC front-end. I'm not yet familiar with what the patches do but I'd like to get to know my way around hacking gccxml at a later point.

And for clang I'll have to write a front-end that loads clanglib and writes .xml files so I can read them in.

I don't want the generator to be hardcoded to any type of compiler front-end (unlike bcdgen or some other generators out there).

> Do you envision that your generator could be used for something like Qt as well? (Personally, I'm more inclined to wxWidgets due to its native look, but D is really starving with stable & maintained GUI bindings.)

Qt is quite sophisticated, so I'm not too sure. One issue I'll have to address is macros. There's already a QtD generator (it ships with QtD) but it's written in C++. Still, there could be something to learn from that codebase.
July 07, 2012
On Fri, 8 Jun 2012 00:49:37 +0200
Andrej Mitrovic <andrej.mitrovich@gmail.com> wrote:

> I'll see about that. I'm not sure if doxygen works on C libraries, if it does then it's doable. Since now I support POD types there's nothing from stopping the generator to work on C libraries.

If/when you publish something, are you going to announce it in the 'announce' list 'cause I'll unsubscribe from the rest?

For the moment, I'm postponing my intended usage of D and going (back) to Python, but would like to know if/when something is changing GUI-wise within D community...


Sincerely,
Gour

-- 
Bewildered by the modes of material nature, the ignorant fully engage themselves in material activities and become attached. But the wise should not unsettle them, although these duties are inferior due to the performers' lack of knowledge.

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810


July 08, 2012
On 2012-01-25 18:07, Trass3r wrote:
>> Whats.necessary to use D in order to create C++ bindings ?
>
> github.com/jacob-carlborg/dstep

I've released the first alpha/beta version:

http://forum.dlang.org/thread/jt9i6l$2go5$1@digitalmars.com

-- 
/Jacob Carlborg


1 2 3 4 5 6 7 8 9
Next ›   Last »