Home | History | Annotate | Download | only in scripts

Lines Matching refs:dstFile

96 class DstFile (object):
97 def __init__ (self, dstFile):
98 self.dstFile = dstFile
101 dirName = os.path.dirname(self.dstFile)
108 class CopyFile (DstFile):
109 def __init__ (self, srcFile, dstFile):
110 super(CopyFile, self).__init__(dstFile)
115 if os.path.exists(self.dstFile):
116 die("%s already exists" % self.dstFile)
117 shutil.copyfile(self.srcFile, self.dstFile)
119 class GenReleaseInfoFileTarget (DstFile):
120 def __init__ (self, dstFile):
121 super(GenReleaseInfoFileTarget, self).__init__(dstFile)
133 "--out=%s" % self.dstFile
136 class GenCMake (DstFile):
137 def __init__ (self, srcFile, dstFile, replaceVars):
138 super(GenCMake, self).__init__(dstFile)
144 print " GenCMake: %s" % removeLeadingPath(self.dstFile, packageBuildInfo.dstBasePath)
149 writeFile(self.dstFile, src)
190 def __init__ (self, srcFile, dstFile, makeTarget):
192 self.dstFile = dstFile
197 fullDstPath = os.path.normpath(os.path.join(packageBuildInfo.dstBasePath, self.dstFile))
221 def __init__ (self, dstFile):
222 self.dstFile = dstFile
242 dstFile = os.path.normpath(os.path.join(packageBuildInfo.dstBasePath, self.dstFile))
244 CopyFile(srcFile, dstFile).make(packageBuildInfo)
317 def makeFileCopy (srcFile, dstFile):
318 return SingleFileTarget(srcFile, dstFile, lambda s, d: CopyFile(s, d))