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

Unified Diff: components/cronet/tools/generate_javadoc.py

Issue 1553623003: Port cronet_package GYP target to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix issues Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/cronet/tools/extract_from_jars.py ('k') | components/cronet/tools/jar_src.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/tools/generate_javadoc.py
diff --git a/components/cronet/tools/generate_javadoc.py b/components/cronet/tools/generate_javadoc.py
index 495f1b2788be1aadadd37ba73ba2619efb9eddfc..f21ceb3d014409a19fc79ae8192b6adf9dc9331e 100755
--- a/components/cronet/tools/generate_javadoc.py
+++ b/components/cronet/tools/generate_javadoc.py
@@ -48,6 +48,7 @@ def GenerateJavadoc(options):
def main():
parser = optparse.OptionParser()
+ build_utils.AddDepfileOption(parser)
parser.add_option('--output-dir', help='Directory to put javadoc')
parser.add_option('--input-dir', help='Root of cronet source')
parser.add_option('--overview-file', help='Path of the overview page')
@@ -60,6 +61,12 @@ def main():
GenerateJavadoc(options)
+ if options.depfile:
+ input_paths = []
+ for root, _, filenames in os.walk(options.input_dir):
+ input_paths.extend(os.path.join(root, f) for f in filenames)
+ build_utils.WriteDepfile(options.depfile,
+ input_paths + build_utils.GetPythonDependencies())
+
if __name__ == '__main__':
sys.exit(main())
-
« no previous file with comments | « components/cronet/tools/extract_from_jars.py ('k') | components/cronet/tools/jar_src.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698