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 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 buildbot_common.Run(cmd, cwd=NACLPORTS_DIR) | 816 buildbot_common.Run(cmd, cwd=NACLPORTS_DIR) |
817 | 817 |
818 | 818 |
819 def BuildStepBuildNaClPorts(pepper_ver, pepperdir): | 819 def BuildStepBuildNaClPorts(pepper_ver, pepperdir): |
820 """Build selected naclports in all configurations.""" | 820 """Build selected naclports in all configurations.""" |
821 # TODO(sbc): currently naclports doesn't know anything about | 821 # TODO(sbc): currently naclports doesn't know anything about |
822 # Debug builds so the Debug subfolders are all empty. | 822 # Debug builds so the Debug subfolders are all empty. |
823 | 823 |
824 env = dict(os.environ) | 824 env = dict(os.environ) |
825 env['NACL_SDK_ROOT'] = pepperdir | 825 env['NACL_SDK_ROOT'] = pepperdir |
826 env['PEPPER_DIR'] = os.path.dirname(pepperdir) | 826 env['PEPPER_DIR'] = os.path.basename(pepperdir) # pepper_NN |
827 env['NACLPORTS_NO_ANNOTATE'] = "1" | 827 env['NACLPORTS_NO_ANNOTATE'] = "1" |
828 env['NACLPORTS_NO_UPLOAD'] = "1" | 828 env['NACLPORTS_NO_UPLOAD'] = "1" |
829 | 829 |
830 build_script = 'build_tools/bots/linux/naclports-linux-sdk-bundle.sh' | 830 build_script = 'build_tools/bots/linux/naclports-linux-sdk-bundle.sh' |
831 buildbot_common.BuildStep('Build naclports') | 831 buildbot_common.BuildStep('Build naclports') |
832 buildbot_common.Run([build_script], env=env, cwd=NACLPORTS_DIR) | 832 buildbot_common.Run([build_script], env=env, cwd=NACLPORTS_DIR) |
833 | 833 |
834 bundle_dir = os.path.join(NACLPORTS_DIR, 'out', 'sdk_bundle') | 834 bundle_dir = os.path.join(NACLPORTS_DIR, 'out', 'sdk_bundle') |
835 out_dir = os.path.join(bundle_dir, 'pepper_%s' % pepper_ver) | 835 out_dir = os.path.join(bundle_dir, 'pepper_%s' % pepper_ver) |
836 | 836 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 BuildStepArchiveSDKTools() | 981 BuildStepArchiveSDKTools() |
982 | 982 |
983 return 0 | 983 return 0 |
984 | 984 |
985 | 985 |
986 if __name__ == '__main__': | 986 if __name__ == '__main__': |
987 try: | 987 try: |
988 sys.exit(main(sys.argv)) | 988 sys.exit(main(sys.argv)) |
989 except KeyboardInterrupt: | 989 except KeyboardInterrupt: |
990 buildbot_common.ErrorExit('build_sdk: interrupted') | 990 buildbot_common.ErrorExit('build_sdk: interrupted') |
OLD | NEW |