(spec, build_file)
| 2995 | |
| 2996 | |
| 2997 | def _GetMSBuildConfigurationDetails(spec, build_file): |
| 2998 | properties = {} |
| 2999 | for name, settings in spec["configurations"].items(): |
| 3000 | msbuild_attributes = _GetMSBuildAttributes(spec, settings, build_file) |
| 3001 | condition = _GetConfigurationCondition(name, settings, spec) |
| 3002 | character_set = msbuild_attributes.get("CharacterSet") |
| 3003 | vctools_version = msbuild_attributes.get("VCToolsVersion") |
| 3004 | config_type = msbuild_attributes.get("ConfigurationType") |
| 3005 | _AddConditionalProperty(properties, condition, "ConfigurationType", config_type) |
| 3006 | spectre_mitigation = msbuild_attributes.get("SpectreMitigation") |
| 3007 | if spectre_mitigation: |
| 3008 | _AddConditionalProperty( |
| 3009 | properties, condition, "SpectreMitigation", spectre_mitigation |
| 3010 | ) |
| 3011 | if config_type == "Driver": |
| 3012 | _AddConditionalProperty(properties, condition, "DriverType", "WDM") |
| 3013 | _AddConditionalProperty( |
| 3014 | properties, condition, "TargetVersion", _ConfigTargetVersion(settings) |
| 3015 | ) |
| 3016 | if character_set and "msvs_enable_winrt" not in spec: |
| 3017 | _AddConditionalProperty( |
| 3018 | properties, condition, "CharacterSet", character_set |
| 3019 | ) |
| 3020 | if vctools_version and "msvs_enable_winrt" not in spec: |
| 3021 | _AddConditionalProperty( |
| 3022 | properties, condition, "VCToolsVersion", vctools_version |
| 3023 | ) |
| 3024 | return _GetMSBuildPropertyGroup(spec, "Configuration", properties) |
| 3025 | |
| 3026 | |
| 3027 | def _GetMSBuildLocalProperties(msbuild_toolset): |
no test coverage detected