Returns the extension for this target, including the dot If product_extension is specified, set target_extension to this to avoid MSB8012, returns None otherwise. Ignores any target_extension settings in the input files. Arguments: spec: The target dictionary containing the p
(spec)
| 1351 | |
| 1352 | |
| 1353 | def _GetOutputTargetExt(spec): |
| 1354 | """Returns the extension for this target, including the dot |
| 1355 | |
| 1356 | If product_extension is specified, set target_extension to this to avoid |
| 1357 | MSB8012, returns None otherwise. Ignores any target_extension settings in |
| 1358 | the input files. |
| 1359 | |
| 1360 | Arguments: |
| 1361 | spec: The target dictionary containing the properties of the target. |
| 1362 | Returns: |
| 1363 | A string with the extension, or None |
| 1364 | """ |
| 1365 | if target_extension := spec.get("product_extension"): |
| 1366 | return "." + target_extension |
| 1367 | return None |
| 1368 | |
| 1369 | |
| 1370 | def _GetDefines(config): |
no test coverage detected