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

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

Issue 10388215: replace prep_libc.sh with prep_libc.py, and quiet the output (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | Annotate | Revision Log
« base/allocator/prep_libc.py ('K') | « base/allocator/prep_libc.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/sh
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
4 # found in the LICENSE file.
5 #
6 # This script takes libcmt.lib for VS2005 and removes the allocation related
7 # functions from it.
8 #
9 # Usage: prep_libcmt.bat <VCInstallDir> <OutputFile>
10 #
11 # VCInstallDir is the path where VC is installed, typically:
12 # C:\Program Files\Microsoft Visual Studio 8\VC\
13 #
14 # OutputFile is the directory where the modified libcmt file should be stored.
15 #
16
17 LIBCMT="${1}\\libcmt.lib"
18 LIBCMTPDB="${1}\\libcmt.pdb"
19 OUTDIR=$2
20 OUTCMT="${2}\\libcmt.lib"
21
22 mkdir -p $OUTDIR
23 cp "$LIBCMT" "$OUTDIR"
24 cp "$LIBCMTPDB" "$OUTDIR"
25
26
27 # We'll remove the symbols based on paths found in either the VS2005 or VS2008
28 # libcmt.lib files.
29 LIBCMTSRCPATHVS2005="build\\intel\\mt_obj\\"
30 LIBCMTSRCPATHVS2008="f:\\dd\\vctools\\crt_bld\\SELF_X86\\crt\\src\\build\\INTEL\ \mt_obj\\"
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"
33
34 for FILE in $OBJFILES
35 do
36 echo ${FILE}
37 LIB /NOLOGO /IGNORE:4006,4014,4221 /REMOVE:${LIBCMTSRCPATHVS2005}${FILE} $OUTC MT
38 LIB /NOLOGO /IGNORE:4006,4014,4221 /REMOVE:${LIBCMTSRCPATHVS2008}${FILE} $OUTC MT
39 done
OLDNEW
« base/allocator/prep_libc.py ('K') | « base/allocator/prep_libc.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698