(e, mods, vars, mod, skipofiles)
| 37 | return files, modules |
| 38 | |
| 39 | def select(e, mods, vars, mod, skipofiles): |
| 40 | files = [] |
| 41 | for w in mods[mod]: |
| 42 | w = treatword(w) |
| 43 | if not w: |
| 44 | continue |
| 45 | w = expandvars(w, vars) |
| 46 | for w in w.split(): |
| 47 | if skipofiles and w[-2:] == '.o': |
| 48 | continue |
| 49 | # Assume $var expands to absolute pathname |
| 50 | if w[0] not in ('-', '$') and w[-2:] in ('.o', '.a'): |
| 51 | w = os.path.join(e, w) |
| 52 | if w[:2] in ('-L', '-R') and w[2:3] != '$': |
| 53 | w = w[:2] + os.path.join(e, w[2:]) |
| 54 | files.append(w) |
| 55 | return files |
| 56 | |
| 57 | cc_flags = ['-I', '-D', '-U'] |
| 58 | cc_exts = ['.c', '.C', '.cc', '.c++'] |
no test coverage detected
searching dependent graphs…