Example #1
0
def addFile(file) :
	if not ".svn" in file :
		addShipDir(os.path.dirname(file))
		if ac.isTestFile(file) or ac.isExampleFile(file) :
			projects.add(file)
		elif ("ramp\\" in file or "TestHarness" in file) :
			testhelpers.add(file)
		else :
			srcs.add(file)
Example #2
0
def addFile(file):
    if not ".svn" in file:
        addShipDir(os.path.dirname(file))
        if ac.isTestFile(file) or ac.isExampleFile(file):
            projects.add(file)
        elif ("ramp\\" in file or "TestHarness" in file):
            testhelpers.add(file)
        else:
            srcs.add(file)
Example #3
0
def addFile(file) :
	if ac.isNotForbidden(file) :
		addShipDir(os.path.dirname(file))
		if ("/pwiz/libraries/libsvm" in file):
			if ("libsvm" in file):
				srcs.add(file)
				includes.add(relname(file.rpartition("/")[0]))
		elif ac.isExampleFile(file) : 
			if ("/pwiz_tools/examples/" in file) : # need a full path
				examples.add(file)
			else :
				examples.add(file.replace("pwiz_tools/examples/","%s/pwiz_tools/examples/"%ac.get_pwizroot()))
		elif isTestFile(file) :
			tests.add(file)
		else :
			srcs.add(file)
Example #4
0
def addFile(file) :
	if ac.isNotForbidden(file) :
		addShipDir(os.path.dirname(file))
		if ("/pwiz/libraries/libsvm" in file):
			if ("libsvm" in file):
				srcs.add(file)
				includes.add(relname(file.rpartition("/")[0]))
		elif ac.isExampleFile(file) : 
			if ("/pwiz_tools/examples/" in file) : # need a full path
				examples.add(file)
			else :
				examples.add(file.replace("pwiz_tools/examples/","%s/pwiz_tools/examples/"%ac.get_pwizroot()))
		elif isTestFile(file) :
			tests.add(file)
		else :
			srcs.add(file)
Example #5
0
	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

# set project GUIDs
Example #6
0
		elif isTestFile(file) :
			tests.add(file)
		else :
			srcs.add(file)




# assume a build log generated by "bjam -d+2"
for line in open(logfile):
	if dbugLog :
		print (line)
	if ("g++" in line or "gcc" in line) and " -c " in line and '.o" "' in line:
		line = line.replace("\\","/") # in case its mingw gcc
		file = (line.rpartition(".o\" \"")[2]).rpartition("\"")[0]
		if ac.isSrcFile(file) or ac.isExampleFile(file):
			addFile(file)
		if ".archive" in line :
			if "\\" in line: 
				libname = line.rpartition("\\")[2]
			else :
				libname = line.rpartition("/")[2]
			libnames.add(libname.rpartition(".")[0])
		iseek = line
		# 
		# locate any explicit includes
		pwizinc = ' -I"%s/pwiz'%ac.get_pwizroot()
		while (pwizinc in iseek) :
			incl = iseek.rpartition(pwizinc)[2]
			if ac.isNotForbidden(incl) :
				includes.add("pwiz"+incl.partition('"')[0])