Re: GObject Introspection as part of the GNOME platform
- From: Rob Taylor <rob taylor codethink co uk>
- To: muppet <scott asofyet org>
- Cc: gtk-devel-list gnome org
- Subject: Re: GObject Introspection as part of the GNOME platform
- Date: Wed, 11 Mar 2009 15:13:14 +0000
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]