| Index: build/android/gyp/proguard.py
|
| diff --git a/build/android/gyp/proguard.py b/build/android/gyp/proguard.py
|
| index 5997f6125c50e4ec9ecc43201588ec5449c9057e..3e31667e3428304e152d6083e7eee0362159937d 100755
|
| --- a/build/android/gyp/proguard.py
|
| +++ b/build/android/gyp/proguard.py
|
| @@ -9,6 +9,7 @@
|
| import sys
|
|
|
| from util import build_utils
|
| +from util import md5_check
|
| from util import proguard_util
|
|
|
|
|
| @@ -59,13 +60,22 @@
|
| proguard.libraryjars(classpath)
|
|
|
| input_paths = proguard.GetInputs()
|
| + python_deps = build_utils.GetPythonDependencies()
|
|
|
| - build_utils.CallAndWriteDepfileIfStale(
|
| - proguard.CheckOutput,
|
| - options,
|
| + def OnStaleMd5():
|
| + proguard.CheckOutput()
|
| +
|
| + if options.depfile:
|
| + build_utils.WriteDepfile(options.depfile, python_deps + input_paths)
|
| + if options.stamp:
|
| + build_utils.Touch(options.stamp)
|
| +
|
| + md5_check.CallAndRecordIfStale(
|
| + OnStaleMd5,
|
| + record_path=options.output_path + '.proguard.md5.stamp',
|
| input_paths=input_paths,
|
| - input_strings=proguard.build(),
|
| - output_paths=[options.output_path])
|
| + input_strings=proguard.build() + python_deps,
|
| + force=not os.path.exists(options.output_path))
|
|
|
|
|
| if __name__ == '__main__':
|
|
|