OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 # identifier (UUID). Produce symbol files for these variant names so that | 156 # identifier (UUID). Produce symbol files for these variant names so that |
157 # the Breakpad symbol server will have something to return for stacks that | 157 # the Breakpad symbol server will have something to return for stacks that |
158 # travel through these modules. | 158 # travel through these modules. |
159 case "${SRC_NAME}" in | 159 case "${SRC_NAME}" in |
160 "${SRC_APP_NAME}.app") | 160 "${SRC_APP_NAME}.app") |
161 # Google Chrome Canary is produced during packaging. | 161 # Google Chrome Canary is produced during packaging. |
162 redump_syms_variant "${BPAD_SYM_PATH}" "${SRC_STEM}" \ | 162 redump_syms_variant "${BPAD_SYM_PATH}" "${SRC_STEM}" \ |
163 "${SRC_STEM} Canary" "${SRC_STEM} Canary.app" \ | 163 "${SRC_STEM} Canary" "${SRC_STEM} Canary.app" \ |
164 "${ARCH}" | 164 "${ARCH}" |
165 ;; | 165 ;; |
166 | |
167 "${SRC_APP_NAME} Helper.app") | |
168 # Google Chrome Helper EH and Google Chrome Helper NP are produced by | |
169 # build/mac/make_more_helpers.sh. | |
170 redump_syms_variant "${BPAD_SYM_PATH}" "${SRC_STEM}" \ | |
171 "${SRC_STEM} EH" "${SRC_STEM} EH.app" "${ARCH}" | |
172 redump_syms_variant "${BPAD_SYM_PATH}" "${SRC_STEM}" \ | |
173 "${SRC_STEM} NP" "${SRC_STEM} NP.app" "${ARCH}" | |
174 ;; | |
175 esac | 166 esac |
176 done | 167 done |
177 | 168 |
178 # Remove the .dSYM archive if the file has changed since the archive was | 169 # Remove the .dSYM archive if the file has changed since the archive was |
179 # last generated. This will cause a new .dSYM archive to be created. | 170 # last generated. This will cause a new .dSYM archive to be created. |
180 if [ "${DWARF_PATH}" -nt "${DSYM_TAR_PATH}" ] ; then | 171 if [ "${DWARF_PATH}" -nt "${DSYM_TAR_PATH}" ] ; then |
181 rm -f "${DSYM_TAR_PATH}" | 172 rm -f "${DSYM_TAR_PATH}" |
182 fi | 173 fi |
183 | 174 |
184 # Push the .dSYM bundle onto the DSYMS array so that it will be included in | 175 # Push the .dSYM bundle onto the DSYMS array so that it will be included in |
185 # the .dSYM archive if a new one is needed | 176 # the .dSYM archive if a new one is needed |
186 DSYMS[${#DSYMS[@]}]="${DSYM_NAME}" | 177 DSYMS[${#DSYMS[@]}]="${DSYM_NAME}" |
187 done | 178 done |
188 | 179 |
189 # Create the archive of .dSYM bundles. | 180 # Create the archive of .dSYM bundles. |
190 if [ ! -e "${DSYM_TAR_PATH}" ] ; then | 181 if [ ! -e "${DSYM_TAR_PATH}" ] ; then |
191 # Change directory so that absolute paths aren't included in the archive. | 182 # Change directory so that absolute paths aren't included in the archive. |
192 (cd "${BUILT_PRODUCTS_DIR}" && | 183 (cd "${BUILT_PRODUCTS_DIR}" && |
193 tar -jcf "${DSYM_TAR_PATH}" "${DSYMS[@]}") | 184 tar -jcf "${DSYM_TAR_PATH}" "${DSYMS[@]}") |
194 fi | 185 fi |
OLD | NEW |