| 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 import errno | 6 import errno |
| 7 import hashlib | 7 import hashlib |
| 8 import json | 8 import json |
| 9 import optparse | 9 import optparse |
| 10 import os | 10 import os |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 """ | 603 """ |
| 604 assert(config in ('Debug', 'Release')) | 604 assert(config in ('Debug', 'Release')) |
| 605 sdk_root = GetSDKRoot() | 605 sdk_root = GetSDKRoot() |
| 606 if not sdk_root: | 606 if not sdk_root: |
| 607 # TOOD(sbc): output a warning here? We would also need to suppress | 607 # TOOD(sbc): output a warning here? We would also need to suppress |
| 608 # the warning when run from the chromium build. | 608 # the warning when run from the chromium build. |
| 609 return [] | 609 return [] |
| 610 | 610 |
| 611 osname = getos.GetPlatform() | 611 osname = getos.GetPlatform() |
| 612 libpath = [ | 612 libpath = [ |
| 613 # Core toolchain libraries |
| 613 'toolchain/%s_x86_glibc/x86_64-nacl/lib' % osname, | 614 'toolchain/%s_x86_glibc/x86_64-nacl/lib' % osname, |
| 614 'toolchain/%s_x86_glibc/x86_64-nacl/lib32' % osname, | 615 'toolchain/%s_x86_glibc/x86_64-nacl/lib32' % osname, |
| 616 # naclports installed libraries |
| 617 'toolchain/%s_x86_glibc/x86_64-nacl/usr/lib' % osname, |
| 618 'toolchain/%s_x86_glibc/i686-nacl/usr/lib' % osname, |
| 619 # SDK bundle libraries |
| 615 'lib/glibc_x86_32/%s' % config, | 620 'lib/glibc_x86_32/%s' % config, |
| 616 'lib/glibc_x86_64/%s' % config, | 621 'lib/glibc_x86_64/%s' % config, |
| 622 # naclports bundle libraries |
| 617 'ports/lib/glibc_x86_32/%s' % config, | 623 'ports/lib/glibc_x86_32/%s' % config, |
| 618 'ports/lib/glibc_x86_64/%s' % config, | 624 'ports/lib/glibc_x86_64/%s' % config, |
| 619 ] | 625 ] |
| 620 libpath = [os.path.normpath(p) for p in libpath] | 626 libpath = [os.path.normpath(p) for p in libpath] |
| 621 libpath = [os.path.join(sdk_root, p) for p in libpath] | 627 libpath = [os.path.join(sdk_root, p) for p in libpath] |
| 622 return libpath | 628 return libpath |
| 623 | 629 |
| 624 | 630 |
| 625 def main(argv): | 631 def main(argv): |
| 626 parser = optparse.OptionParser( | 632 parser = optparse.OptionParser( |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 if __name__ == '__main__': | 729 if __name__ == '__main__': |
| 724 try: | 730 try: |
| 725 rtn = main(sys.argv[1:]) | 731 rtn = main(sys.argv[1:]) |
| 726 except Error, e: | 732 except Error, e: |
| 727 sys.stderr.write('%s: %s\n' % (os.path.basename(__file__), e)) | 733 sys.stderr.write('%s: %s\n' % (os.path.basename(__file__), e)) |
| 728 rtn = 1 | 734 rtn = 1 |
| 729 except KeyboardInterrupt: | 735 except KeyboardInterrupt: |
| 730 sys.stderr.write('%s: interrupted\n' % os.path.basename(__file__)) | 736 sys.stderr.write('%s: interrupted\n' % os.path.basename(__file__)) |
| 731 rtn = 1 | 737 rtn = 1 |
| 732 sys.exit(rtn) | 738 sys.exit(rtn) |
| OLD | NEW |