Index: build/android/gyp/jar_toc.py |
diff --git a/build/android/gyp/jar_toc.py b/build/android/gyp/jar_toc.py |
index 1122f683c9e3b1cceae187da3aebbb781ca1bda9..0c7a849794a4220695b4c72e3b1a70a009bcda3a 100755 |
--- a/build/android/gyp/jar_toc.py |
+++ b/build/android/gyp/jar_toc.py |
@@ -92,6 +92,8 @@ def DoJarToc(options): |
def main(): |
parser = optparse.OptionParser() |
+ build_utils.AddDepfileOption(parser) |
+ |
parser.add_option('--jar-path', help='Input .jar path.') |
parser.add_option('--toc-path', help='Output .jar.TOC path.') |
parser.add_option('--stamp', help='Path to touch on success.') |
@@ -100,6 +102,11 @@ def main(): |
DoJarToc(options) |
+ if options.depfile: |
+ build_utils.WriteDepfile( |
+ options.depfile, |
+ build_utils.GetPythonDependencies()) |
+ |
if options.stamp: |
build_utils.Touch(options.stamp) |