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

Function _GetMSBuildToolSettingsSections

tools/gyp/pylib/gyp/generator/msvs.py:3314–3334  ·  view source on GitHub ↗
(spec, configurations)

Source from the content-addressed store, hash-verified

3312
3313
3314def _GetMSBuildToolSettingsSections(spec, configurations):
3315 groups = []
3316 for name, configuration in sorted(configurations.items()):
3317 msbuild_settings = configuration["finalized_msbuild_settings"]
3318 group = [
3319 "ItemDefinitionGroup",
3320 {"Condition": _GetConfigurationCondition(name, configuration, spec)},
3321 ]
3322 for tool_name, tool_settings in sorted(msbuild_settings.items()):
3323 # Skip the tool named '' which is a holder of global settings handled
3324 # by _GetMSBuildConfigurationGlobalProperties.
3325 if tool_name and tool_settings:
3326 tool = [tool_name]
3327 for name, value in sorted(tool_settings.items()):
3328 formatted_value = _GetValueFormattedForMSBuild(
3329 tool_name, name, value
3330 )
3331 tool.append([name, formatted_value])
3332 group.append(tool)
3333 groups.append(group)
3334 return groups
3335
3336
3337def _FinalizeMSBuildSettings(spec, configuration):

Callers 1

_GenerateMSBuildProjectFunction · 0.85

Calls 5

sortedFunction · 0.85
itemsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected