From a893a5c7756b6b7f3c789012684f1949abd5d9ef Mon Sep 17 00:00:00 2001 From: "mark@chromium.org" Date: Tue, 11 Aug 2009 17:40:03 +0000 Subject: Save debugging symbols for plugin_carbon_interpose.dylib. BUG=18997 TEST=Release build produces plugin_carbon_interpose.dylib-*-i386.breakpad, and Google Chrome.dsym.tar.bz2 contains plugin_carbon_interpose.dylib.dSYM Review URL: http://codereview.chromium.org/164325 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23043 0039d316-1c4b-4281-b951-d872f2087c98 --- build/mac/dump_app_syms | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'build/mac') diff --git a/build/mac/dump_app_syms b/build/mac/dump_app_syms index 130b5a0..ff66732 100755 --- a/build/mac/dump_app_syms +++ b/build/mac/dump_app_syms @@ -49,15 +49,20 @@ DSYM_TAR_PATH="${BUILT_PRODUCTS_DIR}/${SRC_APP_NAME}.dSYM.tar.bz2" declare -a DSYMS -for SRC_BUNDLE in "${SRC_APP_NAME}.app" \ - "${SRC_APP_NAME} Framework.framework" \ - "${SRC_APP_NAME} Helper.app" ; do - SRC_STEM=$(echo "${SRC_BUNDLE}" | sed -Ee 's/^(.*)\..*$/\1/') - SRC_BUNDLE_PATH="${BUILT_PRODUCTS_DIR}/${SRC_BUNDLE}" - DSYM_NAME="${SRC_BUNDLE}.dSYM" +for SRC_NAME in "${SRC_APP_NAME}.app" \ + "${SRC_APP_NAME} Framework.framework" \ + "${SRC_APP_NAME} Helper.app" \ + "plugin_carbon_interpose.dylib" ; do + # SRC_STEM is the name of the file within the DWARF directory of the .dSYM + # bundle, which comes from the on-disk name of an executable or dylib within + # its enclosing .app or .framework bundle. This is the bundle name without + # .app or .framework appended. For non-bundled types, the stem is just the + # name of the singular file on disk. + SRC_STEM=$(echo "${SRC_NAME}" | sed -Ee 's/^(.*)\.(app|framework)$/\1/') + DSYM_NAME="${SRC_NAME}.dSYM" DSYM_PATH="${BUILT_PRODUCTS_DIR}/${DSYM_NAME}" DWARF_PATH="${DSYM_PATH}/Contents/Resources/DWARF/${SRC_STEM}" - BPAD_SYM_NAME="${SRC_STEM}-${FULL_VERSION}-${ARCH}.breakpad" + BPAD_SYM_NAME="${SRC_NAME}-${FULL_VERSION}-${ARCH}.breakpad" BPAD_SYM_PATH="${BUILT_PRODUCTS_DIR}/${BPAD_SYM_NAME}" # Only run dump_syms if the file has changed since the last dump. -- cgit v1.1