diff options
Diffstat (limited to 'compiler/valacompiler.vala')
-rw-r--r-- | compiler/valacompiler.vala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala index 11ccb8666..ac16d2497 100644 --- a/compiler/valacompiler.vala +++ b/compiler/valacompiler.vala @@ -40,6 +40,7 @@ class Vala.Compiler { static string[] metadata_directories; static string vapi_filename; static string library; + static string shared_library; static string gir; [CCode (array_length = false, array_null_terminated = true)] static string[] packages; @@ -102,6 +103,7 @@ class Vala.Compiler { { "pkg", 0, 0, OptionArg.STRING_ARRAY, ref packages, "Include binding for PACKAGE", "PACKAGE..." }, { "vapi", 0, 0, OptionArg.FILENAME, ref vapi_filename, "Output VAPI file name", "FILE" }, { "library", 0, 0, OptionArg.STRING, ref library, "Library name", "NAME" }, + { "shared-library", 0, 0, OptionArg.STRING, ref shared_library, "Shared library name used in generated gir", "NAME" }, { "gir", 0, 0, OptionArg.STRING, ref gir, "GObject-Introspection repository file name", "NAME-VERSION.gir" }, { "basedir", 'b', 0, OptionArg.FILENAME, ref basedir, "Base source directory", "DIRECTORY" }, { "directory", 'd', 0, OptionArg.FILENAME, ref directory, "Output directory", "DIRECTORY" }, @@ -409,7 +411,7 @@ class Vala.Compiler { gir_directory = context.directory; } - gir_writer.write_file (context, gir_directory, gir, gir_namespace, gir_version, library); + gir_writer.write_file (context, gir_directory, gir, gir_namespace, gir_version, library, shared_library); } } |