Index: build/android/gyp/package_resources.py |
diff --git a/build/android/gyp/package_resources.py b/build/android/gyp/package_resources.py |
index 77cc276de5b0623bea45c1b3c1b0187e7b798770..1f0685028d5b92bbbf69a3e44895d683bc47d4a0 100755 |
--- a/build/android/gyp/package_resources.py |
+++ b/build/android/gyp/package_resources.py |
@@ -26,6 +26,7 @@ def ParseArgs(): |
An options object as from optparse.OptionsParser.parse_args() |
""" |
parser = optparse.OptionParser() |
+ build_utils.AddDepfileOption(parser) |
parser.add_option('--android-sdk', help='path to the Android SDK folder') |
parser.add_option('--android-sdk-tools', |
help='path to the Android SDK build tools folder') |
@@ -128,6 +129,11 @@ def main(): |
build_utils.CheckOutput( |
package_command, print_stdout=False, print_stderr=False) |
+ if options.depfile: |
+ build_utils.WriteDepfile( |
+ options.depfile, |
+ build_utils.GetPythonDependencies()) |
+ |
if __name__ == '__main__': |
main() |