1
0
Fork 0

move symbol server to the build.sh

This commit is contained in:
Wilfried Goesgens 2017-02-15 15:55:20 +01:00
parent 43692a97a2
commit b6906e840f
2 changed files with 14 additions and 10 deletions

View File

@ -243,6 +243,13 @@ while [ $# -gt 0 ]; do
CONFIGURE_OPTIONS="${CONFIGURE_OPTIONS} -DV8_TARGET_ARCHS=Release"
;;
--symsrv)
shift
SYMSRV=1
SYMSRVDIR=$1
shift
;;
--gold)
GOLD=1
shift
@ -596,6 +603,13 @@ if test -n "${TARGET_DIR}"; then
if [ -n "$CPACK" -a -n "${TARGET_DIR}" ]; then
${PACKAGE_MAKE} copy_packages || exit 1
${PACKAGE_MAKE} clean_packages || exit 1
if test "${SYMSRV}" -eq 1; then
echo "Storing symbols:"
export LIST="`pwd`/pdbfiles_list.txt"
find `pwd`/bin/ -name *pdb |grep -v Release |grep -v Debug |grep -v 3rdParty |grep -v vc120.pdb |cygpath -f - --windows > ${LIST}
symstore.exe add /f @`cygpath --windows ${LIST}` /s "`cygpath --windows ${SYMSRVDIR}`" /t ArangoDB /compress
fi
else
# we re-use a generic cpack tarball:
${PACKAGE_MAKE} TGZ_package

View File

@ -115,13 +115,3 @@ add_custom_target(remove_packages
list(APPEND CLEAN_PACKAGES_LIST remove_packages)
# set(SYMSRVDIR $ENV{SYMSRV})
# if (NOT ${SYMSRVDIR} STREQUAL "")
#
# message("Storing symbols:")
# include(../../arangod/CMakeList.txt)
# add_custom_command(TARGET ${BIN_ARANGOD} POST_BUILD
# WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
# COMMAND "find -name \\*pdb |grep -v Release |grep -v Debug |grep -v 3rdParty |grep -v vc120.pdb > pdbfiles_list.txt"
# COMMAND "symstore.exe add /f '@${PROJECT_BINARY_DIR}/pdbfiles_list.txt' /s '${SYMSRVDIR}' /t ArangoDB /compress")
# endif()