kumquat-buildroot/package/onevpl/onevpl.mk
Bernd Kuhls 9677f3a897 package/onevpl: disable tools
The tools are not needed at runtime, as they are mosty examples, or as
testing tools, the latter having additional dependencies.

Fixes:
http://autobuild.buildroot.net/results/059/059a8581fb809488ad6fa3183874395ebf3f0926/

This package is not part of any older buildroot release, no backport
necessary.

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2023-09-28 22:32:45 +02:00

45 lines
1.0 KiB
Makefile

################################################################################
#
# onevpl
#
################################################################################
ONEVPL_VERSION = 2023.3.1
ONEVPL_SITE = $(call github,oneapi-src,oneVPL,v$(ONEVPL_VERSION))
ONEVPL_LICENSE = MIT
ONEVPL_LICENSE_FILES = LICENSE
ONEVPL_INSTALL_STAGING = YES
ONEVPL_DEPENDENCIES = host-pkgconf
ONEVPL_CONF_OPTS = \
-DBUILD_TOOLS=OFF \
-DINSTALL_EXAMPLE_CODE=OFF
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
ONEVPL_CONF_OPTS += \
-DCMAKE_CXX_FLAGS="-latomic"
endif
ifeq ($(BR2_PACKAGE_LIBVA),y)
ONEVPL_CONF_OPTS += -DENABLE_VA=ON
ONEVPL_DEPENDENCIES += libva
else
ONEVPL_CONF_OPTS += -DENABLE_VA=OFF
endif
ifeq ($(BR2_PACKAGE_WAYLAND),y)
ONEVPL_CONF_OPTS += -DENABLE_WAYLAND=ON
ONEVPL_DEPENDENCIES += wayland wayland-protocols
else
ONEVPL_CONF_OPTS += -DENABLE_WAYLAND=OFF
endif
ifeq ($(BR2_PACKAGE_XORG7),y)
ONEVPL_CONF_OPTS += -DENABLE_X11=ON
ONEVPL_DEPENDENCIES += libxcb xlib_libX11
else
ONEVPL_CONF_OPTS += -DENABLE_X11=OFF
endif
$(eval $(cmake-package))