Index: pylib/gyp/msvs_emulation.py |
=================================================================== |
--- pylib/gyp/msvs_emulation.py (revision 1749) |
+++ pylib/gyp/msvs_emulation.py (working copy) |
@@ -202,7 +202,8 @@ |
def AdjustLibraries(self, libraries): |
"""Strip -l from library if it's specified with that.""" |
- return [lib[2:] if lib.startswith('-l') else lib for lib in libraries] |
+ libs = [lib[2:] if lib.startswith('-l') else lib for lib in libraries] |
+ return [lib + '.lib' if not lib.endswith('.lib') else lib for lib in libs] |
def _GetAndMunge(self, field, path, default, prefix, append, map): |
"""Retrieve a value from |field| at |path| or return |default|. If |