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

Side by Side Diff: build/mac/dump_app_syms

Issue 160538: Move the entire application into a dylib (framework) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « build/common.gypi ('k') | build/mac/strip_save_dsym » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 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 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 # Make sure we got the header to write into passed to us 7 # Make sure we got the header to write into passed to us
8 if [ $# -ne 1 ]; then 8 if [ $# -ne 1 ]; then
9 echo "error: missing branding as an argument" >&2 9 echo "error: missing branding as an argument" >&2
10 exit 1 10 exit 1
(...skipping 12 matching lines...) Expand all
23 BRAND_SCRIPT="${TOP}/build/branding_value.sh" 23 BRAND_SCRIPT="${TOP}/build/branding_value.sh"
24 SRC_APP_NAME=$("${BRAND_SCRIPT}" "${BUILD_BRANDING}" PRODUCT_FULLNAME) 24 SRC_APP_NAME=$("${BRAND_SCRIPT}" "${BUILD_BRANDING}" PRODUCT_FULLNAME)
25 . "${TOP}/chrome/VERSION" 25 . "${TOP}/chrome/VERSION"
26 26
27 BREAKPAD_DUMP_SYMS="${BUILT_PRODUCTS_DIR}/dump_syms" 27 BREAKPAD_DUMP_SYMS="${BUILT_PRODUCTS_DIR}/dump_syms"
28 BREAKPAD_PRODUCT_ID="${BUILD_BRANDING}_Mac" 28 BREAKPAD_PRODUCT_ID="${BUILD_BRANDING}_Mac"
29 FULL_VERSION="${MAJOR}.${MINOR}.${BUILD}.${PATCH}" 29 FULL_VERSION="${MAJOR}.${MINOR}.${BUILD}.${PATCH}"
30 SRC_APP_PATH="${BUILT_PRODUCTS_DIR}/${SRC_APP_NAME}.app" 30 SRC_APP_PATH="${BUILT_PRODUCTS_DIR}/${SRC_APP_NAME}.app"
31 # Created by the build/mac/strip_from_xcode script. 31 # Created by the build/mac/strip_from_xcode script.
32 UNSTRIPPED_APP="${SRC_APP_PATH}.dSYM/Contents/Resources/DWARF/${SRC_APP_NAME}" 32 UNSTRIPPED_APP="${SRC_APP_PATH}.dSYM/Contents/Resources/DWARF/${SRC_APP_NAME}"
33 SYMBOL_FILE="${BUILT_PRODUCTS_DIR}/${SRC_APP_NAME}-${FULL_VERSION}-i386.breakpad " 33 APP_SYMBOL_FILE="${BUILT_PRODUCTS_DIR}/${SRC_APP_NAME}-${FULL_VERSION}-i386.brea kpad"
34 34
35 # Only run dump_syms if the file has changed since we last did a dump. 35 # Only run dump_syms if the file has changed since we last did a dump.
36 if [ "${UNSTRIPPED_APP}" -nt "${SYMBOL_FILE}" ] ; then 36 if [ "${UNSTRIPPED_APP}" -nt "${APP_SYMBOL_FILE}" ] ; then
37 "${BREAKPAD_DUMP_SYMS}" -a i386 "${UNSTRIPPED_APP}" > "${SYMBOL_FILE}" 37 "${BREAKPAD_DUMP_SYMS}" -a i386 "${UNSTRIPPED_APP}" > "${APP_SYMBOL_FILE}"
38 fi 38 fi
39 APP_DSYM_NAME="${SRC_APP_NAME}.app.dSYM"
39 40
40 DSYM_NAME="${SRC_APP_NAME}.app.dSYM" 41 # Do the same thing for chrome_dll.
41 DSYM_TAR_PATH="${BUILT_PRODUCTS_DIR}/${DSYM_NAME}.tar.bz2" 42
43 SRC_DYLIB_NAME="${SRC_APP_NAME} Framework"
44 SRC_DYLIB_PATH="${BUILT_PRODUCTS_DIR}/${SRC_DYLIB_NAME}.framework"
45 UNSTRIPPED_DYLIB="${SRC_DYLIB_PATH}.dSYM/Contents/Resources/DWARF/${SRC_DYLIB_NA ME}"
46 DYLIB_SYMBOL_FILE="${BUILT_PRODUCTS_DIR}/${SRC_DYLIB_NAME}-${FULL_VERSION}-i386. breakpad"
47 if [ "${UNSTRIPPED_DYLIB}" -nt "${DYLIB_SYMBOL_FILE}" ] ; then
48 "${BREAKPAD_DUMP_SYMS}" -a i386 "${UNSTRIPPED_DYLIB}" > "${DYLIB_SYMBOL_FILE}"
49 fi
50 DYLIB_DSYM_NAME="${SRC_DYLIB_NAME}.framework.dSYM"
51
52 DSYM_TAR_PATH="${BUILT_PRODUCTS_DIR}/${APP_DSYM_NAME}.tar.bz2"
42 53
43 # Make a .tar.bz2 out of the .dSYM 54 # Make a .tar.bz2 out of the .dSYM
44 if [ "${BUILT_PRODUCTS_DIR}/${DSYM_NAME}" -nt "${DSYM_TAR_PATH}" ] ; then 55 if [ "${BUILT_PRODUCTS_DIR}/${APP_DSYM_NAME}" -nt "${DSYM_TAR_PATH}" ] ||
45 # we do a cd so when building the tar, we don't include the build dir in the 56 [ "${BUILT_PRODUCTS_DIR}/${DYLIB_DSYM_NAME}" -nt "${DSYM_TAR_PATH}" ] ; then
46 # tar paths. 57 # Change directory so when building the tar, we don't include the build dir
47 (cd "${BUILT_PRODUCTS_DIR}" && tar -jcf "${DSYM_TAR_PATH}" "${DSYM_NAME}") 58 # in the tar paths.
59 (cd "${BUILT_PRODUCTS_DIR}" &&
60 tar -jcf "${DSYM_TAR_PATH}" "${APP_DSYM_NAME}" "${DYLIB_DSYM_NAME}")
48 fi 61 fi
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | build/mac/strip_save_dsym » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698