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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 buildbot_common.RemoveDir(exampledir) | 453 buildbot_common.RemoveDir(exampledir) |
454 buildbot_common.MakeDir(exampledir) | 454 buildbot_common.MakeDir(exampledir) |
455 | 455 |
456 libdir = os.path.join(pepperdir, 'lib') | 456 libdir = os.path.join(pepperdir, 'lib') |
457 buildbot_common.RemoveDir(libdir) | 457 buildbot_common.RemoveDir(libdir) |
458 buildbot_common.MakeDir(libdir) | 458 buildbot_common.MakeDir(libdir) |
459 | 459 |
460 plat = getos.GetPlatform() | 460 plat = getos.GetPlatform() |
461 for arch in LIB_DICT[plat]: | 461 for arch in LIB_DICT[plat]: |
462 buildbot_common.MakeDir(os.path.join(libdir, '%s_%s_host' % (plat, arch))) | 462 buildbot_common.MakeDir(os.path.join(libdir, '%s_%s_host' % (plat, arch))) |
| 463 for config in ['Debug', 'Release']: |
| 464 buildbot_common.MakeDir(os.path.join(libdir, '%s_%s_host' % (plat, arch), |
| 465 config)) |
| 466 |
463 | 467 |
464 srcdir = os.path.join(pepperdir, 'src') | 468 srcdir = os.path.join(pepperdir, 'src') |
465 buildbot_common.RemoveDir(srcdir) | 469 buildbot_common.RemoveDir(srcdir) |
466 buildbot_common.MakeDir(srcdir) | 470 buildbot_common.MakeDir(srcdir) |
467 | 471 |
468 | 472 |
469 # Copy individual files | 473 # Copy individual files |
470 files = ['favicon.ico', 'httpd.cmd', 'httpd.py', 'index.html'] | 474 files = ['favicon.ico', 'httpd.cmd', 'httpd.py', 'index.html'] |
471 for filename in files: | 475 for filename in files: |
472 oshelpers.Copy(['-v', os.path.join(SDK_EXAMPLE_DIR, filename), exampledir]) | 476 oshelpers.Copy(['-v', os.path.join(SDK_EXAMPLE_DIR, filename), exampledir]) |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 # Archive on non-trybots. | 832 # Archive on non-trybots. |
829 if options.archive or buildbot_common.IsSDKBuilder(): | 833 if options.archive or buildbot_common.IsSDKBuilder(): |
830 BuildStepArchiveBundle(pepper_ver, clnumber, tarfile) | 834 BuildStepArchiveBundle(pepper_ver, clnumber, tarfile) |
831 BuildStepArchiveSDKTools() | 835 BuildStepArchiveSDKTools() |
832 | 836 |
833 return 0 | 837 return 0 |
834 | 838 |
835 | 839 |
836 if __name__ == '__main__': | 840 if __name__ == '__main__': |
837 sys.exit(main(sys.argv)) | 841 sys.exit(main(sys.argv)) |
OLD | NEW |