2014-01-02 22:27:40 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# apitrace
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-07-17 16:50:37 +02:00
|
|
|
APITRACE_VERSION = 10.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
|
2020-06-10 18:16:01 +02:00
|
|
|
# CMakeLists.txt sets CMAKE_CXX_FLAGS_<BUILD_TYPE> depending on
|
|
|
|
# BUILD_TYPE, and this comes after the generic CMAKE_CXX_FLAGS.
|
|
|
|
# Override CMAKE_BUILD_TYPE so no overrides are applied.
|
|
|
|
APITRACE_CONF_OPTS += -DCMAKE_BUILD_TYPE=Buildroot
|
2019-12-31 20:59:22 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
|
|
|
# This works around Apitrace itself build failure
|
|
|
|
APITRACE_CXXFLAGS += -O0
|
|
|
|
endif
|
|
|
|
|
2022-01-29 19:34:26 +01:00
|
|
|
# m68k needs 32-bit offsets in switch tables to build
|
|
|
|
ifeq ($(BR2_m68k),y)
|
|
|
|
APITRACE_CXXFLAGS += -mlong-jump-table-offsets
|
|
|
|
endif
|
|
|
|
|
2019-12-31 20:59:22 +01:00
|
|
|
APITRACE_CONF_OPTS += \
|
|
|
|
-DCMAKE_C_FLAGS="$(APITRACE_CFLAGS)" \
|
|
|
|
-DCMAKE_CXX_FLAGS="$(APITRACE_CXXFLAGS)"
|
|
|
|
|
2014-01-02 22:27:40 +01:00
|
|
|
$(eval $(cmake-package))
|