summaryrefslogtreecommitdiffstats
path: root/base/allocator/prep_libc.sh
diff options
context:
space:
mode:
authorPatrick Scott <phanna@android.com>2010-02-04 10:37:17 -0500
committerPatrick Scott <phanna@android.com>2010-02-04 10:39:42 -0500
commitc7f5f8508d98d5952d42ed7648c2a8f30a4da156 (patch)
treedd51dbfbf6670daa61279b3a19e7b1835b301dbf /base/allocator/prep_libc.sh
parent139d8152182f9093f03d9089822b688e49fa7667 (diff)
downloadexternal_chromium-c7f5f8508d98d5952d42ed7648c2a8f30a4da156.zip
external_chromium-c7f5f8508d98d5952d42ed7648c2a8f30a4da156.tar.gz
external_chromium-c7f5f8508d98d5952d42ed7648c2a8f30a4da156.tar.bz2
Initial source checkin.
The source files were determined by building net_unittests in chromium's source tree. Some of the obvious libraries were left out (v8, gmock, gtest). The Android.mk file has all the sources (minus unittests and tools) that were used during net_unittests compilation. Nothing builds yet because of STL but that is the next task. The .cpp files will most likely not compile anyways because of the LOCAL_CPP_EXTENSION mod. I will have to break this into multiple projects to get around that limitation.
Diffstat (limited to 'base/allocator/prep_libc.sh')
-rw-r--r--base/allocator/prep_libc.sh39
1 files changed, 39 insertions, 0 deletions
diff --git a/base/allocator/prep_libc.sh b/base/allocator/prep_libc.sh
new file mode 100644
index 0000000..5edd2fe
--- /dev/null
+++ b/base/allocator/prep_libc.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+#
+# This script takes libcmt.lib for VS2005 and removes the allocation related
+# functions from it.
+#
+# Usage: prep_libcmt.bat <VCInstallDir> <OutputFile>
+#
+# VCInstallDir is the path where VC is installed, typically:
+# C:\Program Files\Microsoft Visual Studio 8\VC\
+#
+# OutputFile is the directory where the modified libcmt file should be stored.
+#
+
+LIBCMT="${1}\\libcmt.lib"
+LIBCMTPDB="${1}\\libcmt.pdb"
+OUTDIR=$2
+OUTCMT="${2}\\libcmt.lib"
+
+mkdir -p $OUTDIR
+cp "$LIBCMT" "$OUTDIR"
+cp "$LIBCMTPDB" "$OUTDIR"
+
+
+# We'll remove the symbols based on paths found in either the VS2005 or VS2008
+# libcmt.lib files.
+LIBCMTSRCPATHVS2005="build\\intel\\mt_obj\\"
+LIBCMTSRCPATHVS2008="f:\\dd\\vctools\\crt_bld\\SELF_X86\\crt\\src\\build\\INTEL\\mt_obj\\"
+
+OBJFILES="malloc.obj free.obj realloc.obj new.obj delete.obj new2.obj delete2.obj align.obj msize.obj heapinit.obj expand.obj heapchk.obj heapwalk.obj heapmin.obj sbheap.obj calloc.obj recalloc.obj calloc_impl.obj new_mode.obj newopnt.obj"
+
+for FILE in $OBJFILES
+do
+ echo ${FILE}
+ LIB /NOLOGO /IGNORE:4006,4014,4221 /REMOVE:${LIBCMTSRCPATHVS2005}${FILE} $OUTCMT
+ LIB /NOLOGO /IGNORE:4006,4014,4221 /REMOVE:${LIBCMTSRCPATHVS2008}${FILE} $OUTCMT
+done