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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 if 'host' in toolchains: | 659 if 'host' in toolchains: |
660 toolchains.remove('host') | 660 toolchains.remove('host') |
661 toolchains.append(getos.GetPlatform()) | 661 toolchains.append(getos.GetPlatform()) |
662 | 662 |
663 filters['TOOLS'] = toolchains | 663 filters['TOOLS'] = toolchains |
664 | 664 |
665 # Update examples and libraries | 665 # Update examples and libraries |
666 filters['DEST'] = [ | 666 filters['DEST'] = [ |
667 'getting_started', | 667 'getting_started', |
668 'examples/api', | 668 'examples/api', |
| 669 'examples/benchmarks', |
669 'examples/demo', | 670 'examples/demo', |
670 'examples/tutorial', | 671 'examples/tutorial', |
671 'src' | 672 'src' |
672 ] | 673 ] |
673 | 674 |
674 tree = parse_dsc.LoadProjectTree(SDK_SRC_DIR, include=filters) | 675 tree = parse_dsc.LoadProjectTree(SDK_SRC_DIR, include=filters) |
675 build_projects.UpdateProjects(pepperdir, tree, clobber=clobber, | 676 build_projects.UpdateProjects(pepperdir, tree, clobber=clobber, |
676 toolchains=toolchains) | 677 toolchains=toolchains) |
677 | 678 |
678 | 679 |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1063 BuildStepArchiveSDKTools() | 1064 BuildStepArchiveSDKTools() |
1064 | 1065 |
1065 return 0 | 1066 return 0 |
1066 | 1067 |
1067 | 1068 |
1068 if __name__ == '__main__': | 1069 if __name__ == '__main__': |
1069 try: | 1070 try: |
1070 sys.exit(main(sys.argv)) | 1071 sys.exit(main(sys.argv)) |
1071 except KeyboardInterrupt: | 1072 except KeyboardInterrupt: |
1072 buildbot_common.ErrorExit('build_sdk: interrupted') | 1073 buildbot_common.ErrorExit('build_sdk: interrupted') |
OLD | NEW |