Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Side by Side Diff: native_client_sdk/src/tools/create_nmf.py

Issue 1493443002: Revert of [NaCl SDK] Remove support for bionic toolchain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 """Tool for automatically creating .nmf files from .nexe/.pexe/.bc executables. 6 """Tool for automatically creating .nmf files from .nexe/.pexe/.bc executables.
7 7
8 As well as creating the nmf file this tool can also find and stage 8 As well as creating the nmf file this tool can also find and stage
9 any shared libraries dependencies that the executables might have. 9 any shared libraries dependencies that the executables might have.
10 """ 10 """
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 545
546 libpath += [ 546 libpath += [
547 'lib/glibc_x86_32/%s' % config_fallback, 547 'lib/glibc_x86_32/%s' % config_fallback,
548 'lib/glibc_x86_64/%s' % config_fallback, 548 'lib/glibc_x86_64/%s' % config_fallback,
549 'lib/glibc_arm/%s' % config_fallback, 549 'lib/glibc_arm/%s' % config_fallback,
550 'ports/lib/glibc_x86_32/%s' % config_fallback, 550 'ports/lib/glibc_x86_32/%s' % config_fallback,
551 'ports/lib/glibc_x86_64/%s' % config_fallback, 551 'ports/lib/glibc_x86_64/%s' % config_fallback,
552 'ports/lib/glibc_arm/%s' % config_fallback, 552 'ports/lib/glibc_arm/%s' % config_fallback,
553 ] 553 ]
554 554
555 bionic_dir = 'toolchain/%s_arm_bionic' % osname
556 if os.path.isdir(os.path.join(sdk_root, bionic_dir)):
557 libpath += [
558 '%s/arm-nacl/lib' % bionic_dir,
559 '%s/arm-nacl/usr/lib' % bionic_dir,
560 'lib/bionic_arm/%s' % config,
561 ]
555 libpath = [os.path.normpath(p) for p in libpath] 562 libpath = [os.path.normpath(p) for p in libpath]
556 libpath = [os.path.join(sdk_root, p) for p in libpath] 563 libpath = [os.path.join(sdk_root, p) for p in libpath]
557 libpath.append(os.path.join(sdk_root, 'tools')) 564 libpath.append(os.path.join(sdk_root, 'tools'))
558 return libpath 565 return libpath
559 566
560 567
561 def main(args): 568 def main(args):
562 parser = argparse.ArgumentParser(description=__doc__) 569 parser = argparse.ArgumentParser(description=__doc__)
563 parser.add_argument('-o', '--output', dest='output', 570 parser.add_argument('-o', '--output', dest='output',
564 help='Write manifest file to FILE (default is stdout)', 571 help='Write manifest file to FILE (default is stdout)',
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 if __name__ == '__main__': 714 if __name__ == '__main__':
708 try: 715 try:
709 rtn = main(sys.argv[1:]) 716 rtn = main(sys.argv[1:])
710 except Error, e: 717 except Error, e:
711 sys.stderr.write('%s: %s\n' % (os.path.basename(__file__), e)) 718 sys.stderr.write('%s: %s\n' % (os.path.basename(__file__), e))
712 rtn = 1 719 rtn = 1
713 except KeyboardInterrupt: 720 except KeyboardInterrupt:
714 sys.stderr.write('%s: interrupted\n' % os.path.basename(__file__)) 721 sys.stderr.write('%s: interrupted\n' % os.path.basename(__file__))
715 rtn = 1 722 rtn = 1
716 sys.exit(rtn) 723 sys.exit(rtn)
OLDNEW
« no previous file with comments | « native_client_sdk/src/tools/common.mk ('k') | native_client_sdk/src/tools/lib/get_shared_deps.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698