| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2013 The Chromium Authors. All rights reserved. | 3 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 import json | 7 import json |
| 8 import optparse | 8 import optparse |
| 9 import os | 9 import os |
| 10 import sys | 10 import sys |
| 11 | 11 |
| 12 from pylib import build_utils | 12 from util import build_utils |
| 13 | 13 |
| 14 | 14 |
| 15 def StripLibrary(android_strip, android_strip_args, library_path, output_path): | 15 def StripLibrary(android_strip, android_strip_args, library_path, output_path): |
| 16 strip_cmd = ([android_strip] + | 16 strip_cmd = ([android_strip] + |
| 17 android_strip_args + | 17 android_strip_args + |
| 18 ['-o', output_path, library_path]) | 18 ['-o', output_path, library_path]) |
| 19 build_utils.CheckCallDie(strip_cmd) | 19 build_utils.CheckCallDie(strip_cmd) |
| 20 | 20 |
| 21 | 21 |
| 22 def main(argv): | 22 def main(argv): |
| (...skipping 25 matching lines...) Expand all Loading... |
| 48 options.stripped_libraries_dir, library) | 48 options.stripped_libraries_dir, library) |
| 49 StripLibrary(options.android_strip, options.android_strip_arg, library_path, | 49 StripLibrary(options.android_strip, options.android_strip_arg, library_path, |
| 50 stripped_library_path) | 50 stripped_library_path) |
| 51 | 51 |
| 52 if options.stamp: | 52 if options.stamp: |
| 53 build_utils.Touch(options.stamp) | 53 build_utils.Touch(options.stamp) |
| 54 | 54 |
| 55 | 55 |
| 56 if __name__ == '__main__': | 56 if __name__ == '__main__': |
| 57 sys.exit(main(sys.argv)) | 57 sys.exit(main(sys.argv)) |
| OLD | NEW |