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

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

Issue 849973002: Fix write_ordered_libraries.py for libraries with odd filenames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | no next file » | 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 """Writes dependency ordered list of native libraries. 7 """Writes dependency ordered list of native libraries.
8 8
9 The list excludes any Android system libraries, as those are not bundled with 9 The list excludes any Android system libraries, as those are not bundled with
10 the APK. 10 the APK.
(...skipping 13 matching lines...) Expand all
24 import os 24 import os
25 import re 25 import re
26 import sys 26 import sys
27 27
28 from util import build_utils 28 from util import build_utils
29 29
30 _readelf = None 30 _readelf = None
31 _library_dirs = None 31 _library_dirs = None
32 32
33 _library_re = re.compile( 33 _library_re = re.compile(
34 '.*NEEDED.*Shared library: \[(?P<library_name>[\w/.]+)\]') 34 '.*NEEDED.*Shared library: \[(?P<library_name>.+)\]')
35 35
36 36
37 def SetReadelfPath(path): 37 def SetReadelfPath(path):
38 global _readelf 38 global _readelf
39 _readelf = path 39 _readelf = path
40 40
41 41
42 def SetLibraryDirs(dirs): 42 def SetLibraryDirs(dirs):
43 global _library_dirs 43 global _library_dirs
44 _library_dirs = dirs 44 _library_dirs = dirs
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 print libraries 131 print libraries
132 build_utils.WriteDepfile( 132 build_utils.WriteDepfile(
133 options.depfile, 133 options.depfile,
134 libraries + build_utils.GetPythonDependencies()) 134 libraries + build_utils.GetPythonDependencies())
135 135
136 136
137 if __name__ == '__main__': 137 if __name__ == '__main__':
138 sys.exit(main()) 138 sys.exit(main())
139 139
140 140
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698