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

Side by Side Diff: deps/third_party/valgrind/scripts/build-valgrind-for-chromium.sh

Issue 536082: Remove un-needed Valgrind binaries and strip some of the remaining.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/
Patch Set: Created 10 years, 11 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
« no previous file with comments | « no previous file | 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
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2009 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 # Script to build valgrind binaries for use with chromium 7 # Script to build valgrind binaries for use with chromium
8 8
9 THISDIR=$(dirname "${0}") 9 THISDIR=$(dirname "${0}")
10 THISDIR=$(cd "${THISDIR}" && /bin/pwd) 10 THISDIR=$(cd "${THISDIR}" && /bin/pwd)
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 # Finally install valgrind to $OUTPUT_DIR. 151 # Finally install valgrind to $OUTPUT_DIR.
152 make install 152 make install
153 153
154 if [ "$CONFIGURE_FLAGS" == "" ] ; then 154 if [ "$CONFIGURE_FLAGS" == "" ] ; then
155 ln -s "$OUTPUT_DIR" "$BINARIES_DIR/local" 155 ln -s "$OUTPUT_DIR" "$BINARIES_DIR/local"
156 fi 156 fi
157 157
158 maybe_build_gdb_for_mac "$OUTPUT_DIR" 158 maybe_build_gdb_for_mac "$OUTPUT_DIR"
159 159
160 # Delete un-needed stuff from the $OUTPUT_DIR
161 # TODO(timurrrr): probably, we should just don't build the unused tools
162 cd $OUTPUT_DIR
163 rm -rf include
164 rm -rf lib/pkgconfig lib/*.a
165 rm bin/*cg_* bin/callgrind*
166 cd lib/valgrind
167 rm -rf *.a \
168 *drd* \
169 *exp-* \
170 *none* \
171 *lackey* \
172 *massif* \
173 *helgrind* \
174 *callgrind* \
175 *cachegrind*
176
177 # Strip all binaries except "vgpreload" (we do need their symbols).
178 strip `ls -1 | grep "tsan\|memcheck" | grep -v "dSYM" | grep -v "vgpreload"`
179
160 # We're done 180 # We're done
161 cd $THISDIR 181 cd $THISDIR
162 # }}} 182 # }}}
163 } 183 }
164 184
165 maybe_build_gdb_for_mac() { 185 maybe_build_gdb_for_mac() {
166 # MacOSX before Snow Leopoard needs newer gdb to be able to handle -O1 chrome 186 # MacOSX before Snow Leopoard needs newer gdb to be able to handle -O1 chrome
167 # Kludgily download and unpack the sources in a subdirectory, 187 # Kludgily download and unpack the sources in a subdirectory,
168 # then install into $1. 188 # then install into $1.
169 # This is SLOW and we want it to run only once, so we execute it only 189 # This is SLOW and we want it to run only once, so we execute it only
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 echo "We've tested binaries built on 9.7.0 to work with 9.6.1, 9.7.0 and 9 .8.0" 231 echo "We've tested binaries built on 9.7.0 to work with 9.6.1, 9.7.0 and 9 .8.0"
212 build_valgrind "local" 232 build_valgrind "local"
213 else 233 else
214 build_valgrind "mac" 234 build_valgrind "mac"
215 fi 235 fi
216 ;; 236 ;;
217 *) 237 *)
218 build_valgrind "local" 238 build_valgrind "local"
219 ;; 239 ;;
220 esac 240 esac
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698