forked from enlightenment/efl
Added non-edc resource dependencies on .edc while dumping dependencies
Summary: Added code to include non-edc resource (image, sound, video etc) path in dep file while dumping include dependencies for edc files. Reviewers: raster, cedric, Sergeant_Whitespace Reviewed By: cedric, Sergeant_Whitespace Subscribers: Sergeant_Whitespace Projects: #efl Maniphest Tasks: T2252 Differential Revision: https://phab.enlightenment.org/D2270
This commit is contained in:
parent
4b0e879591
commit
ae157734ff
|
@ -92,7 +92,7 @@ main_help(void)
|
|||
"\n"
|
||||
"-w files.txt Dump all sources files path into files.txt\n"
|
||||
"-anotate Anotate the dumped files.\n"
|
||||
"-deps files.txt Dump gnu style include dependencies path into files.txt\n"
|
||||
"-deps files.txt Dump gnu style include dependencies path into files.txt (overrides -w/-anotate)\n"
|
||||
"-id image/directory Add a directory to look in for relative path images\n"
|
||||
"-fd font/directory Add a directory to look in for relative path fonts\n"
|
||||
"-sd sound/directory Add a directory to look in for relative path sounds samples\n"
|
||||
|
|
|
@ -3578,7 +3578,18 @@ using_file(const char *filename, const char type)
|
|||
{
|
||||
FILE *f;
|
||||
|
||||
if (!watchfile) return;
|
||||
if (depfile)
|
||||
{
|
||||
f = fopen(depfile, "ab");
|
||||
if (!f) return;
|
||||
if (type != 'O')
|
||||
{
|
||||
fprintf(f, " \\\n %s", filename);
|
||||
}
|
||||
fclose(f);
|
||||
}
|
||||
else if (watchfile)
|
||||
{
|
||||
f = fopen(watchfile, "ab");
|
||||
if (!f) return;
|
||||
if (anotate)
|
||||
|
@ -3592,3 +3603,4 @@ using_file(const char *filename, const char type)
|
|||
}
|
||||
fclose(f);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6775,7 +6775,6 @@ cpp_finish(cpp_reader * pfile)
|
|||
else if (!(deps_stream = fopen(opts->deps_file, deps_mode)))
|
||||
cpp_pfatal_with_name(pfile, opts->deps_file);
|
||||
fputs(pfile->deps_buffer, deps_stream);
|
||||
putc('\n', deps_stream);
|
||||
if (opts->deps_file)
|
||||
{
|
||||
if (ferror(deps_stream) || fclose(deps_stream) != 0)
|
||||
|
|
Loading…
Reference in New Issue