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

Function _FilterActionsFromExcluded

tools/gyp/pylib/gyp/generator/msvs.py:944–954  ·  view source on GitHub ↗

Take inputs with actions attached out of the list of exclusions. Arguments: excluded_sources: list of source files not to be built. actions_to_add: dict of actions keyed on source file they're attached to. Returns: excluded_sources with files that have actions attached rem

(excluded_sources, actions_to_add)

Source from the content-addressed store, hash-verified

942
943
944def _FilterActionsFromExcluded(excluded_sources, actions_to_add):
945 """Take inputs with actions attached out of the list of exclusions.
946
947 Arguments:
948 excluded_sources: list of source files not to be built.
949 actions_to_add: dict of actions keyed on source file they're attached to.
950 Returns:
951 excluded_sources with files that have actions attached removed.
952 """
953 must_keep = OrderedSet(_FixPaths(actions_to_add.keys()))
954 return [s for s in excluded_sources if s not in must_keep]
955
956
957def _GetDefaultConfiguration(spec):

Callers 2

_GenerateMSVSProjectFunction · 0.85
_GenerateMSBuildProjectFunction · 0.85

Calls 3

OrderedSetClass · 0.90
_FixPathsFunction · 0.85
keysMethod · 0.65

Tested by

no test coverage detected