Re: GObject Introspection as part of the GNOME platform



Johan Dahlin wrote:
> As far as I can see there aren't any easy solutions.
> We're depending on libffi to calculate struct sizes for the typelib
> which is very
> much host and compiler dependent.  g-ir-compile really needs to run on the
> target system the way things are setup right now. The same applies
> for the small generated program which introspects signals & properties, but
> that's probably easier to solve.
>
> In my opinion, supporting cross-compilation shouldn't be a blocker for
> integration into glib proper. It's more of a 'nice feature' to support.

I'm sure people putting gnome on phones will disagree.

You could do tricks like using the cross compiler to generate assembly instead
of machine code from specially-crafted, generated C code, and then parse the
resulting assembly to extract the structure sizes and offsets.


-- 
muppet <scott at asofyet dot org>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]