List of dependencies, with file recording support.
Note that the output file is not automatically closed. You have to explicitly call the close() method.
There are no base classes.
There are no implemented interfaces.
There are no attributes in this class.
add(filename)
If the dependency filename has not already been added, append it to self.list and print it to self.file if self.file is not None.
close()
Close the output file.
set_output(output_file)
Set the output file and clear the list of already added dependencies.
output_file must be a string. The specified file is immediately overwritten.
If output_file is '-', the output will be written to stdout. If it is None, no file output is done when calling add().
There are no known subclasses.