-
Notifications
You must be signed in to change notification settings - Fork 35
fpp depend
This tool computes dependencies for FPP source files.
Flags:
-
-i
: Treat included files as dependencies. -
-m
file: Write a list of missing dependencies to file.
Input: A list fl of files: either the single file stdin or a list of files specified on the command line.
Output:
-
A list of files (the dependencies), written one per line to standard output, as absolute paths with no other punctuation. By default, included files are not listed as dependencies. For example, if a file
a.fpp
includesb.fpp
andb.fpp
depends onc.fpp
, thena.fpp
depends onc.fpp
. -
If option
-i
is present, then the dependency list contains included files. For example, for the files described above,a.fpp
depends onb.fpp
andc.fpp
. -
If option
-m
is present, then write missing dependencies to the specified file.
Procedure:
-
Create a fresh analysis data structure a.
-
Add the specified input files other than stdin, if any, to the input files in a.
-
Parse each of the files in fl, generating a list tul of translation units. When parsing, recursively resolve include specifiers and add the path of each included file to the included file set in a.
-
Let a' be the result of computing dependencies with inputs a and tul.
-
Write out the dependency files in a'.
-
If option
-i
is present, then write the included file set of a' to standard output. -
If option
-m
is present, then write the missing dependency file set of a' to the specified file.