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

Side by Side Diff: base/allocator/prep_libc.py

Issue 15979023: Redo r203907 base_unittests.exe to use allocator shims (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 months 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
« no previous file with comments | « no previous file | base/base.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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())
OLDNEW
« no previous file with comments | « no previous file | base/base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698