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 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 if 'pnacl' in toolchains: | 742 if 'pnacl' in toolchains: |
743 tarname = 'p' + tarname | 743 tarname = 'p' + tarname |
744 tarfile = os.path.join(SERVER_DIR, tarname) | 744 tarfile = os.path.join(SERVER_DIR, tarname) |
745 | 745 |
746 if options.release: | 746 if options.release: |
747 pepper_ver = options.release | 747 pepper_ver = options.release |
748 print 'Building PEPPER %s at %s' % (pepper_ver, clnumber) | 748 print 'Building PEPPER %s at %s' % (pepper_ver, clnumber) |
749 | 749 |
750 if options.only_examples: | 750 if options.only_examples: |
751 BuildStepCopyExamples(pepperdir, toolchains) | 751 BuildStepCopyExamples(pepperdir, toolchains) |
| 752 BuildStepBuildLibraries(pepperdir, platform) |
752 BuildStepBuildExamples(pepperdir, platform) | 753 BuildStepBuildExamples(pepperdir, platform) |
753 if options.test_examples: | 754 if options.test_examples: |
754 BuildStepTestExamples(pepperdir, platform, pepper_ver) | 755 BuildStepTestExamples(pepperdir, platform, pepper_ver) |
755 elif options.only_updater: | 756 elif options.only_updater: |
756 build_updater.BuildUpdater(OUT_DIR) | 757 build_updater.BuildUpdater(OUT_DIR) |
757 else: # Build everything. | 758 else: # Build everything. |
758 BuildStepBuildToolsTests() | 759 BuildStepBuildToolsTests() |
759 | 760 |
760 BuildStepDownloadToolchains(platform) | 761 BuildStepDownloadToolchains(platform) |
761 BuildStepCleanPepperDirs(pepperdir, pepperdir_old) | 762 BuildStepCleanPepperDirs(pepperdir, pepperdir_old) |
(...skipping 22 matching lines...) Expand all Loading... |
784 # Archive on non-trybots. | 785 # Archive on non-trybots. |
785 if options.archive or buildbot_common.IsSDKBuilder(): | 786 if options.archive or buildbot_common.IsSDKBuilder(): |
786 BuildStepArchiveBundle(pepper_ver, clnumber, tarfile) | 787 BuildStepArchiveBundle(pepper_ver, clnumber, tarfile) |
787 BuildStepArchiveSDKTools() | 788 BuildStepArchiveSDKTools() |
788 | 789 |
789 return 0 | 790 return 0 |
790 | 791 |
791 | 792 |
792 if __name__ == '__main__': | 793 if __name__ == '__main__': |
793 sys.exit(main(sys.argv)) | 794 sys.exit(main(sys.argv)) |
OLD | NEW |