2014-01-03 05:27:40 +08:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# apitrace
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-12-07 08:06:05 +08:00
|
|
|
APITRACE_VERSION = 9.0
|
2014-01-03 05:27:40 +08:00
|
|
|
APITRACE_SITE = $(call github,apitrace,apitrace,$(APITRACE_VERSION))
|
|
|
|
APITRACE_LICENSE = MIT
|
|
|
|
APITRACE_LICENSE_FILES = LICENSE
|
|
|
|
|
2019-12-14 19:38:16 +08:00
|
|
|
APITRACE_DEPENDENCIES = host-python3 libpng
|
2019-12-07 08:06:05 +08: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-03 05:27:40 +08:00
|
|
|
|
|
|
|
# Gui was never tested, so we prefer to explicitly disable it
|
2014-09-28 03:32:44 +08:00
|
|
|
APITRACE_CONF_OPTS += -DENABLE_GUI=false
|
2014-01-03 05:27:40 +08:00
|
|
|
|
2020-01-01 03:59:22 +08: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-03 05:27:40 +08:00
|
|
|
$(eval $(cmake-package))
|