OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 # Copyright (c) 2009 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 # This script takes libcmt.lib for VS2005 and removes the allocation related | 6 # This script takes libcmt.lib for VS2005 and removes the allocation related |
7 # functions from it. | 7 # functions from it. |
8 # | 8 # |
9 # Usage: prep_libcmt.bat <VCInstallDir> <OutputFile> | 9 # Usage: prep_libcmt.bat <VCInstallDir> <OutputFile> |
10 # | 10 # |
11 # VCInstallDir is the path where VC is installed, typically: | 11 # VCInstallDir is the path where VC is installed, typically: |
12 # C:\Program Files\Microsoft Visual Studio 8\VC\ | 12 # C:\Program Files\Microsoft Visual Studio 8\VC\ |
(...skipping 17 matching lines...) Expand all Loading... |
30 LIBCMTSRCPATHVS2008="f:\\dd\\vctools\\crt_bld\\SELF_X86\\crt\\src\\build\\INTEL\
\mt_obj\\" | 30 LIBCMTSRCPATHVS2008="f:\\dd\\vctools\\crt_bld\\SELF_X86\\crt\\src\\build\\INTEL\
\mt_obj\\" |
31 | 31 |
32 OBJFILES="malloc.obj free.obj realloc.obj new.obj delete.obj new2.obj delete2.ob
j align.obj msize.obj heapinit.obj expand.obj heapchk.obj heapwalk.obj heapmin.o
bj sbheap.obj calloc.obj recalloc.obj calloc_impl.obj new_mode.obj newopnt.obj" | 32 OBJFILES="malloc.obj free.obj realloc.obj new.obj delete.obj new2.obj delete2.ob
j align.obj msize.obj heapinit.obj expand.obj heapchk.obj heapwalk.obj heapmin.o
bj sbheap.obj calloc.obj recalloc.obj calloc_impl.obj new_mode.obj newopnt.obj" |
33 | 33 |
34 for FILE in $OBJFILES | 34 for FILE in $OBJFILES |
35 do | 35 do |
36 echo ${FILE} | 36 echo ${FILE} |
37 LIB /NOLOGO /IGNORE:4006,4014,4221 /REMOVE:${LIBCMTSRCPATHVS2005}${FILE} $OUTC
MT | 37 LIB /NOLOGO /IGNORE:4006,4014,4221 /REMOVE:${LIBCMTSRCPATHVS2005}${FILE} $OUTC
MT |
38 LIB /NOLOGO /IGNORE:4006,4014,4221 /REMOVE:${LIBCMTSRCPATHVS2008}${FILE} $OUTC
MT | 38 LIB /NOLOGO /IGNORE:4006,4014,4221 /REMOVE:${LIBCMTSRCPATHVS2008}${FILE} $OUTC
MT |
39 done | 39 done |
OLD | NEW |