Re: GObject Introspection as part of the GNOME platform



muppet wrote:
> 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.

That was kinda my thought.

> 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.

Ick. Maybe a better option is to use
AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF, though I'm far from sure how
useful that is in this case or even if it'll work in general.

Thanks,
Rob


-- 
Rob Taylor, Codethink Ltd. - http://codethink.co.uk


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