OLD | NEW |
(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. |
| 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 |
OLD | NEW |