File.__init__(self, abspath, relpath, directory)
self._generator_source_file = None
+ def scan_contents(self, sourcetree, keep_contents):
+ if os.path.exists(self.get_abspath()):
+ File.scan_contents(self, sourcetree, keep_contents)
+
def set_generator_source(self, sourcefile):
self._generator_source_file = sourcefile
.gitattributes for all the files.
load_installed_file_list() can be called to load the list of installed
- files from the build tree (generated by the find-installed-headers target).
+ files from the build tree (generated by CMake).
scan_files() can be called to read all the files and initialize #include
dependencies between the files based on the information. This is done like
def load_installed_file_list(self):
"""Load list of installed files from the build tree."""
- listpath = os.path.join(self._build_root, 'docs', 'doxygen', 'installed-headers.txt')
+ listpath = os.path.join(self._build_root, 'src', 'gromacs', 'installed-headers.txt')
with open(listpath, 'r') as installedfp:
for line in installedfp:
path = line.strip()