| 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 toolchains.remove('arm') | 650 toolchains.remove('arm') |
| 651 | 651 |
| 652 if 'host' in toolchains: | 652 if 'host' in toolchains: |
| 653 toolchains.remove('host') | 653 toolchains.remove('host') |
| 654 toolchains.append(getos.GetPlatform()) | 654 toolchains.append(getos.GetPlatform()) |
| 655 | 655 |
| 656 filters['TOOLS'] = toolchains | 656 filters['TOOLS'] = toolchains |
| 657 | 657 |
| 658 # Update examples and libraries | 658 # Update examples and libraries |
| 659 filters['DEST'] = [ | 659 filters['DEST'] = [ |
| 660 'getting_started', |
| 660 'examples/api', | 661 'examples/api', |
| 661 'examples/demo', | 662 'examples/demo', |
| 662 'examples/getting_started', | |
| 663 'examples/tutorial', | 663 'examples/tutorial', |
| 664 'src' | 664 'src' |
| 665 ] | 665 ] |
| 666 | 666 |
| 667 tree = parse_dsc.LoadProjectTree(SDK_SRC_DIR, include=filters) | 667 tree = parse_dsc.LoadProjectTree(SDK_SRC_DIR, include=filters) |
| 668 build_projects.UpdateProjects(pepperdir, tree, clobber=clobber, | 668 build_projects.UpdateProjects(pepperdir, tree, clobber=clobber, |
| 669 toolchains=toolchains) | 669 toolchains=toolchains) |
| 670 | 670 |
| 671 | 671 |
| 672 def BuildStepMakeAll(pepperdir, directory, step_name, | 672 def BuildStepMakeAll(pepperdir, directory, step_name, |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 953 BuildStepArchiveSDKTools() | 953 BuildStepArchiveSDKTools() |
| 954 | 954 |
| 955 return 0 | 955 return 0 |
| 956 | 956 |
| 957 | 957 |
| 958 if __name__ == '__main__': | 958 if __name__ == '__main__': |
| 959 try: | 959 try: |
| 960 sys.exit(main(sys.argv)) | 960 sys.exit(main(sys.argv)) |
| 961 except KeyboardInterrupt: | 961 except KeyboardInterrupt: |
| 962 buildbot_common.ErrorExit('build_sdk: interrupted') | 962 buildbot_common.ErrorExit('build_sdk: interrupted') |
| OLD | NEW |