On 11/11/2015 01:40 AM, Burton, Ross wrote:

On 10 November 2015 at 23:10, Phil Blundell <p...@pbcl.net
<mailto:p...@pbcl.net>> wrote:

    Why does gobject-introspection (presumably giscanner, right?) need to
    run binaries on the target at all?  I thought it operated mostly on the
    source code.


Same reason gtk-doc's scanner executes code: vast amounts of relevant
information can't reliably be extracted from source but is trivial to
introspect at runtime (GObject hierarchy, properties, signals, etc).

Yep; the real problem is that GObject is implementing OOP semantics in a language that doesn't natively support them. So you can't extract information about those either from the source code, or from the finished binaries, or during binary build. The only way to do it is to run the actual binary and ask it to describe itself.


Alex

--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to