fpp depend - nasa/fpp GitHub Wiki
This tool computes dependencies for FPP source files.
Options:
- 
-a: Enable unit test auto helpers.
- 
-dfile: Write direct dependencies to file.
- 
-ffile: Write F Prime framework dependencies to file.
- 
-gfile: Write the names of generated autocode files to file.
- 
-ifile: Write included dependencies to file.
- 
-mfile: Write missing dependencies to file.
- 
-u: file: Write the names of generated unit test autocode files to file.
Input: A list fl of files: either the single file stdin or a list of files specified on the command line.
Output:
- 
Write a list of files (the dependencies) one per line to standard output, as absolute paths with no other punctuation. The dependencies are transitive. For example, if a.fppdepends onb.fppandb.fppdepends onc.fpp, thena.fppdepends onb.cppand onc.fpp. Included files in the dependency graph are not counted as dependencies. For example, if a filea.fppincludesb.fppanda.fppdepends onc.fppafter resolving the inclusion, thena.fppdepends onc.fppbut notb.fpp.
- 
If option -dis present, then write direct dependencies to the specified file. For example, ifa.fppdepends onb.fppandb.fppdepends onc.fpp, thena.fppdirectly depends onb.fppbut not onc.fpp. Included files in the dependency graph are counted as direct dependencies.
- 
If option -fis present, then write F Prime framework dependencies to the specified file.
- 
If option -gis present, then write the names of generated autocode files to the specified file.
- 
If option -iis present, then write included files in the dependency graph to the specified file.
- 
If option -mis present, then write missing dependencies to the specified file.
- 
If option -uis present, then write the names of generated unit test files to the specified file. If option-ais present, then include the auto-generated test helper code in the list of files.
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 -dis present, then write the direct dependency file set of a' to the specified file.
- 
If option -fis present, then write F Prime framework dependencies to the specified file. The currently recognized dependencies are as follows:- 
Fw_Compif tul contains a passive component.
- 
Fw_CompQueuedif tul contains a queued or active component.
- 
Osif tul contains a queued or active component or a guarded input port specifier.
 
- 
- 
If option -gis present, then write the names of the generated autocode and implementation template files to the specified files. Use the same procedure as forfpp-filenames.
- 
If option -iis present, then write the included file set of a' to the specified file.
- 
If option -mis present, then write the missing dependency file set of a' to the specified file.
- 
If option -uis present, then write the names of the generated unit test and unit test implementation files to the specified files. Use the same procedure as forfpp-filenames.