diff options
Diffstat (limited to 'build/mac/dump_app_syms')
-rwxr-xr-x | build/mac/dump_app_syms | 19 |
1 files changed, 12 insertions, 7 deletions
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. |