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

Function _AddConfigurationToMSVS

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

Add to the project file the configuration specified by config. Arguments: p: The target project being generated. spec: the target project dict. tools: A dictionary of settings; the tool name is the key. config: The dictionary that defines the special processing to be don

(p, spec, tools, config, config_type, config_name)

Source from the content-addressed store, hash-verified

1434
1435
1436def _AddConfigurationToMSVS(p, spec, tools, config, config_type, config_name):
1437 """Add to the project file the configuration specified by config.
1438
1439 Arguments:
1440 p: The target project being generated.
1441 spec: the target project dict.
1442 tools: A dictionary of settings; the tool name is the key.
1443 config: The dictionary that defines the special processing to be done
1444 for this configuration.
1445 config_type: The configuration type, a number as defined by Microsoft.
1446 config_name: The name of the configuration.
1447 """
1448 attributes = _GetMSVSAttributes(spec, config, config_type)
1449 # Add in this configuration.
1450 tool_list = _ConvertToolsToExpectedForm(tools)
1451 p.AddConfig(_ConfigFullName(config_name, config), attrs=attributes, tools=tool_list)
1452
1453
1454def _GetMSVSAttributes(spec, config, config_type):

Callers 1

Calls 4

_GetMSVSAttributesFunction · 0.85
_ConfigFullNameFunction · 0.85
AddConfigMethod · 0.45

Tested by

no test coverage detected