Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tools/g-ir-scanner
diff options
context:
space:
mode:
Diffstat (limited to 'tools/g-ir-scanner')
-rwxr-xr-xtools/g-ir-scanner16
1 files changed, 11 insertions, 5 deletions
diff --git a/tools/g-ir-scanner b/tools/g-ir-scanner
index 0cf54ce..f53f7fc 100755
--- a/tools/g-ir-scanner
+++ b/tools/g-ir-scanner
@@ -316,17 +316,23 @@ def main(args):
# Transform the C symbols into AST nodes
transformer.set_source_ast(ss)
+ # Transform the C AST nodes into higher level
+ # GLib/GObject nodes
+ glibtransformer = GLibTransformer(transformer,
+ noclosure=options.noclosure)
+
+ # Do enough parsing that we have the get_type() functions to reference
+ # when creating the introspection binary
+ glibtransformer.init_parse()
+
if options.program:
args=[options.program]
args.extend(options.program_args)
binary = IntrospectionBinary(args)
else:
- binary = compile_introspection_binary(options)
+ binary = compile_introspection_binary(options,
+ glibtransformer.get_get_type_functions())
- # Transform the C AST nodes into higher level
- # GLib/GObject nodes
- glibtransformer = GLibTransformer(transformer,
- noclosure=options.noclosure)
glibtransformer.set_introspection_binary(binary)
namespace = glibtransformer.parse()