| 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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 ['minidump_stackwalk', 'minidump_stackwalk'] | 392 ['minidump_stackwalk', 'minidump_stackwalk'] |
| 393 ] | 393 ] |
| 394 | 394 |
| 395 tools_files.append(['sel_ldr64', 'sel_ldr_x86_64']) | 395 tools_files.append(['sel_ldr64', 'sel_ldr_x86_64']) |
| 396 | 396 |
| 397 if platform == 'linux': | 397 if platform == 'linux': |
| 398 tools_files.append(['nacl_helper_bootstrap', | 398 tools_files.append(['nacl_helper_bootstrap', |
| 399 'nacl_helper_bootstrap_x86_32']) | 399 'nacl_helper_bootstrap_x86_32']) |
| 400 tools_files.append(['nacl_helper_bootstrap64', | 400 tools_files.append(['nacl_helper_bootstrap64', |
| 401 'nacl_helper_bootstrap_x86_64']) | 401 'nacl_helper_bootstrap_x86_64']) |
| 402 tools_files.append(['nonsfi_loader_newlib_x32_nonsfi.nexe', |
| 403 'nonsfi_loader_x86_32']) |
| 402 | 404 |
| 403 buildbot_common.MakeDir(os.path.join(pepperdir, 'tools')) | 405 buildbot_common.MakeDir(os.path.join(pepperdir, 'tools')) |
| 404 | 406 |
| 405 # Add .exe extensions to all windows tools | 407 # Add .exe extensions to all windows tools |
| 406 for pair in tools_files: | 408 for pair in tools_files: |
| 407 if platform == 'win' and not pair[0].endswith('.nexe'): | 409 if platform == 'win' and not pair[0].endswith('.nexe'): |
| 408 pair[0] += '.exe' | 410 pair[0] += '.exe' |
| 409 pair[1] += '.exe' | 411 pair[1] += '.exe' |
| 410 | 412 |
| 411 InstallFiles(ninja_out_dir, os.path.join(pepperdir, 'tools'), tools_files) | 413 InstallFiles(ninja_out_dir, os.path.join(pepperdir, 'tools'), tools_files) |
| (...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1055 BuildStepArchiveSDKTools() | 1057 BuildStepArchiveSDKTools() |
| 1056 | 1058 |
| 1057 return 0 | 1059 return 0 |
| 1058 | 1060 |
| 1059 | 1061 |
| 1060 if __name__ == '__main__': | 1062 if __name__ == '__main__': |
| 1061 try: | 1063 try: |
| 1062 sys.exit(main(sys.argv)) | 1064 sys.exit(main(sys.argv)) |
| 1063 except KeyboardInterrupt: | 1065 except KeyboardInterrupt: |
| 1064 buildbot_common.ErrorExit('build_sdk: interrupted') | 1066 buildbot_common.ErrorExit('build_sdk: interrupted') |
| OLD | NEW |