OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 a zip file in the staging dir with the result of a compile. | 6 """ Creates a zip file in the staging dir with the result of a compile. |
7 It can be sent to other machines for testing. | 7 It can be sent to other machines for testing. |
8 """ | 8 """ |
9 | 9 |
10 import csv | 10 import csv |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 build_dir: The build directory. | 117 build_dir: The build directory. |
118 | 118 |
119 Returns: | 119 Returns: |
120 A list of mojom file paths which are relative to the build | 120 A list of mojom file paths which are relative to the build |
121 directory. | 121 directory. |
122 """ | 122 """ |
123 walk_dirs = [ | 123 walk_dirs = [ |
124 'gen/components', | 124 'gen/components', |
125 'gen/content/test/data', | 125 'gen/content/test/data', |
126 'gen/device', | 126 'gen/device', |
| 127 'gen/media/mojo/interfaces/', |
127 'gen/mojo', | 128 'gen/mojo', |
128 'gen/services', | 129 'gen/services', |
129 'gen/third_party/WebKit/public', | 130 'gen/third_party/WebKit/public', |
130 ] | 131 ] |
131 mojom_files = [] | 132 mojom_files = [] |
132 for walk_dir in walk_dirs: | 133 for walk_dir in walk_dirs: |
133 walk_dir = os.path.join(build_dir, walk_dir) | 134 walk_dir = os.path.join(build_dir, walk_dir) |
134 for path, _, files in os.walk(walk_dir): | 135 for path, _, files in os.walk(walk_dir): |
135 rel_path = os.path.relpath(path, build_dir) | 136 rel_path = os.path.relpath(path, build_dir) |
136 for suffix in suffixes or []: | 137 for suffix in suffixes or []: |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 json.dump(urls, json_file) | 469 json.dump(urls, json_file) |
469 else: # we need to print buildbot annotations | 470 else: # we need to print buildbot annotations |
470 if 'storage_url' in urls: | 471 if 'storage_url' in urls: |
471 print '@@@STEP_LINK@download@%s@@@' % urls['storage_url'] | 472 print '@@@STEP_LINK@download@%s@@@' % urls['storage_url'] |
472 if 'zip_url' in urls: | 473 if 'zip_url' in urls: |
473 print '@@@SET_BUILD_PROPERTY@build_archive_url@"%s"@@@' % urls['zip_url'] | 474 print '@@@SET_BUILD_PROPERTY@build_archive_url@"%s"@@@' % urls['zip_url'] |
474 return 0 | 475 return 0 |
475 | 476 |
476 if '__main__' == __name__: | 477 if '__main__' == __name__: |
477 sys.exit(main(sys.argv)) | 478 sys.exit(main(sys.argv)) |
OLD | NEW |