(spec, excluded_sources, excluded_idl)
| 1621 | |
| 1622 | |
| 1623 | def _GetExcludedFilesFromBuild(spec, excluded_sources, excluded_idl): |
| 1624 | exclusions = {} |
| 1625 | # Exclude excluded sources from being built. |
| 1626 | for f in excluded_sources: |
| 1627 | excluded_configs = [] |
| 1628 | for config_name, config in spec["configurations"].items(): |
| 1629 | precomped = [_FixPath(config.get(i, "")) for i in precomp_keys] |
| 1630 | # Don't do this for ones that are precompiled header related. |
| 1631 | if f not in precomped: |
| 1632 | excluded_configs.append((config_name, config)) |
| 1633 | exclusions[f] = excluded_configs |
| 1634 | # If any non-native rules use 'idl' as an extension exclude idl files. |
| 1635 | # Exclude them now. |
| 1636 | for f in excluded_idl: |
| 1637 | excluded_configs = [] |
| 1638 | for config_name, config in spec["configurations"].items(): |
| 1639 | excluded_configs.append((config_name, config)) |
| 1640 | exclusions[f] = excluded_configs |
| 1641 | return exclusions |
| 1642 | |
| 1643 | |
| 1644 | def _AddToolFilesToMSVS(p, spec): |
no test coverage detected