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

Side by Side Diff: build/linux/dump_app_syms

Issue 1179393004: Fix some build symbol configuration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 5 years, 6 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
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | build/linux/dump_app_syms.py » ('j') | 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
3 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6 #
7 # Helper script to run dump_syms on Chrome Linux executables and strip
8 # them if needed.
9
10 set -e
11
12 usage() {
13 echo -n "$0 <dump_syms_exe> <strip_binary> " >&2
14 echo "<binary_with_symbols> <symbols_output>" >&2
15 }
16
17
18 if [ $# -ne 4 ]; then
19 usage
20 exit 1
21 fi
22
23 SCRIPTDIR="$(readlink -f "$(dirname "$0")")"
24 DUMPSYMS="$1"
25 STRIP_BINARY="$2"
26 INFILE="$3"
27 OUTFILE="$4"
28
29 # Dump the symbols from the given binary.
30 if [ ! -e "$OUTFILE" -o "$INFILE" -nt "$OUTFILE" ]; then
31 "$DUMPSYMS" -r "$INFILE" > "$OUTFILE"
32 fi
33
34 if [ "$STRIP_BINARY" != "0" ]; then
35 strip "$INFILE"
36 fi
OLDNEW
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | build/linux/dump_app_syms.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698