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

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

Issue 2045573002: Add gen/media/mojo/interfaces to generated bindings paths (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.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 (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
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
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))
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