(spec, configurations)
| 3312 | |
| 3313 | |
| 3314 | def _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 | |
| 3337 | def _FinalizeMSBuildSettings(spec, configuration): |
no test coverage detected