Returns the list of unique platforms for this spec, e.g ['win32', ...]. Arguments: spec: The target dictionary containing the properties of the target. Returns: The MSVSUserFile object created.
(spec)
| 1090 | |
| 1091 | |
| 1092 | def _GetUniquePlatforms(spec): |
| 1093 | """Returns the list of unique platforms for this spec, e.g ['win32', ...]. |
| 1094 | |
| 1095 | Arguments: |
| 1096 | spec: The target dictionary containing the properties of the target. |
| 1097 | Returns: |
| 1098 | The MSVSUserFile object created. |
| 1099 | """ |
| 1100 | # Gather list of unique platforms. |
| 1101 | platforms = OrderedSet() |
| 1102 | for configuration in spec["configurations"]: |
| 1103 | platforms.add(_ConfigPlatform(spec["configurations"][configuration])) |
| 1104 | platforms = list(platforms) |
| 1105 | return platforms |
| 1106 | |
| 1107 | |
| 1108 | def _CreateMSVSUserFile(proj_path, version, spec): |
no test coverage detected