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

Unified Diff: build/android/gyp/strip_library_for_apk.py

Issue 13504003: Add modified time checking to strip_library_for_apk.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months 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 | « no previous file | build/android/gyp/util/build_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/strip_library_for_apk.py
diff --git a/build/android/gyp/strip_library_for_apk.py b/build/android/gyp/strip_library_for_apk.py
index 503f50dbb8f291538498fd62acd2c2547bb650f7..05eacfe43e2f4b24cd56e18f0139ebe92186073f 100755
--- a/build/android/gyp/strip_library_for_apk.py
+++ b/build/android/gyp/strip_library_for_apk.py
@@ -13,10 +13,12 @@ from util import build_utils
def StripLibrary(android_strip, android_strip_args, library_path, output_path):
- strip_cmd = ([android_strip] +
- android_strip_args +
- ['-o', output_path, library_path])
- build_utils.CheckCallDie(strip_cmd)
+ if build_utils.IsTimeStale(output_path, [library_path]):
+ strip_cmd = ([android_strip] +
+ android_strip_args +
+ ['-o', output_path, library_path])
+ build_utils.CheckCallDie(strip_cmd)
+
def main(argv):
« no previous file with comments | « no previous file | build/android/gyp/util/build_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698