| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 """Extract source file information from .ninja files.""" | 4 """Extract source file information from .ninja files.""" |
| 5 | 5 |
| 6 import logging | 6 import logging |
| 7 import os | 7 import os |
| 8 import re | 8 import re |
| 9 | 9 |
| 10 | 10 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 return None | 80 return None |
| 81 obj_path = by_basename.get(obj_name) | 81 obj_path = by_basename.get(obj_name) |
| 82 if not obj_path: | 82 if not obj_path: |
| 83 # Found the library, but it doesn't list the .o file. | 83 # Found the library, but it doesn't list the .o file. |
| 84 logging.warning('no obj basename for %s', path) | 84 logging.warning('no obj basename for %s', path) |
| 85 return None | 85 return None |
| 86 return self._Lookup(obj_path) | 86 return self._Lookup(obj_path) |
| 87 | 87 |
| 88 def GetParsedFileCount(self): | 88 def GetParsedFileCount(self): |
| 89 return len(self._seen_ninja_files) | 89 return len(self._seen_ninja_files) |
| OLD | NEW |