Re: gtk3
Maxence Guesdon <[email protected]> Mon, 28 Jan 2013 13:50:22 +0100
| Newsgroups | gmane.comp.lang.ocaml.lib.gtk |
|---|---|
| Organization | INRIA |
| Message-ID | <20130128135022.3a1ae86f@alcazar> |
On Thu, 24 Jan 2013 09:24:24 +0100 Maxence Guesdon <[email protected]> wrote: > On Thu, 24 Jan 2013 16:56:05 +0900 > Jacques Garrigue <[email protected]> wrote: > > > On 2013/01/24, at 11:55, Jacques Garrigue <[email protected]> wrote: > > > > IIRC, Jacques told us Valentin Samir was going to work on a new way to > > > > generate bindings. Is there something yet ? > > > > > > Sorry not to have informed you earlier. His work is available in branch gtk3. It is based on Adrien's attempt, and generates automatically bindings and signals directly from the gir files. > > > > > > It works pretty well and he could run a few simple examples using only generated bindings. > > > > > > What is missing is integration with the handcrafted parts of lablgtk, and the generation of the OO layer. > > > Unfortunately, I have had no time to finish his work. > > > > > At least I have made possible to test it: > > > > git checkout -t gtk3 > > ./configure > > cd src3; make > > cd introspection; make > > make test > > Thanks. I have some problems compiling. I will begin by resolving them, > this will make me learn how it works. Hello, I had a look at the gtk3 branch. (by the way, the branch is out of sync with all the changes since we use findlib. Since the src directory was copied in a src3 directory, files from src may have changed indepedently. I propose to do the following: - start a new branch, gt3x or whatever, - create a /tools directory where to put the stub generator actually in src3/introspection - make it use xmlm rather than xml-light, which stops when encountering "/" in a XML attribute in GLib-2.0.gir - add a target in src/Makefile to generate stubs, - use these stubs in src/ files The question whether the release should already contain stubs or not was raised. What do you think ? Personnaly, I think the generated stubs should be included in the release, so that the person which compiles do not have to regenerate them, depending on more installed libraries. The separate "stubs" target in src/Makefile would be available, anyway. Cheers, Maxence