(p, spec, excluded_sources, excluded_idl, list_excluded)
| 1605 | |
| 1606 | |
| 1607 | def _ExcludeFilesFromBeingBuilt(p, spec, excluded_sources, excluded_idl, list_excluded): |
| 1608 | exclusions = _GetExcludedFilesFromBuild(spec, excluded_sources, excluded_idl) |
| 1609 | for file_name, excluded_configs in exclusions.items(): |
| 1610 | if not list_excluded and len(excluded_configs) == len(spec["configurations"]): |
| 1611 | # If we're not listing excluded files, then they won't appear in the |
| 1612 | # project, so don't try to configure them to be excluded. |
| 1613 | pass |
| 1614 | else: |
| 1615 | for config_name, config in excluded_configs: |
| 1616 | p.AddFileConfig( |
| 1617 | file_name, |
| 1618 | _ConfigFullName(config_name, config), |
| 1619 | {"ExcludedFromBuild": "true"}, |
| 1620 | ) |
| 1621 | |
| 1622 | |
| 1623 | def _GetExcludedFilesFromBuild(spec, excluded_sources, excluded_idl): |
no test coverage detected