def on_castxml_done(self): assert self.hanging_header and self.hanging_xml # Eliminate the temporary header ProjectBase.remove_possible_temp_cpp_header(self.hanging_header) if os.path.exists(self.hanging_xml): logging.info(u"Compressing XML output...") worker = Worker(self, self.on_compress, self.on_compression_done) worker.start() else: self.on_compression_done()
def redirect_header(self, header_path): path = header_path if self.mod_proj.header_wrappers_dir: canonical = os.path.splitext(os.path.split(header_path)[1])[0] wrapper = (self.mod_proj.header_wrappers_dir + canonical.upper() + self.mod_proj.header_wrappers_ext) if os.path.exists(wrapper): path = wrapper return ProjectBase.make_temp_cpp_header(path)