From: David Lechner Date: Tue, 11 Aug 2015 09:57:52 +0000 (+0200) Subject: Add --shared-library option for GIR files X-Git-Tag: 0.29.3~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b51ed806a1964191ab3c351eb5d84ca0e6f8987a;p=thirdparty%2Fvala.git Add --shared-library option for GIR files Fixes bug 585116 --- diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala index f0a75e292..3a70e683c 100644 --- a/codegen/valagirwriter.vala +++ b/codegen/valagirwriter.vala @@ -30,6 +30,7 @@ public class Vala.GIRWriter : CodeVisitor { private string directory; private string gir_namespace; private string gir_version; + private string gir_shared_library; protected virtual string? get_interface_comment (Interface iface) { return null; @@ -141,11 +142,12 @@ public class Vala.GIRWriter : CodeVisitor { * @param context a code context * @param filename a relative or absolute filename */ - public void write_file (CodeContext context, string directory, string gir_filename, string gir_namespace, string gir_version, string package) { + public void write_file (CodeContext context, string directory, string gir_filename, string gir_namespace, string gir_version, string package, string? gir_shared_library) { this.context = context; this.directory = directory; this.gir_namespace = gir_namespace; this.gir_version = gir_version; + this.gir_shared_library = gir_shared_library; var root_symbol = context.root; var glib_ns = root_symbol.scope.lookup ("GLib"); @@ -256,6 +258,9 @@ public class Vala.GIRWriter : CodeVisitor { write_indent (); buffer.append_printf ("