mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 09:46:17 +01:00
g-ir-compiler: Allow multiple --shared-library
https://bugzilla.gnome.org/show_bug.cgi?id=744535 Signed-off-by: Garrett Regier <garrett.regier@riftio.com>
This commit is contained in:
parent
276bbf8f94
commit
380ec88f48
@ -40,7 +40,7 @@ gchar **includedirs = NULL;
|
||||
gchar **input = NULL;
|
||||
gchar *output = NULL;
|
||||
gchar *mname = NULL;
|
||||
gchar *shlib = NULL;
|
||||
gchar **shlibs = NULL;
|
||||
gboolean include_cwd = FALSE;
|
||||
gboolean debug = FALSE;
|
||||
gboolean verbose = FALSE;
|
||||
@ -131,7 +131,7 @@ static GOptionEntry options[] =
|
||||
{ "includedir", 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &includedirs, "include directories in GIR search path", NULL },
|
||||
{ "output", 'o', 0, G_OPTION_ARG_FILENAME, &output, "output file", "FILE" },
|
||||
{ "module", 'm', 0, G_OPTION_ARG_STRING, &mname, "module to compile", "NAME" },
|
||||
{ "shared-library", 'l', 0, G_OPTION_ARG_FILENAME, &shlib, "shared library", "FILE" },
|
||||
{ "shared-library", 'l', 0, G_OPTION_ARG_FILENAME_ARRAY, &shlibs, "shared library", "FILE" },
|
||||
{ "debug", 0, 0, G_OPTION_ARG_NONE, &debug, "show debug messages", NULL },
|
||||
{ "verbose", 0, 0, G_OPTION_ARG_NONE, &verbose, "show verbose messages", NULL },
|
||||
{ G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &input, NULL, NULL },
|
||||
@ -205,11 +205,11 @@ main (int argc, char ** argv)
|
||||
{
|
||||
GITypelib *typelib;
|
||||
|
||||
if (shlib)
|
||||
if (shlibs)
|
||||
{
|
||||
if (module->shared_library)
|
||||
g_free (module->shared_library);
|
||||
module->shared_library = g_strdup (shlib);
|
||||
module->shared_library = g_strjoinv (",", shlibs);
|
||||
}
|
||||
|
||||
g_debug ("[building] module %s", module->name);
|
||||
|
Loading…
Reference in New Issue
Block a user