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

Side by Side Diff: scripts/slave/zip_build.py

Issue 2248163003: Include //url/mojo generated Mojo bindings in the archive. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 4 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 (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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
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/media/mojo/interfaces/',
128 'gen/mojo', 128 'gen/mojo',
129 'gen/services', 129 'gen/services',
130 'gen/third_party/WebKit/public', 130 'gen/third_party/WebKit/public',
131 'gen/url/mojo',
131 ] 132 ]
132 mojom_files = [] 133 mojom_files = []
133 for walk_dir in walk_dirs: 134 for walk_dir in walk_dirs:
134 walk_dir = os.path.join(build_dir, walk_dir) 135 walk_dir = os.path.join(build_dir, walk_dir)
135 for path, _, files in os.walk(walk_dir): 136 for path, _, files in os.walk(walk_dir):
136 rel_path = os.path.relpath(path, build_dir) 137 rel_path = os.path.relpath(path, build_dir)
137 for suffix in suffixes or []: 138 for suffix in suffixes or []:
138 for mojom_file in fnmatch.filter(files, '*%s' % suffix): 139 for mojom_file in fnmatch.filter(files, '*%s' % suffix):
139 mojom_files.append(os.path.join(rel_path, mojom_file)) 140 mojom_files.append(os.path.join(rel_path, mojom_file))
140 return mojom_files 141 return mojom_files
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 json.dump(urls, json_file) 509 json.dump(urls, json_file)
509 else: # we need to print buildbot annotations 510 else: # we need to print buildbot annotations
510 if 'storage_url' in urls: 511 if 'storage_url' in urls:
511 print '@@@STEP_LINK@download@%s@@@' % urls['storage_url'] 512 print '@@@STEP_LINK@download@%s@@@' % urls['storage_url']
512 if 'zip_url' in urls: 513 if 'zip_url' in urls:
513 print '@@@SET_BUILD_PROPERTY@build_archive_url@"%s"@@@' % urls['zip_url'] 514 print '@@@SET_BUILD_PROPERTY@build_archive_url@"%s"@@@' % urls['zip_url']
514 return 0 515 return 0
515 516
516 if '__main__' == __name__: 517 if '__main__' == __name__:
517 sys.exit(main(sys.argv)) 518 sys.exit(main(sys.argv))
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