MCPcopy Create free account
hub / github.com/nodejs/node / ParseQualifiedTarget

Function ParseQualifiedTarget

tools/gyp/pylib/gyp/common.py:56–72  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

54
55
56def 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
75def ResolveTarget(build_file, target, toolset):

Callers 3

FindQualifiedTargetsFunction · 0.85
ResolveTargetFunction · 0.85
BuildFileFunction · 0.85

Calls 1

rsplitMethod · 0.45

Tested by

no test coverage detected