From: Abderrahim Kitouni Date: Fri, 4 Sep 2009 15:18:38 +0000 (+0100) Subject: GIR writer: Always include GLib and GObject X-Git-Tag: 0.7.10~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fkeep-around%2F81084a45a913a69e69d50892ac0db038d981e5fe;p=thirdparty%2Fvala.git GIR writer: Always include GLib and GObject --- diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala index 1f4f00b5c..d5677fe80 100644 --- a/codegen/valagirwriter.vala +++ b/codegen/valagirwriter.vala @@ -66,6 +66,10 @@ public class Vala.GIRWriter : CodeVisitor { stream.printf (">\n"); indent++; + // FIXME: find a way to include everything + write_gir_include ("GLib", "2.0"); + write_gir_include ("GObject", "2.0"); + write_package (package); context.accept (this); @@ -76,6 +80,11 @@ public class Vala.GIRWriter : CodeVisitor { stream = null; } + private void write_gir_include (string name, string version) { + write_indent (); + stream.printf ("\n", name, version); + } + private void write_package (string package) { write_indent (); stream.printf ("\n", package);