- def CopyIncludeDirectory(self):
- linkdst = os.path.join(self.config.prefix, 'mingw')
- src = os.path.join(
- self.config.src_dir,
- self.config.arch,
- self.source_files.GetExtractDirOf('mingw_hdr'),
- 'include'
- )
- dst_parent = os.path.join(self.config.prefix, self.config.target_combo)
- dst = os.path.join(dst_parent, 'include')
- if not os.path.exists(dst):
- if not os.path.exists(dst_parent):
- os.makedirs(dst_parent)
- print 'Copying headers to', self.config.Relative(dst)
- shutil.copytree(src, dst, True)
- if not os.path.lexists(linkdst):
- print 'Making symlink at', self.config.Relative(linkdst)
- os.symlink(self.config.target_combo, linkdst)