| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 # |
| 2 # 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 |
| 3 # functions from it. | 7 # functions from it. |
| 4 # | 8 # |
| 5 # Usage: prep_libcmt.bat <VCInstallDir> <OutputFile> | 9 # Usage: prep_libcmt.bat <VCInstallDir> <OutputFile> |
| 6 # | 10 # |
| 7 # VCInstallDir is the path where VC is installed, typically: | 11 # VCInstallDir is the path where VC is installed, typically: |
| 8 # C:\Program Files\Microsoft Visual Studio 8\VC\ | 12 # C:\Program Files\Microsoft Visual Studio 8\VC\ |
| 9 # | 13 # |
| 10 # OutputFile is the directory where the modified libcmt file should be stored. | 14 # OutputFile is the directory where the modified libcmt file should be stored. |
| 11 # | 15 # |
| (...skipping 14 matching lines...) Expand all Loading... |
| 26 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\\" |
| 27 | 31 |
| 28 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" |
| 29 | 33 |
| 30 for FILE in $OBJFILES | 34 for FILE in $OBJFILES |
| 31 do | 35 do |
| 32 echo ${FILE} | 36 echo ${FILE} |
| 33 LIB /NOLOGO /IGNORE:4006,4014,4221 /REMOVE:${LIBCMTSRCPATHVS2005}${FILE} $OUTC
MT | 37 LIB /NOLOGO /IGNORE:4006,4014,4221 /REMOVE:${LIBCMTSRCPATHVS2005}${FILE} $OUTC
MT |
| 34 LIB /NOLOGO /IGNORE:4006,4014,4221 /REMOVE:${LIBCMTSRCPATHVS2008}${FILE} $OUTC
MT | 38 LIB /NOLOGO /IGNORE:4006,4014,4221 /REMOVE:${LIBCMTSRCPATHVS2008}${FILE} $OUTC
MT |
| 35 done | 39 done |
| OLD | NEW |