Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: third_party/closure_compiler/build/get_includes.py

Issue 2875543003: WebUI: Fix compile_js2.py to retrigger compilation for <include> files. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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:]))
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/compiled_resources2.gyp ('k') | third_party/closure_compiler/compile_js2.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698