OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 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 import argparse | 6 import argparse |
7 import multiprocessing | 7 import multiprocessing |
8 import os | 8 import os |
9 import posixpath | 9 import posixpath |
10 import sys | 10 import sys |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 if clobber: | 141 if clobber: |
142 buildbot_common.RemoveDir(dirpath) | 142 buildbot_common.RemoveDir(dirpath) |
143 buildbot_common.MakeDir(dirpath) | 143 buildbot_common.MakeDir(dirpath) |
144 | 144 |
145 landing_page = None | 145 landing_page = None |
146 for branch, projects in project_tree.iteritems(): | 146 for branch, projects in project_tree.iteritems(): |
147 dirpath = os.path.join(pepperdir, branch) | 147 dirpath = os.path.join(pepperdir, branch) |
148 if clobber: | 148 if clobber: |
149 buildbot_common.RemoveDir(dirpath) | 149 buildbot_common.RemoveDir(dirpath) |
150 buildbot_common.MakeDir(dirpath) | 150 buildbot_common.MakeDir(dirpath) |
151 targets = [desc['NAME'] for desc in projects] | 151 targets = [desc['NAME'] for desc in projects if 'TARGETS' in desc] |
152 deps = GetDeps(projects) | 152 deps = GetDeps(projects) |
153 | 153 |
154 # Generate master make for this branch of projects | 154 # Generate master make for this branch of projects |
155 generate_make.GenerateMasterMakefile(pepperdir, | 155 generate_make.GenerateMasterMakefile(pepperdir, |
156 os.path.join(pepperdir, branch), | 156 os.path.join(pepperdir, branch), |
157 targets, deps) | 157 targets, deps) |
158 | 158 |
159 if branch.startswith('examples') and not landing_page: | 159 if branch.startswith('examples') and not landing_page: |
160 landing_page = LandingPage() | 160 landing_page = LandingPage() |
161 | 161 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 | 339 |
340 | 340 |
341 if __name__ == '__main__': | 341 if __name__ == '__main__': |
342 script_name = os.path.basename(sys.argv[0]) | 342 script_name = os.path.basename(sys.argv[0]) |
343 try: | 343 try: |
344 sys.exit(main(sys.argv[1:])) | 344 sys.exit(main(sys.argv[1:])) |
345 except parse_dsc.ValidationError as e: | 345 except parse_dsc.ValidationError as e: |
346 buildbot_common.ErrorExit('%s: %s' % (script_name, e)) | 346 buildbot_common.ErrorExit('%s: %s' % (script_name, e)) |
347 except KeyboardInterrupt: | 347 except KeyboardInterrupt: |
348 buildbot_common.ErrorExit('%s: interrupted' % script_name) | 348 buildbot_common.ErrorExit('%s: interrupted' % script_name) |
OLD | NEW |