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

Function _GetUniquePlatforms

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

Returns the list of unique platforms for this spec, e.g ['win32', ...]. Arguments: spec: The target dictionary containing the properties of the target. Returns: The MSVSUserFile object created.

(spec)

Source from the content-addressed store, hash-verified

1090
1091
1092def _GetUniquePlatforms(spec):
1093 """Returns the list of unique platforms for this spec, e.g ['win32', ...].
1094
1095 Arguments:
1096 spec: The target dictionary containing the properties of the target.
1097 Returns:
1098 The MSVSUserFile object created.
1099 """
1100 # Gather list of unique platforms.
1101 platforms = OrderedSet()
1102 for configuration in spec["configurations"]:
1103 platforms.add(_ConfigPlatform(spec["configurations"][configuration]))
1104 platforms = list(platforms)
1105 return platforms
1106
1107
1108def _CreateMSVSUserFile(proj_path, version, spec):

Callers 3

_GenerateMSVSProjectFunction · 0.85
_AddSources2Function · 0.85
_GenerateMSBuildProjectFunction · 0.85

Calls 4

addMethod · 0.95
OrderedSetClass · 0.90
_ConfigPlatformFunction · 0.85
listFunction · 0.50

Tested by

no test coverage detected