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

Side by Side Diff: build/mac/dump_app_syms

Issue 113305: - Roll DEPS to pick up newer GYP... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 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
Property Changes:
Name: svn:executable
+ *
Name: svn:eol-style
+ LF
OLDNEW
(Empty)
1 #!/bin/sh
2
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
5 # found in the LICENSE file.
6
7 # Make sure we got the header to write into passed to us
8 if [ $# -ne 1 ]; then
9 echo "error: missing branding as an argument" >&2
10 exit 1
11 fi
12
13 set -ex
14
15 # Skip out if we're aren't in Release mode, no need for dump_sym on debug runs.
Mark Mentovai 2009/05/12 21:54:16 dump_syms (add s)
16 if [ "${CONFIGURATION}" != "Release" ] ; then
17 exit 0
18 fi
19
20 TOP="${SRCROOT}/.."
21 BUILD_BRANDING=$1
22
23 . "${TOP}/chrome/VERSION"
24
25 SRC_APP_NAME="${BUILD_BRANDING}"
26 BREAKPAD_DUMP_SYMS="${BUILT_PRODUCTS_DIR}/dump_syms"
27 BREAKPAD_PRODUCT_ID="${BUILD_BRANDING}_Mac"
28 FULL_VERSION="${MAJOR}.${MINOR}.${BUILD}.${PATCH}"
29 SRC_APP_PATH="${BUILT_PRODUCTS_DIR}/${SRC_APP_NAME}.app"
30 # Created by the build/mac/strip_from_xcode script.
31 UNSTRIPPED_APP="${SRC_APP_PATH}.dSYM/Contents/Resources/DWARF/${SRC_APP_NAME}"
32 SYMBOL_FILE="${BUILT_PRODUCTS_DIR}/${BUILD_BRANDING}-${FULL_VERSION} i386.breakp ad"
33
34 # Only run dump_syms if the file has changed since we last did a dump.
35 if [ "${UNSTRIPPED_APP}" -nt "${SYMBOL_FILE}" ] ; then
36 "${BREAKPAD_DUMP_SYMS}" -a i386 "${UNSTRIPPED_APP}" > "${SYMBOL_FILE}"
37 fi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698