mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Make glib-compile-resources a little smarter
glib-compile-resources was guessing a filename ending in .c when generating sources, but did not do the same for headers. Fix it so it generates a .h file when guessing the filename for headers. https://bugzilla.gnome.org/show_bug.cgi?id=746753
This commit is contained in:
parent
61a105b883
commit
1f1fa69375
@ -669,6 +669,12 @@ main (int argc, char **argv)
|
||||
base[strlen(base) - strlen (".gresource")] = 0;
|
||||
target_basename = g_strconcat (base, ".c", NULL);
|
||||
}
|
||||
else if (generate_header)
|
||||
{
|
||||
if (g_str_has_suffix (base, ".gresource"))
|
||||
base[strlen(base) - strlen (".gresource")] = 0;
|
||||
target_basename = g_strconcat (base, ".h", NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (g_str_has_suffix (base, ".gresource"))
|
||||
|
Loading…
Reference in New Issue
Block a user