MCPcopy Create free account
hub / github.com/nodejs/node / _GetExcludedFilesFromBuild

Function _GetExcludedFilesFromBuild

tools/gyp/pylib/gyp/generator/msvs.py:1623–1641  ·  view source on GitHub ↗
(spec, excluded_sources, excluded_idl)

Source from the content-addressed store, hash-verified

1621
1622
1623def _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
1644def _AddToolFilesToMSVS(p, spec):

Callers 2

_GenerateMSBuildProjectFunction · 0.85

Calls 4

_FixPathFunction · 0.85
getMethod · 0.65
itemsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected