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)
| 1434 | |
| 1435 | |
| 1436 | def _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 | |
| 1454 | def _GetMSVSAttributes(spec, config, config_type): |
no test coverage detected