Lines Matching refs:Dir
19 Note that the build tree must be inside the project dir.
205 def runCleanupScript(Dir, PBuildLogFile):
206 Cwd = os.path.join(Dir, PatchedSourceDirName)
207 ScriptPath = os.path.join(Dir, CleanupScript)
211 def runDownloadScript(Dir, PBuildLogFile):
212 ScriptPath = os.path.join(Dir, DownloadScript)
213 runScript(ScriptPath, PBuildLogFile, Dir)
234 def downloadAndPatch(Dir, PBuildLogFile):
235 CachedSourceDirPath = os.path.join(Dir, CachedSourceDirName)
240 runDownloadScript(Dir, PBuildLogFile)
245 PatchedSourceDirPath = os.path.join(Dir, PatchedSourceDirName)
253 applyPatch(Dir, PBuildLogFile)
255 def applyPatch(Dir, PBuildLogFile):
256 PatchfilePath = os.path.join(Dir, PatchfileName)
257 PatchedSourceDirPath = os.path.join(Dir, PatchedSourceDirName)
275 def runScanBuild(Dir, SBOutputDir, PBuildLogFile):
276 BuildScriptPath = os.path.join(Dir, BuildScript)
286 SBCwd = os.path.join(Dir, PatchedSourceDirName)
343 def runAnalyzePreprocessed(Dir, SBOutputDir, Mode):
344 if os.path.exists(os.path.join(Dir, BuildScript)):
363 PlistPath = os.path.join(Dir, SBOutputDir, "date")
367 for FullFileName in glob.glob(Dir + "/*"):
385 check_call(Command, cwd = Dir, stderr=LogFile,
400 def buildProject(Dir, SBOutputDir, ProjectBuildMode, IsReferenceBuild):
429 downloadAndPatch(Dir, PBuildLogFile)
430 runCleanupScript(Dir, PBuildLogFile)
431 runScanBuild(Dir, SBOutputDir, PBuildLogFile)
433 runAnalyzePreprocessed(Dir, SBOutputDir, ProjectBuildMode)
436 runCleanupScript(Dir, PBuildLogFile)
445 PathPrefix = Dir
447 PathPrefix = os.path.join(Dir, PatchedSourceDirName)
527 def runCmpResults(Dir, Strictness = 0):
530 RefDir = os.path.join(Dir, SBOutputDirReferencePrefix + SBOutputDirName)
531 NewDir = os.path.join(Dir, SBOutputDirName)
537 # Log folders are also located in the results dir, so ignore them.
566 PatchedSourceDirPath = os.path.join(Dir, PatchedSourceDirName)
617 def testProject(ID, ProjectBuildMode, IsReferenceBuild=False, Dir=None, Strictness = 0):
622 if Dir is None :
623 Dir = getProjectDir(ID)
625 print " Build directory: %s." % (Dir,)
629 SBOutputDir = os.path.join(Dir, RelOutputDir)
631 buildProject(Dir, SBOutputDir, ProjectBuildMode, IsReferenceBuild)
636 runCmpResults(Dir, Strictness)