in_rsp = True elif ("call " in line): # end of a response file in_rsp = False elif in_rsp: if dbug: print("consider line " + line) if ("-I" in line and ac.isWelcomeInclude(line)): ipath = relname(line.rpartition('-I')[2].replace('"', '')) includes.add(ipath) addShipDir(ipath) if "libraries\\zlib" in line: zlibPath = ipath if (".cpp" in line or ".cxx" in line): if ("-F" in line): # strip inlined compiler args if any line = line.split("-F")[0].strip() if (ac.isWelcomeSrcDir(line) and ac.isNotForbidden(line)): file = absname(line.replace('"', '')) if dbug: print("consider file " + file) if ac.isSrcFile(file) or ac.isExampleFile(file): addFile(file) elif ".test\\" in line and '.exe" ' in line and "2>&1" in line: # running a test import shlex test = shlex.split(line.partition(" > ")[0]) head = test[0].replace('"', '').partition(".test")[0].rpartition("\\")[0] tail = test[0].replace('"', '').rpartition("\\")[2] cmd = makeProjectName(head + "\\" + tail) args = "" for t in range(1, len(test)): args = args + relname(test[t])
if dbug : print line if ("ProteoWizard " in line and "last committed" in line) : buildversion = line.split(" ")[1].replace(".","_") if ("file " in line and "obj.rsp" in line) : # beginning of a repsonse file in_rsp = True elif ("call " in line) : # end of a response file in_rsp = False elif in_rsp : if ("-I" in line and ac.isWelcomeInclude(line)): ipath = relname(line.rpartition('-I')[2].replace('"','')) includes.add(ipath) addShipDir(ipath) if "libraries\\zlib" in line : zlibPath = ipath if ((".cpp" in line or ".cxx" in line) and ac.isWelcomeSrcDir(line) and ac.isNotForbidden(line)) : file = absname(line.replace('"','')) if ac.isSrcFile(file) or ac.isExampleFile(file): addFile(file) elif ".test\\" in line and '.exe" ' in line and "2>&1" in line : # running a test import shlex test = shlex.split(line.partition(" > ")[0]) head = test[0].replace('"','').partition(".test")[0].rpartition("\\")[0] tail = test[0].replace('"','').rpartition("\\")[2] cmd = makeProjectName(head+"\\"+tail) args = "" for t in range(1,len(test)): args = args + relname(test[t]) if (t < len(test)-1) : args += " " testargs[cmd]=args
in_rsp = True elif ("call " in line) : # end of a response file in_rsp = False elif in_rsp : if dbug: print ("consider line "+line) if ("-I" in line and ac.isWelcomeInclude(line)): ipath = relname(line.rpartition('-I')[2].replace('"','')) includes.add(ipath) addShipDir(ipath) if "libraries\\zlib" in line : zlibPath = ipath if (".cpp" in line or ".cxx" in line) : if ("-F" in line) : # strip inlined compiler args if any line = line.split("-F")[0].strip() if (ac.isWelcomeSrcDir(line) and ac.isNotForbidden(line)) : file = absname(line.replace('"','')) if dbug: print ("consider file "+file) if ac.isSrcFile(file) or ac.isExampleFile(file): addFile(file) elif ".test\\" in line and '.exe" ' in line and "2>&1" in line : # running a test import shlex test = shlex.split(line.partition(" > ")[0]) head = test[0].replace('"','').partition(".test")[0].rpartition("\\")[0] tail = test[0].replace('"','').rpartition("\\")[2] cmd = makeProjectName(head+"\\"+tail) args = "" for t in range(1,len(test)): args = args + relname(test[t]) if (t < len(test)-1) :