| 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 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 | 39 |
| 40 options, _ = parser.parse_args() | 40 options, _ = parser.parse_args() |
| 41 | 41 |
| 42 with open(options.libraries_file, 'r') as libfile: | 42 with open(options.libraries_file, 'r') as libfile: |
| 43 libraries = json.load(libfile) | 43 libraries = json.load(libfile) |
| 44 | 44 |
| 45 build_utils.MakeDirectory(options.stripped_libraries_dir) | 45 build_utils.MakeDirectory(options.stripped_libraries_dir) |
| 46 | 46 |
| 47 for library in libraries: | 47 for library in libraries: |
| 48 library_path = os.path.join(options.libraries_dir, library) | 48 for base_path in options.libraries_dir.split(','): |
| 49 library_path = os.path.join(base_path, library) |
| 50 if (os.path.exists(library_path)): |
| 51 break |
| 49 stripped_library_path = os.path.join( | 52 stripped_library_path = os.path.join( |
| 50 options.stripped_libraries_dir, library) | 53 options.stripped_libraries_dir, library) |
| 51 StripLibrary(options.android_strip, options.android_strip_arg, library_path, | 54 StripLibrary(options.android_strip, options.android_strip_arg, library_path, |
| 52 stripped_library_path) | 55 stripped_library_path) |
| 53 | 56 |
| 54 if options.stamp: | 57 if options.stamp: |
| 55 build_utils.Touch(options.stamp) | 58 build_utils.Touch(options.stamp) |
| 56 | 59 |
| 57 | 60 |
| 58 if __name__ == '__main__': | 61 if __name__ == '__main__': |
| 59 sys.exit(main()) | 62 sys.exit(main()) |
| OLD | NEW |