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 """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 Loading... |
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 Loading... |
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 |
OLD | NEW |