| OLD | NEW |
| (Empty) | |
| 1 #!/usr/bin/python |
| 2 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 |
| 6 import os.path |
| 7 import sys |
| 8 |
| 9 |
| 10 sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) |
| 11 import processor |
| 12 |
| 13 |
| 14 def GetIncludes(inputs): |
| 15 includes = set() |
| 16 for f in inputs: |
| 17 includes.update(processor.Processor(f).included_files) |
| 18 return includes |
| 19 |
| 20 |
| 21 if __name__ == "__main__": |
| 22 # TODO(dpapad): Dedup inputs in ninja files, using relative paths with respect |
| 23 # to the out directory. |
| 24 print "\n".join(GetIncludes(sys.argv[1:])) |
| OLD | NEW |