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

Side by Side Diff: build/android/gyp/strip_library_for_device.py

Issue 334783006: Allow the mojo shell to run on android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | build/android/gyp/write_ordered_libraries.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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())
OLDNEW
« no previous file with comments | « no previous file | build/android/gyp/write_ordered_libraries.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698