2014-06-25 15:16:13 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# google-breakpad
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-11-27 17:16:40 +01:00
|
|
|
GOOGLE_BREAKPAD_VERSION = 7515ab13768c7edc09f0f2ec2354dc6c928239a6
|
2016-11-27 17:16:39 +01:00
|
|
|
GOOGLE_BREAKPAD_SITE = https://chromium.googlesource.com/breakpad/breakpad
|
|
|
|
GOOGLE_BREAKPAD_SITE_METHOD = git
|
2014-09-27 21:32:44 +02:00
|
|
|
GOOGLE_BREAKPAD_CONF_OPTS = --disable-processor --disable-tools
|
2014-06-25 15:16:13 +02:00
|
|
|
# Only a static library is installed
|
|
|
|
GOOGLE_BREAKPAD_INSTALL_TARGET = NO
|
|
|
|
GOOGLE_BREAKPAD_INSTALL_STAGING = YES
|
2017-03-30 15:43:38 +02:00
|
|
|
GOOGLE_BREAKPAD_LICENSE = BSD-3-Clause
|
2014-06-25 15:16:13 +02:00
|
|
|
GOOGLE_BREAKPAD_LICENSE_FILES = LICENSE
|
2016-11-27 17:16:39 +01:00
|
|
|
GOOGLE_BREAKPAD_DEPENDENCIES = host-google-breakpad linux-syscall-support
|
|
|
|
|
2017-04-05 00:50:09 +02:00
|
|
|
HOST_GOOGLE_BREAKPAD_DEPENDENCIES = host-linux-syscall-support
|
2016-11-27 17:16:39 +01:00
|
|
|
|
|
|
|
# Avoid using depot-tools to download this file.
|
|
|
|
define HOST_GOOGLE_BREAKPAD_LSS
|
|
|
|
$(INSTALL) -D -m 0644 \
|
|
|
|
$(HOST_DIR)/usr/include/linux_syscall_support.h \
|
|
|
|
$(@D)/src/third_party/lss/linux_syscall_support.h
|
|
|
|
endef
|
|
|
|
HOST_GOOGLE_BREAKPAD_POST_EXTRACT_HOOKS += HOST_GOOGLE_BREAKPAD_LSS
|
|
|
|
|
|
|
|
define GOOGLE_BREAKPAD_LSS
|
|
|
|
$(INSTALL) -D -m 0644 \
|
|
|
|
$(STAGING_DIR)/usr/include/linux_syscall_support.h \
|
|
|
|
$(@D)/src/third_party/lss/linux_syscall_support.h
|
|
|
|
endef
|
|
|
|
GOOGLE_BREAKPAD_POST_EXTRACT_HOOKS += GOOGLE_BREAKPAD_LSS
|
2016-06-22 21:07:37 +02:00
|
|
|
|
2014-07-31 22:08:55 +02:00
|
|
|
define GOOGLE_BREAKPAD_EXTRACT_SYMBOLS
|
|
|
|
$(EXTRA_ENV) package/google-breakpad/gen-syms.sh $(STAGING_DIR) \
|
|
|
|
$(TARGET_DIR) $(call qstrip,$(BR2_GOOGLE_BREAKPAD_INCLUDE_FILES))
|
|
|
|
endef
|
2016-06-22 21:07:37 +02:00
|
|
|
GOOGLE_BREAKPAD_TARGET_FINALIZE_HOOKS += GOOGLE_BREAKPAD_EXTRACT_SYMBOLS
|
2014-07-31 22:08:55 +02:00
|
|
|
|
2014-06-25 15:16:13 +02:00
|
|
|
$(eval $(autotools-package))
|
|
|
|
$(eval $(host-autotools-package))
|