| 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 multiprocessing | 6 import multiprocessing |
| 7 import optparse | 7 import optparse |
| 8 import os | 8 import os |
| 9 import posixpath | 9 import posixpath |
| 10 import sys | 10 import sys |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 UpdateHelpers(pepperdir, clobber=options.clobber) | 331 UpdateHelpers(pepperdir, clobber=options.clobber) |
| 332 UpdateProjects(pepperdir, project_tree, options.toolchain, | 332 UpdateProjects(pepperdir, project_tree, options.toolchain, |
| 333 clobber=options.clobber) | 333 clobber=options.clobber) |
| 334 | 334 |
| 335 if options.build: | 335 if options.build: |
| 336 if options.config: | 336 if options.config: |
| 337 configs = [options.config] | 337 configs = [options.config] |
| 338 else: | 338 else: |
| 339 configs = ['Debug', 'Release'] | 339 configs = ['Debug', 'Release'] |
| 340 for config in configs: | 340 for config in configs: |
| 341 BuildProjects(pepperdir, project_tree, config=config) | 341 BuildProjects(pepperdir, project_tree, config=config, deps=False) |
| 342 | 342 |
| 343 return 0 | 343 return 0 |
| 344 | 344 |
| 345 | 345 |
| 346 if __name__ == '__main__': | 346 if __name__ == '__main__': |
| 347 script_name = os.path.basename(sys.argv[0]) | 347 script_name = os.path.basename(sys.argv[0]) |
| 348 try: | 348 try: |
| 349 sys.exit(main(sys.argv)) | 349 sys.exit(main(sys.argv)) |
| 350 except parse_dsc.ValidationError as e: | 350 except parse_dsc.ValidationError as e: |
| 351 buildbot_common.ErrorExit('%s: %s' % (script_name, e)) | 351 buildbot_common.ErrorExit('%s: %s' % (script_name, e)) |
| 352 except KeyboardInterrupt: | 352 except KeyboardInterrupt: |
| 353 buildbot_common.ErrorExit('%s: interrupted' % script_name) | 353 buildbot_common.ErrorExit('%s: interrupted' % script_name) |
| OLD | NEW |