1config BR2_PACKAGE_LIBVPL_ARCH_SUPPORTS
2	bool
3	default y if BR2_ARCH_IS_64
4	default y if BR2_arm
5
6config BR2_PACKAGE_LIBVPL
7	bool "libvpl"
8	depends on BR2_PACKAGE_LIBVPL_ARCH_SUPPORTS
9	depends on BR2_INSTALL_LIBSTDCPP
10	depends on !BR2_STATIC_LIBS # dlfcn.h
11	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7
12	depends on BR2_TOOLCHAIN_HAS_THREADS
13	select BR2_PACKAGE_WAYLAND_PROTOCOLS if BR2_PACKAGE_WAYLAND
14	# libva support needs a libdrm with intel driver
15	select BR2_PACKAGE_LIBDRM_INTEL if BR2_PACKAGE_LIBVA && \
16		(BR2_i386 || BR2_x86_64) && \
17		BR2_PACKAGE_LIBDRM_HAS_ATOMIC
18	select BR2_PACKAGE_LIBXCB if BR2_PACKAGE_XORG7
19	select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7
20	help
21	  oneAPI Video Processing Library (oneVPL) dispatcher,
22	  tools, and examples
23
24	  https://github.com/oneapi-src/oneVPL
25
26comment "libvpl needs a toolchain w/ dynamic library, gcc >= 7, C++, threads"
27	depends on BR2_PACKAGE_LIBVPL_ARCH_SUPPORTS
28	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_7 || \
29		!BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
30