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 """Entry point for both build and try bots. | 6 """Entry point for both build and try bots. |
7 | 7 |
8 This script is invoked from XXX, usually without arguments | 8 This script is invoked from XXX, usually without arguments |
9 to package an SDK. It automatically determines whether | 9 to package an SDK. It automatically determines whether |
10 this SDK is for mac, win, linux. | 10 this SDK is for mac, win, linux. |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 'examples/demo', | 650 'examples/demo', |
651 'examples/tutorial', | 651 'examples/tutorial', |
652 'src' | 652 'src' |
653 ] | 653 ] |
654 | 654 |
655 tree = parse_dsc.LoadProjectTree(SDK_SRC_DIR, include=filters) | 655 tree = parse_dsc.LoadProjectTree(SDK_SRC_DIR, include=filters) |
656 build_projects.UpdateProjects(pepperdir, tree, clobber=clobber, | 656 build_projects.UpdateProjects(pepperdir, tree, clobber=clobber, |
657 toolchains=toolchains) | 657 toolchains=toolchains) |
658 | 658 |
659 | 659 |
660 def BuildStepMakeAll(pepperdir, directory, step_name, | 660 def BuildStepMakeAll(pepperdir, directory, step_name, **kwargs): |
661 deps=True, clean=False, config='Debug', args=None): | |
662 buildbot_common.BuildStep(step_name) | 661 buildbot_common.BuildStep(step_name) |
663 build_projects.BuildProjectsBranch(pepperdir, directory, clean, | 662 build_projects.BuildProjectsBranch(pepperdir, directory, **kwargs) |
664 deps, config, args) | |
665 | 663 |
666 | 664 |
667 def BuildStepBuildLibraries(pepperdir, directory): | 665 def BuildStepBuildLibraries(pepperdir, directory): |
668 BuildStepMakeAll(pepperdir, directory, 'Build Libraries Debug', | 666 BuildStepMakeAll(pepperdir, directory, 'Build Libraries Debug', |
669 clean=True, config='Debug') | 667 clean=True, config='Debug') |
670 BuildStepMakeAll(pepperdir, directory, 'Build Libraries Release', | 668 BuildStepMakeAll(pepperdir, directory, 'Build Libraries Release', |
671 clean=True, config='Release') | 669 clean=True, config='Release') |
672 | 670 |
673 # Cleanup .pyc file generated while building libraries. Without | 671 # Cleanup .pyc file generated while building libraries. Without |
674 # this we would end up shipping the pyc in the SDK tarball. | 672 # this we would end up shipping the pyc in the SDK tarball. |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1023 BuildStepArchiveSDKTools() | 1021 BuildStepArchiveSDKTools() |
1024 | 1022 |
1025 return 0 | 1023 return 0 |
1026 | 1024 |
1027 | 1025 |
1028 if __name__ == '__main__': | 1026 if __name__ == '__main__': |
1029 try: | 1027 try: |
1030 sys.exit(main(sys.argv)) | 1028 sys.exit(main(sys.argv)) |
1031 except KeyboardInterrupt: | 1029 except KeyboardInterrupt: |
1032 buildbot_common.ErrorExit('build_sdk: interrupted') | 1030 buildbot_common.ErrorExit('build_sdk: interrupted') |
OLD | NEW |