All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
check_build_deps Namespace Reference

Functions

def getTargets
 

Variables

list targets = sys.argv[1:]
 
tuple started = datetime.now()
 
tuple retcode
 

Function Documentation

def check_build_deps.getTargets ( )
Retrieve the list of available targets.

Definition at line 8 of file check_build_deps.py.

8 
9 def getTargets():
10  '''
11  Retrieve the list of available targets.
12  '''
13  ignore = set(['all', 'install', 'install/local', 'install/strip',
14  'edit_cache', 'rebuild_cache', 'package', 'package_source',
15  'clean', 'depend', 'test', 'QMTestSummary',
16  'list_install_components', 'python.zip'])
17  targets = set()
18  for l in Popen(['make', 'help'], stdout=PIPE).stdout:
19  l = l.split()
20  if len(l) >= 2 and l[0] == '...':
21  targets.add(l[1])
22  return sorted(targets - ignore)
23 

Variable Documentation

tuple check_build_deps.retcode
Initial value:
1 = Popen(['make', target],
2  stdout=open(target + '.build.log', 'w'),
3  stderr=STDOUT)

Definition at line 34 of file check_build_deps.py.

tuple check_build_deps.started = datetime.now()

Definition at line 30 of file check_build_deps.py.

list check_build_deps.targets = sys.argv[1:]

Definition at line 25 of file check_build_deps.py.