| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 # | 6 # |
| 7 # This script takes libcmt.lib for VS2005/08/10 and removes the allocation | 7 # This script takes libcmt.lib for VS2005/08/10 and removes the allocation |
| 8 # related functions from it. | 8 # related functions from it. |
| 9 # | 9 # |
| 10 # Usage: prep_libc.py <VCLibDir> <OutputDir> <arch> | 10 # Usage: prep_libc.py <VCLibDir> <OutputDir> <arch> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 'f:\\dd\\vctools\\crt_bld\\' + bindir + \ | 49 'f:\\dd\\vctools\\crt_bld\\' + bindir + \ |
| 50 '\\crt\\src\\build\\' + objdir + '\\mt_obj\\', | 50 '\\crt\\src\\build\\' + objdir + '\\mt_obj\\', |
| 51 'F:\\dd\\vctools\\crt_bld\\' + bindir + \ | 51 'F:\\dd\\vctools\\crt_bld\\' + bindir + \ |
| 52 '\\crt\\src\\build\\' + objdir + '\\mt_obj\\nativec\\\\', | 52 '\\crt\\src\\build\\' + objdir + '\\mt_obj\\nativec\\\\', |
| 53 'F:\\dd\\vctools\\crt_bld\\' + bindir + \ | 53 'F:\\dd\\vctools\\crt_bld\\' + bindir + \ |
| 54 '\\crt\\src\\build\\' + objdir + '\\mt_obj\\nativecpp\\\\' ] | 54 '\\crt\\src\\build\\' + objdir + '\\mt_obj\\nativecpp\\\\' ] |
| 55 | 55 |
| 56 objfiles = ['malloc', 'free', 'realloc', 'new', 'delete', 'new2', 'delete2', | 56 objfiles = ['malloc', 'free', 'realloc', 'new', 'delete', 'new2', 'delete2', |
| 57 'align', 'msize', 'heapinit', 'expand', 'heapchk', 'heapwalk', | 57 'align', 'msize', 'heapinit', 'expand', 'heapchk', 'heapwalk', |
| 58 'heapmin', 'sbheap', 'calloc', 'recalloc', 'calloc_impl', | 58 'heapmin', 'sbheap', 'calloc', 'recalloc', 'calloc_impl', |
| 59 'new_mode', 'newopnt'] | 59 'new_mode', 'newopnt', 'newaopnt'] |
| 60 for obj in objfiles: | 60 for obj in objfiles: |
| 61 for vspath in vspaths: | 61 for vspath in vspaths: |
| 62 cmd = ('lib /nologo /ignore:4006,4014,4221 /remove:%s%s.obj %s' % | 62 cmd = ('lib /nologo /ignore:4006,4014,4221 /remove:%s%s.obj %s' % |
| 63 (vspath, obj, output_lib)) | 63 (vspath, obj, output_lib)) |
| 64 run(cmd, obj + '.obj') | 64 run(cmd, obj + '.obj') |
| 65 | 65 |
| 66 if __name__ == "__main__": | 66 if __name__ == "__main__": |
| 67 sys.exit(main()) | 67 sys.exit(main()) |
| OLD | NEW |