summaryrefslogtreecommitdiff
path: root/indra/newview/CMakeLists.txt
diff options
context:
space:
mode:
authorRoxie Linden <roxie@lindenlab.com>2024-08-06 18:41:46 -0700
committerRoxie Linden <roxie@lindenlab.com>2024-08-06 18:41:46 -0700
commitece9cb8022d1c889bfd02ce52f0dd470460d5a21 (patch)
tree721d6540d4b6bed656a79872a966403d538bf09c /indra/newview/CMakeLists.txt
parentc52c25e10db2b86a70929793a5d723c012a37671 (diff)
Build an xcarchive for mac symbol upload.
Diffstat (limited to 'indra/newview/CMakeLists.txt')
-rw-r--r--indra/newview/CMakeLists.txt40
1 files changed, 16 insertions, 24 deletions
diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt
index 8ff96f0f3b..000f2e2684 100644
--- a/indra/newview/CMakeLists.txt
+++ b/indra/newview/CMakeLists.txt
@@ -2085,8 +2085,8 @@ if (DARWIN)
set(VIEWER_APP_BUNDLE "${CMAKE_CURRENT_BINARY_DIR}/$<IF:$<BOOL:${LL_GENERATOR_IS_MULTI_CONFIG}>,$<CONFIG>,>/${product}.app")
set(VIEWER_APP_EXE "${VIEWER_APP_BUNDLE}/Contents/MacOS/${product}")
- set(VIEWER_APP_DSYM "${VIEWER_APP_EXE}.dSYM")
set(VIEWER_APP_SYMBOLS_ARCHIVE "${VIEWER_APP_BUNDLE}/../${product}.sym.tar.gz")
+ set(VIEWER_APP_XCARCHIVE "${SYMBOLS_STAGING_DIR}/${VIEWER_CHANNEL}.xcarchive.zip")
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/Info-SecondLife.plist"
@@ -2191,32 +2191,24 @@ if (PACKAGE AND (RELEASE_CRASH_REPORTING OR NON_RELEASE_CRASH_REPORTING) AND VIE
add_dependencies(generate_symbols ${VIEWER_BINARY_NAME})
endif (WINDOWS)
if (DARWIN)
- set_target_properties(${VIEWER_BINARY_NAME}
+ # we only need an xcarchive with dSYMs (including the application)
+ set_target_properties(${VIEWER_BINARY_NAME}
PROPERTIES
XCODE_ATTRIBUTE_DEBUG_INFORMATION_FORMAT "dwarf-with-dsym"
- XCODE_ATTRIBUTE_DWARF_DSYM_FOLDER_PATH "${SYMBOLS_STAGING_DIR}")
- add_custom_command(OUTPUT "${VIEWER_APP_SYMBOLS_ARCHIVE}"
- COMMAND "tar"
- ARGS
- "-cJf"
- "${VIEWER_APP_SYMBOLS_ARCHIVE}"
- "-C"
- "${SYMBOLS_STAGING_DIR}"
- "."
- DEPENDS "${VIEWER_BINARY_NAME}"
- COMMENT "Generating symbols archive for upload to BugSplat"
- )
- # Have to create a stamp file, and depend on it, to force CMake to run
- # the cleanup step.
- add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/dsym.stamp"
- COMMAND rm -rf "${VIEWER_APP_DSYM}"
- COMMAND touch "${CMAKE_CURRENT_BINARY_DIR}/dsym.stamp"
- DEPENDS "${VIEWER_APP_SYMBOLS_ARCHIVE}"
- COMMENT "Cleaning up symbols archive"
- )
+ XCODE_ATTRIBUTE_DWARF_DSYM_FOLDER_PATH "${SYMBOLS_STAGING_DIR}/${product}/dSYMs")
+
+ add_custom_command(OUTPUT "${VIEWER_APP_XCARCHIVE}"
+ COMMAND "zip"
+ ARGS
+ "-r"
+ "${VIEWER_APP_XCARCHIVE}"
+ "${product}"
+ WORKING_DIRECTORY "${SYMBOLS_STAGING_DIR}"
+ DEPENDS "${VIEWER_BINARY_NAME}" llwebrtc
+ COMMENT "Generating ${VIEWER_APP_XCARCHIVE} for upload to BugSplat"
+ )
add_custom_target(generate_symbols DEPENDS
- "${VIEWER_APP_SYMBOLS_ARCHIVE}"
- "${CMAKE_CURRENT_BINARY_DIR}/dsym.stamp"
+ "${VIEWER_APP_XCARCHIVE}"
)
endif (DARWIN)
if (LINUX)