am fdec88c9: Merge "Generate breakpad symbols"
* commit 'fdec88c9726687f98448ccff7670bc843f77bf66': Generate breakpad symbols
This commit is contained in:
commit
f3ec82729a
|
@ -428,6 +428,12 @@ YASM := prebuilts/misc/$(BUILD_OS)-$(HOST_PREBUILT_ARCH)/yasm/yasm
|
|||
DOXYGEN:= doxygen
|
||||
AAPT := $(HOST_OUT_EXECUTABLES)/aapt$(HOST_EXECUTABLE_SUFFIX)
|
||||
AIDL := $(HOST_OUT_EXECUTABLES)/aidl$(HOST_EXECUTABLE_SUFFIX)
|
||||
ifeq ($(HOST_OS),linux)
|
||||
BREAKPAD_DUMP_SYMS := $(HOST_OUT_EXECUTABLES)/dump_syms
|
||||
else
|
||||
# For non-supported hosts, do not generate breakpad symbols.
|
||||
BREAKPAD_GENERATE_SYMBOLS := false
|
||||
endif
|
||||
PROTOC := $(HOST_OUT_EXECUTABLES)/aprotoc$(HOST_EXECUTABLE_SUFFIX)
|
||||
DBUS_GENERATOR := $(HOST_OUT_EXECUTABLES)/dbus-binding-generator
|
||||
SIGNAPK_JAR := $(HOST_OUT_JAVA_LIBRARIES)/signapk$(COMMON_JAVA_PACKAGE_SUFFIX)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue