(target)
| 54 | |
| 55 | |
| 56 | def ParseQualifiedTarget(target): |
| 57 | # Splits a qualified target into a build file, target name and toolset. |
| 58 | |
| 59 | # NOTE: rsplit is used to disambiguate the Windows drive letter separator. |
| 60 | target_split = target.rsplit(":", 1) |
| 61 | if len(target_split) == 2: |
| 62 | [build_file, target] = target_split |
| 63 | else: |
| 64 | build_file = None |
| 65 | |
| 66 | target_split = target.rsplit("#", 1) |
| 67 | if len(target_split) == 2: |
| 68 | [target, toolset] = target_split |
| 69 | else: |
| 70 | toolset = None |
| 71 | |
| 72 | return [build_file, target, toolset] |
| 73 | |
| 74 | |
| 75 | def ResolveTarget(build_file, target, toolset): |
no test coverage detected