bug 532925 - implement make buildsymbols for targets without crash reporter support in order to enable symbol server support for Windows Mobile r=ted
authorBrad Lassey <blassey@mozilla.com>
Thu, 14 Jan 2010 09:52:33 -0500
changeset 37191 8bd09155ca14ff19e1f04bbc9ecbac6ea1e7ec37
parent 37190 95b290937988ae4b9d51c123288dfba47628b4a4
child 37193 739d8699dce6251d378381d624f928e9988df75e
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs532925
milestone1.9.3a1pre
bug 532925 - implement make buildsymbols for targets without crash reporter support in order to enable symbol server support for Windows Mobile r=ted
Makefile.in
--- a/Makefile.in
+++ b/Makefile.in
@@ -184,16 +184,31 @@ ifdef MOZ_CRASHREPORTER
 	  $(DUMP_SYMS_BIN)                                                \
 	  $(DIST)/crashreporter-symbols                                   \
 	  $(MAKE_SYM_STORE_PATH) >                                        \
 	  $(DIST)/crashreporter-symbols/$(SYMBOL_INDEX_NAME)
 	echo packing symbols
 	$(NSINSTALL) -D $(DIST)/$(PKG_PATH)
 	cd $(DIST)/crashreporter-symbols && \
           zip -r9D "../$(PKG_PATH)$(SYMBOL_ARCHIVE_BASENAME).zip" .
+else
+ifdef WINCE
+ifdef SYMBOLSTORE_PATH
+	echo building symbol store with symstore.exe
+	$(RM) -rf $(DIST)/symbols
+	$(RM) -f "$(DIST)/$(SYMBOL_ARCHIVE_BASENAME).zip"
+	$(NSINSTALL) -D $(DIST)/symbols
+	$(SYMBOLSTORE_PATH) add -r -f "$(subst /,\,$(shell pwd -W))\*.PDB" \
+	  -s $(DIST)/symbols/ -t "$(MOZ_PKG_APPNAME)" -v "$(MOZ_PKG_VERSION)"
+	echo packing symbols
+	$(NSINSTALL) -D $(DIST)/$(PKG_PATH)
+	cd $(DIST)/symbols && \
+	  zip -r9D "../$(PKG_PATH)$(SYMBOL_ARCHIVE_BASENAME).zip" .
+endif # SYMBOLSTORE_PATH
+endif # WINCE
 endif # MOZ_CRASHREPORTER
 
 uploadsymbols:
 ifdef MOZ_CRASHREPORTER
 	$(SHELL) $(topsrcdir)/toolkit/crashreporter/tools/upload_symbols.sh "$(DIST)/$(PKG_PATH)$(SYMBOL_ARCHIVE_BASENAME).zip"
 endif
 
 ifneq (,$(wildcard $(DIST)/bin/application.ini))