2014-01-02 22:27:40 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# apitrace
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-12-07 01:06:05 +01:00
|
|
|
APITRACE_VERSION = 9.0
|
2014-01-02 22:27:40 +01:00
|
|
|
APITRACE_SITE = $(call github,apitrace,apitrace,$(APITRACE_VERSION))
|
|
|
|
APITRACE_LICENSE = MIT
|
|
|
|
APITRACE_LICENSE_FILES = LICENSE
|
|
|
|
|
2019-12-14 12:38:16 +01:00
|
|
|
APITRACE_DEPENDENCIES = host-python3 libpng
|
2019-12-07 01:06:05 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XORG7),y)
|
|
|
|
APITRACE_DEPENDENCIES += xlib_libX11
|
|
|
|
APITRACE_CONF_OPTS += -DENABLE_X11=ON
|
|
|
|
else
|
|
|
|
APITRACE_CONF_OPTS += -DENABLE_X11=OFF
|
|
|
|
endif
|
2014-01-02 22:27:40 +01:00
|
|
|
|
|
|
|
# Gui was never tested, so we prefer to explicitly disable it
|
2014-09-27 21:32:44 +02:00
|
|
|
APITRACE_CONF_OPTS += -DENABLE_GUI=false
|
2014-01-02 22:27:40 +01:00
|
|
|
|
2019-12-31 20:59:22 +01:00
|
|
|
APITRACE_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
APITRACE_CXXFLAGS = $(TARGET_CXXFLAGS)
|
|
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
|
|
|
|
# This works around embedded Brotli build failure
|
|
|
|
APITRACE_CFLAGS += -O0
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
|
|
|
# This works around Apitrace itself build failure
|
|
|
|
APITRACE_CXXFLAGS += -O0
|
|
|
|
endif
|
|
|
|
|
|
|
|
APITRACE_CONF_OPTS += \
|
|
|
|
-DCMAKE_C_FLAGS="$(APITRACE_CFLAGS)" \
|
|
|
|
-DCMAKE_CXX_FLAGS="$(APITRACE_CXXFLAGS)"
|
|
|
|
|
2014-01-02 22:27:40 +01:00
|
|
|
$(eval $(cmake-package))
|