Index: pylib/gyp/common.py |
diff --git a/pylib/gyp/common.py b/pylib/gyp/common.py |
index 19f1cf4a53a90d85e969ec22bc1c9b27505b272c..4bb67203b493fbf2d7bbb830347744e99fcb2b72 100644 |
--- a/pylib/gyp/common.py |
+++ b/pylib/gyp/common.py |
@@ -44,6 +44,14 @@ def ExceptionAppend(e, msg): |
e.args = (str(e.args[0]) + ' ' + msg,) + e.args[1:] |
+def FindQualifiedTargets(target, qualified_list): |
+ """ |
+ Given a list of qualified targets, return the qualified targets for the |
+ specified |target|. |
+ """ |
+ return [t for t in qualified_list if ParseQualifiedTarget(t)[1] == target] |
+ |
+ |
def ParseQualifiedTarget(target): |
# Splits a qualified target into a build file, target name and toolset. |