mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 05:51:45 -09:00
package/libcamera: add lc-compliance test application option
- add lc-compliance test application option (and add proper dependencies on gtest and libevent) Signed-off-by: Peter Seiderer <ps.report@gmx.net> Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
1afea0b11b
commit
a5c8b0bac8
@@ -72,6 +72,24 @@ config BR2_PACKAGE_LIBCAMERA_PIPELINE_VIMC
|
|||||||
help
|
help
|
||||||
Pipeline for the vimc device.
|
Pipeline for the vimc device.
|
||||||
|
|
||||||
|
config BR2_PACKAGE_LIBCAMERA_COMPLIANCE
|
||||||
|
bool "lc-compliance test application"
|
||||||
|
depends on BR2_USE_WCHAR # gtest
|
||||||
|
depends on BR2_TOOLCHAIN_HAS_THREADS # gtest
|
||||||
|
depends on BR2_INSTALL_LIBSTDCPP # gtest
|
||||||
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # gtest
|
||||||
|
depends on BR2_USE_MMU # gtest
|
||||||
|
select BR2_PACKAGE_GTEST
|
||||||
|
select BR2_PACKAGE_LIBEVENT
|
||||||
|
help
|
||||||
|
lc-compliance test application
|
||||||
|
|
||||||
|
comment "lc-compliance test application needs a toolchain w/ C++, wchar, threads, gcc >= 4.9"
|
||||||
|
depends on BR2_USE_MMU
|
||||||
|
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||||
|
!BR2_INSTALL_LIBSTDCPP || \
|
||||||
|
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||||
|
|
||||||
endif # BR2_PACKAGE_LIBCAMERA
|
endif # BR2_PACKAGE_LIBCAMERA
|
||||||
|
|
||||||
comment "libcamera needs a toolchain w/ C++, threads, wchar, dynamic library, gcc >= 7"
|
comment "libcamera needs a toolchain w/ C++, threads, wchar, dynamic library, gcc >= 7"
|
||||||
|
|||||||
@@ -61,6 +61,13 @@ LIBCAMERA_PIPELINES-$(BR2_PACKAGE_LIBCAMERA_PIPELINE_VIMC) += vimc
|
|||||||
|
|
||||||
LIBCAMERA_CONF_OPTS += -Dpipelines=$(subst $(space),$(comma),$(LIBCAMERA_PIPELINES-y))
|
LIBCAMERA_CONF_OPTS += -Dpipelines=$(subst $(space),$(comma),$(LIBCAMERA_PIPELINES-y))
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_LIBCAMERA_COMPLIANCE),y)
|
||||||
|
LIBCAMERA_DEPENDENCIES += gtest libevent
|
||||||
|
LIBCAMERA_CONF_OPTS += -Dlc-compliance=enabled
|
||||||
|
else
|
||||||
|
LIBCAMERA_CONF_OPTS += -Dlc-compliance=disabled
|
||||||
|
endif
|
||||||
|
|
||||||
# gstreamer-video-1.0, gstreamer-allocators-1.0
|
# gstreamer-video-1.0, gstreamer-allocators-1.0
|
||||||
ifeq ($(BR2_PACKAGE_GSTREAMER1)$(BR2_PACKAGE_GST1_PLUGINS_BASE),yy)
|
ifeq ($(BR2_PACKAGE_GSTREAMER1)$(BR2_PACKAGE_GST1_PLUGINS_BASE),yy)
|
||||||
LIBCAMERA_CONF_OPTS += -Dgstreamer=enabled
|
LIBCAMERA_CONF_OPTS += -Dgstreamer=enabled
|
||||||
|
|||||||
Reference in New Issue
Block a user