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

Side by Side Diff: chrome/tools/build/mac/dump_product_syms

Issue 7562002: Generate Breakpad symbols for Remoting Host plugin on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix dSYM location, set mac_real_dsym=1 and add chrome dependency. Created 9 years, 4 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
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 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 # This script expects the following environment variables to be set. Xcode 7 # This script expects the following environment variables to be set. Xcode
8 # normally sets them: 8 # normally sets them:
9 # 9 #
10 # CONFIGURATION - Release or Debug; this script only operates when Release. 10 # CONFIGURATION - Release or Debug; this script only operates when Release.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 DSYM_TAR_PATH="${BUILT_PRODUCTS_DIR}/${SRC_APP_NAME}.dSYM.tar.bz2" 48 DSYM_TAR_PATH="${BUILT_PRODUCTS_DIR}/${SRC_APP_NAME}.dSYM.tar.bz2"
49 49
50 declare -a DSYMS 50 declare -a DSYMS
51 51
52 for SRC_NAME in "${SRC_APP_NAME}.app" \ 52 for SRC_NAME in "${SRC_APP_NAME}.app" \
53 "${SRC_APP_NAME} Framework.framework" \ 53 "${SRC_APP_NAME} Framework.framework" \
54 "${SRC_APP_NAME} Helper.app" \ 54 "${SRC_APP_NAME} Helper.app" \
55 "crash_inspector" \ 55 "crash_inspector" \
56 "crash_report_sender.app" \ 56 "crash_report_sender.app" \
57 "ffmpegsumo.so" \ 57 "ffmpegsumo.so" \
58 "libplugin_carbon_interpose.dylib" ; do 58 "libplugin_carbon_interpose.dylib" \
59 "remoting_host_plugin.plugin" ; do
59 # SRC_STEM is the name of the file within the DWARF directory of the .dSYM 60 # SRC_STEM is the name of the file within the DWARF directory of the .dSYM
60 # bundle, which comes from the on-disk name of an executable or dylib within 61 # bundle, which comes from the on-disk name of an executable or dylib within
61 # its enclosing .app or .framework bundle. This is the bundle name without 62 # its enclosing .app, .framework or .plugin bundle. This is the bundle name
62 # .app or .framework appended. For non-bundled types, the stem is just the 63 # without .app, .framework or .plugin appended. For non-bundled types, the
63 # name of the singular file on disk. 64 # stem is just the name of the singular file on disk.
64 SRC_STEM=$(echo "${SRC_NAME}" | sed -Ee 's/^(.*)\.(app|framework)$/\1/') 65 SRC_STEM=$(echo "${SRC_NAME}" | sed -Ee 's/\.(app|framework|plugin)$//')
Lambros 2011/08/04 02:20:05 Simplified sed so it still fits on same line :)
65 DSYM_NAME="${SRC_NAME}.dSYM" 66 DSYM_NAME="${SRC_NAME}.dSYM"
66 DSYM_PATH="${BUILT_PRODUCTS_DIR}/${DSYM_NAME}" 67 DSYM_PATH="${BUILT_PRODUCTS_DIR}/${DSYM_NAME}"
67 DWARF_PATH="${DSYM_PATH}/Contents/Resources/DWARF/${SRC_STEM}" 68 DWARF_PATH="${DSYM_PATH}/Contents/Resources/DWARF/${SRC_STEM}"
68 BPAD_SYM_NAME="${SRC_NAME}-${FULL_VERSION}-${ARCH}.breakpad" 69 BPAD_SYM_NAME="${SRC_NAME}-${FULL_VERSION}-${ARCH}.breakpad"
69 BPAD_SYM_PATH="${BUILT_PRODUCTS_DIR}/${BPAD_SYM_NAME}" 70 BPAD_SYM_PATH="${BUILT_PRODUCTS_DIR}/${BPAD_SYM_NAME}"
70 71
71 # Only run dump_syms if the file has changed since the last dump. 72 # Only run dump_syms if the file has changed since the last dump.
72 if [ "${DWARF_PATH}" -nt "${BPAD_SYM_PATH}" ] ; then 73 if [ "${DWARF_PATH}" -nt "${BPAD_SYM_PATH}" ] ; then
73 "${BREAKPAD_DUMP_SYMS}" -a "${ARCH}" "${DWARF_PATH}" > "${BPAD_SYM_PATH}" 74 "${BREAKPAD_DUMP_SYMS}" -a "${ARCH}" "${DWARF_PATH}" > "${BPAD_SYM_PATH}"
74 fi 75 fi
75 76
76 # Remove the .dSYM archive if the file has changed since the archive was 77 # Remove the .dSYM archive if the file has changed since the archive was
77 # last generated. This will cause a new .dSYM archive to be created. 78 # last generated. This will cause a new .dSYM archive to be created.
78 if [ "${DWARF_PATH}" -nt "${DSYM_TAR_PATH}" ] ; then 79 if [ "${DWARF_PATH}" -nt "${DSYM_TAR_PATH}" ] ; then
79 rm -f "${DSYM_TAR_PATH}" 80 rm -f "${DSYM_TAR_PATH}"
80 fi 81 fi
81 82
82 # Push the .dSYM bundle onto the DSYMS array so that it will be included in 83 # Push the .dSYM bundle onto the DSYMS array so that it will be included in
83 # the .dSYM archive if a new one is needed 84 # the .dSYM archive if a new one is needed
84 DSYMS[${#DSYMS[@]}]="${DSYM_NAME}" 85 DSYMS[${#DSYMS[@]}]="${DSYM_NAME}"
85 done 86 done
86 87
87 # Create the archive of .dSYM bundles. 88 # Create the archive of .dSYM bundles.
88 if [ ! -e "${DSYM_TAR_PATH}" ] ; then 89 if [ ! -e "${DSYM_TAR_PATH}" ] ; then
89 # Change directory so that absolute paths aren't included in the archive. 90 # Change directory so that absolute paths aren't included in the archive.
90 (cd "${BUILT_PRODUCTS_DIR}" && 91 (cd "${BUILT_PRODUCTS_DIR}" &&
91 tar -jcf "${DSYM_TAR_PATH}" "${DSYMS[@]}") 92 tar -jcf "${DSYM_TAR_PATH}" "${DSYMS[@]}")
92 fi 93 fi
OLDNEW
« chrome/chrome_exe.gypi ('K') | « chrome/chrome_exe.gypi ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698