From b51ed806a1964191ab3c351eb5d84ca0e6f8987a Mon Sep 17 00:00:00 2001 From: David Lechner Date: Tue, 11 Aug 2015 11:57:52 +0200 Subject: [PATCH] Add --shared-library option for GIR files Fixes bug 585116 --- codegen/valagirwriter.vala | 7 ++++++- compiler/valacompiler.vala | 4 +++- doc/valac.1 | 3 +++ 3 files changed, 12 insertions(+), 2 deletions(-) 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 ("