Generate breakpad symbols

When BREAKPAD_GENERATE_SYMBOLS is set to true, generate breakpad
symbols for binaries.

Bug: 23900817
Change-Id: I7b992d819350f4f80df5868d16f13016502dfca0
This commit is contained in:
Steve Fung
2015-09-24 01:40:52 -07:00
parent 964f06b178
commit cb2e67fdb7
2 changed files with 21 additions and 0 deletions

View File

@@ -86,6 +86,20 @@ $(symbolic_output) : $(symbolic_input) | $(ACP)
@echo "target Symbolic: $(PRIVATE_MODULE) ($@)"
$(copy-file-to-target)
###########################################################
## Store breakpad symbols
###########################################################
ifeq ($(BREAKPAD_GENERATE_SYMBOLS),true)
my_breakpad_path := $(PRODUCT_OUT)/breakpad/$(patsubst $(PRODUCT_OUT)/%,%,$(my_module_path))
breakpad_input := $(relocation_packer_output)
breakpad_output := $(my_breakpad_path)/$(my_installed_module_stem).sym
$(breakpad_output) : $(breakpad_input) | $(BREAKPAD_DUMP_SYMS)
@echo "target breakpad: $(PRIVATE_MODULE) ($@)"
@mkdir -p $(dir $@)
$(hide) $(BREAKPAD_DUMP_SYMS) -c $< > $@
$(LOCAL_BUILT_MODULE) : $(breakpad_output)
endif
###########################################################
## Strip
@@ -143,5 +157,6 @@ endif # my_strip_module
$(cleantarget): PRIVATE_CLEAN_FILES += \
$(linked_module) \
$(breakpad_output) \
$(symbolic_output) \
$(strip_output)