]> Git Repo - buildroot-mgba.git/commitdiff
package/libcamera: add lc-compliance test application option
authorPeter Seiderer <[email protected]>
Fri, 22 Oct 2021 19:07:02 +0000 (21:07 +0200)
committerThomas Petazzoni <[email protected]>
Sun, 24 Oct 2021 13:58:59 +0000 (15:58 +0200)
- add lc-compliance test application option (and add proper dependencies
  on gtest and libevent)

Signed-off-by: Peter Seiderer <[email protected]>
Acked-by: Kieran Bingham <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
package/libcamera/Config.in
package/libcamera/libcamera.mk

index b7f0e5b05dc0320f88a402753717cea821020be4..23a0040abf680ac4a07dce36b773b9c329f44113 100644 (file)
@@ -72,6 +72,24 @@ config BR2_PACKAGE_LIBCAMERA_PIPELINE_VIMC
        help
          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
 
 comment "libcamera needs a toolchain w/ C++, threads, wchar, dynamic library, gcc >= 7"
index 8ab95fb42ab18a85af13e6fdcf764e38ef3d31e9..5a5f2800b9291581a161b358337386ec27675727 100644 (file)
@@ -61,6 +61,13 @@ LIBCAMERA_PIPELINES-$(BR2_PACKAGE_LIBCAMERA_PIPELINE_VIMC) += vimc
 
 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
 ifeq ($(BR2_PACKAGE_GSTREAMER1)$(BR2_PACKAGE_GST1_PLUGINS_BASE),yy)
 LIBCAMERA_CONF_OPTS += -Dgstreamer=enabled
This page took 0.06646 seconds and 4 git commands to generate.