mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-27 17:46:53 +02:00
Revert "glib-compile-resources: Output depfile in same directory as target"
This reverts commit 9006940de604a8d72bf9198a0e4b20cd113c4b11.
This commit is contained in:
parent
9006940de6
commit
d1763d899c
@ -178,8 +178,6 @@ If <option>FILE</option> is -, the dependencies are written to the standard
|
|||||||
output. Unlike <option>--generate-dependencies</option>, this option can be
|
output. Unlike <option>--generate-dependencies</option>, this option can be
|
||||||
combined with other <option>--generate</option> options to generate dependencies
|
combined with other <option>--generate</option> options to generate dependencies
|
||||||
as a side-effect of generating sources.
|
as a side-effect of generating sources.
|
||||||
If <option>FILE</option> is not an absolute path and <option>--target</option>
|
|
||||||
is passed then it will be relative to the same directory as the target output.
|
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
@ -789,17 +789,6 @@ main (int argc, char **argv)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Output depfile next to generated file */
|
|
||||||
if (!g_path_is_absolute (dependency_file) && target != NULL)
|
|
||||||
{
|
|
||||||
char *targetdir = g_path_get_dirname (target);
|
|
||||||
char *tmp = dependency_file;
|
|
||||||
|
|
||||||
dependency_file = g_build_filename (targetdir, dependency_file, NULL);
|
|
||||||
|
|
||||||
g_free (tmp);
|
|
||||||
g_free (targetdir);
|
|
||||||
}
|
|
||||||
if (!g_file_set_contents (dependency_file, dep_string->str, dep_string->len, &error))
|
if (!g_file_set_contents (dependency_file, dep_string->str, dep_string->len, &error))
|
||||||
{
|
{
|
||||||
g_printerr ("Error writing dependency file: %s\n", error->message);
|
g_printerr ("Error writing dependency file: %s\n", error->message);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user