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

Side by Side Diff: testing/generate_isolate.py

Issue 2024033003: [Android] Adding extension related file to Android isolate blacklist. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 # 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
11 import os 11 import os
12 import pprint 12 import pprint
13 import re 13 import re
14 import sys 14 import sys
15 15
16 16
17 _UNIVERSAL_BLACKLIST = ( 17 _UNIVERSAL_BLACKLIST = (
18 r'.*OWNERS', # Should never be included. 18 r'.*OWNERS', # Should never be included.
19 ) 19 )
20 20
21 _ANDROID_BLACKLIST = ( 21 _ANDROID_BLACKLIST = (
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'.*\.so', # Libraries packed into .apk. 24 r'.*\.so', # Libraries packed into .apk.
24 r'.*\.mojom\.js', # Some test_support targets include python deps. 25 r'.*\.mojom\.js', # Some test_support targets include python deps.
25 r'.*Mojo.*manifest\.json', # Some source_set()s pull these in. 26 r'.*Mojo.*manifest\.json', # Some source_set()s pull these in.
26 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.
27 ) 28 )
28 29
29 _DEVICE_BLACKLIST = ( 30 _DEVICE_BLACKLIST = (
30 r'.*\.py', # Some test_support targets include python deps. 31 r'.*\.py', # Some test_support targets include python deps.
31 ) 32 )
32 33
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 if options.out_file: 107 if options.out_file:
107 with open(options.out_file, 'w') as f: 108 with open(options.out_file, 'w') as f:
108 f.write(isolate_data + '\n') 109 f.write(isolate_data + '\n')
109 else: 110 else:
110 print isolate_data 111 print isolate_data
111 112
112 113
113 if __name__ == '__main__': 114 if __name__ == '__main__':
114 sys.exit(main()) 115 sys.exit(main())
115 116
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