Skip to content

fpp depend

bocchino edited this page Dec 12, 2020 · 21 revisions

This tool computes dependencies for FPP source files.

Flags:

  1. -i: Treat included files as dependencies.

  2. -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:

  1. 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 includes b.fpp and b.fpp depends on c.fpp, then a.fpp depends on c.fpp.

  2. If option -i is present, then the dependency list contains included files. For example, for the files described above, a.fpp depends on b.fpp and c.fpp.

  3. If option -m is present, then write missing dependencies to the specified file.

Procedure:

  1. Create a fresh analysis data structure a.

  2. Add the specified input files other than stdin, if any, to the input files in a.

  3. 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.

  4. Let a' be the result of computing dependencies with inputs a and tul.

  5. Write out the dependency files in a'.

  6. If option -i is present, then write the included file set of a' to standard output.

  7. If option -m is present, then write the missing dependency file set of a' to the specified file.

Clone this wiki locally