예제 #1
0
    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()
예제 #2
0
    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()
예제 #3
0
    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)
예제 #4
0
    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)