OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2016 The Chromium Authors. All rights reserved. | 2 # Copyright 2016 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Creates an .isolate given a list of files. | 6 """Creates an .isolate given a list of files. |
7 | 7 |
8 """ | 8 """ |
9 | 9 |
10 import argparse | 10 import argparse |
(...skipping 11 matching lines...) Expand all Loading... |
22 r'.*\.crx', # Chrome extension zip files. | 22 r'.*\.crx', # Chrome extension zip files. |
23 r'.*external_extensions\.json', # Chrome external extensions config file. | 23 r'.*external_extensions\.json', # Chrome external extensions config file. |
24 r'.*\.so', # Libraries packed into .apk. | 24 r'.*\.so', # Libraries packed into .apk. |
25 r'.*\.mojom\.js', # Some test_support targets include python deps. | 25 r'.*\.mojom\.js', # Some test_support targets include python deps. |
26 r'.*Mojo.*manifest\.json', # Some source_set()s pull these in. | 26 r'.*Mojo.*manifest\.json', # Some source_set()s pull these in. |
27 r'.*jni_generator_tests', # Exists just to test the compile, not to be run. | 27 r'.*jni_generator_tests', # Exists just to test the compile, not to be run. |
28 ) | 28 ) |
29 | 29 |
30 _DEVICE_BLACKLIST = ( | 30 _DEVICE_BLACKLIST = ( |
31 r'.*\.py', # Some test_support targets include python deps. | 31 r'.*\.py', # Some test_support targets include python deps. |
| 32 |
| 33 # v8's blobs get packaged into APKs. |
| 34 r'.*natives_blob.*\.bin', |
| 35 r'.*snapshot_blob.*\.bin', |
32 ) | 36 ) |
33 | 37 |
34 _ASSERT_WHITELIST = ( | 38 _ASSERT_WHITELIST = ( |
35 r'.*\.pak', | 39 r'.*\.pak', |
36 r'.*/', # Assume directories are always included on purpose. | 40 r'.*/', # Assume directories are always included on purpose. |
37 ) | 41 ) |
38 | 42 |
39 | 43 |
40 def _IsExecutable(path): | 44 def _IsExecutable(path): |
41 return os.path.isfile(path) and os.access(path, os.X_OK) | 45 return os.path.isfile(path) and os.access(path, os.X_OK) |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 if options.out_file: | 111 if options.out_file: |
108 with open(options.out_file, 'w') as f: | 112 with open(options.out_file, 'w') as f: |
109 f.write(isolate_data + '\n') | 113 f.write(isolate_data + '\n') |
110 else: | 114 else: |
111 print isolate_data | 115 print isolate_data |
112 | 116 |
113 | 117 |
114 if __name__ == '__main__': | 118 if __name__ == '__main__': |
115 sys.exit(main()) | 119 sys.exit(main()) |
116 | 120 |
OLD | NEW |