Index: build/android/gyp/finalize_apk.py |
diff --git a/build/android/gyp/finalize_apk.py b/build/android/gyp/finalize_apk.py |
index 5c51467e7680420efd3fa5e7cecc44286b86d701..e66eac67e263baf4be4953f7e3b4702b13249102 100755 |
--- a/build/android/gyp/finalize_apk.py |
+++ b/build/android/gyp/finalize_apk.py |
@@ -70,6 +70,7 @@ def DropDataDescriptorsInApk(rezip_path, in_zip_file, out_zip_file): |
def main(): |
parser = optparse.OptionParser() |
+ build_utils.AddDepfileOption(parser) |
parser.add_option('--zipalign-path', help='Path to the zipalign tool.') |
parser.add_option('--rezip-path', help='Path to the rezip executable.') |
@@ -125,6 +126,10 @@ def main(): |
UncompressLibAndPageAlignInApk( |
options.rezip_path, aligned_apk, options.final_apk_path) |
+ if options.depfile: |
+ build_utils.WriteDepfile( |
+ options.depfile, build_utils.GetPythonDependencies()) |
+ |
if options.stamp: |
build_utils.Touch(options.stamp) |