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

Function _ExcludeFilesFromBeingBuilt

tools/gyp/pylib/gyp/generator/msvs.py:1607–1620  ·  view source on GitHub ↗
(p, spec, excluded_sources, excluded_idl, list_excluded)

Source from the content-addressed store, hash-verified

1605
1606
1607def _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
1623def _GetExcludedFilesFromBuild(spec, excluded_sources, excluded_idl):

Callers 1

_GenerateMSVSProjectFunction · 0.85

Calls 4

_ConfigFullNameFunction · 0.85
AddFileConfigMethod · 0.80
itemsMethod · 0.45

Tested by

no test coverage detected