mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 16:01:54 -09:00
We're bumping from version 10 to 13. Version 11 doesn't really have release notes. Version 12: https://github.com/apitrace/apitrace/releases/tag/12.0 Version 13: https://github.com/apitrace/apitrace/releases/tag/13.0 Patch 0001-thirdparty-libbacktrace-backtrace-h-include-config.h.patch no longer makes sense: config.h no longer exists, and building with musl works fine without it. Both patches 0002 and 0003 were backport from upstream, so they can be dropped. We must switch from downloaded the auto-generated Github tarball to fetching using Git, as fetching submodules is now mandatory to get some bundled thirdparty libraries (yerk). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Julien Olivain <ju.o@free.fr>
56 lines
1.5 KiB
Makefile
56 lines
1.5 KiB
Makefile
################################################################################
|
|
#
|
|
# apitrace
|
|
#
|
|
################################################################################
|
|
|
|
APITRACE_VERSION = 13.0
|
|
APITRACE_SITE = https://github.com/apitrace/apitrace.git
|
|
APITRACE_SITE_METHOD = git
|
|
APITRACE_GIT_SUBMODULES = YES
|
|
APITRACE_LICENSE = MIT
|
|
APITRACE_LICENSE_FILES = LICENSE
|
|
APITRACE_CONF_OPTS = \
|
|
-DBUILD_TESTING=OFF \
|
|
-DENABLE_TESTS=OFF
|
|
|
|
APITRACE_DEPENDENCIES = host-python3 libpng
|
|
|
|
ifeq ($(BR2_PACKAGE_XORG7),y)
|
|
APITRACE_DEPENDENCIES += xlib_libX11
|
|
APITRACE_CONF_OPTS += -DENABLE_X11=ON
|
|
else
|
|
APITRACE_CONF_OPTS += -DENABLE_X11=OFF
|
|
endif
|
|
|
|
# Gui was never tested, so we prefer to explicitly disable it
|
|
APITRACE_CONF_OPTS += -DENABLE_GUI=false
|
|
|
|
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
|
|
# 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
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
|
# This works around Apitrace itself build failure
|
|
APITRACE_CXXFLAGS += -O0
|
|
endif
|
|
|
|
# m68k needs 32-bit offsets in switch tables to build
|
|
ifeq ($(BR2_m68k),y)
|
|
APITRACE_CXXFLAGS += -mlong-jump-table-offsets
|
|
endif
|
|
|
|
APITRACE_CONF_OPTS += \
|
|
-DCMAKE_C_FLAGS="$(APITRACE_CFLAGS)" \
|
|
-DCMAKE_CXX_FLAGS="$(APITRACE_CXXFLAGS)"
|
|
|
|
$(eval $(cmake-package))
|