Lines Matching refs:pkg

182 def short_out_name(pkg, s):  # replace /.../pkg-*/out/* with .../out/*  argument
183 return re.sub('^/.*/' + pkg + '-[0-9a-f]*/out/', '.../out/', s)
471 pkg = self.main_src
472 if pkg.startswith('.../'): # keep only the main package name
473 pkg = re.sub('/.*', '', pkg[4:])
474 elif pkg.startswith('/'): # use relative path for a local package
475 pkg = os.path.relpath(pkg)
477 return pkg
478 return pkg + ' "' + ','.join(self.features) + '"'
844 self.pkg = ''
853 def parse(self, pkg, line_num, args_line): argument
855 self.pkg = pkg
873 self.write('// ar_object for %12s' % self.pkg)
875 self.write('// lib = %s' % short_out_name(self.pkg, self.lib))
877 self.write('// obj = %s' % short_out_name(self.pkg, o))
886 if self.pkg not in self.runner.pkg_obj2cc:
890 obj2cc = self.runner.pkg_obj2cc[self.pkg]
895 self.write(' "' + short_out_name(self.pkg, obj2cc[obj].src) + '",')
927 self.pkg = ''
940 def parse(self, pkg, line_num, args_line): argument
942 self.pkg = pkg
979 if self.pkg not in self.runner.pkg_obj2cc:
980 self.runner.pkg_obj2cc[self.pkg] = {}
981 self.runner.pkg_obj2cc[self.pkg][self.obj] = self
1000 self.write('// cc_object for %12s' % self.pkg)
1001 self.write('// src = %s' % short_out_name(self.pkg, self.src))
1002 self.write('// obj = %s' % short_out_name(self.pkg, self.obj))
1318 for pkg in sorted_pkgs:
1319 if not self.pkg_obj2cc[pkg]:
1321 outf.write('\n// obj => src for %s\n' % pkg)
1322 obj2cc = self.pkg_obj2cc[pkg]
1324 outf.write('// ' + short_out_name(pkg, obj) + ' => ' +
1325 short_out_name(pkg, obj2cc[obj].src) + '\n')
1363 if lib.pkg == self.root_pkg:
1436 pkg = groups.group(1)
1439 self.add_cc_object(CCObject(self, outf_name).parse(pkg, n, line))
1441 self.add_ar_object(ARObject(self, outf_name).parse(pkg, n, line))