package/libcamera: add optional lttng-libust dependency
authorPeter Seiderer <ps.report@gmx.net>
Tue, 17 Nov 2020 22:34:36 +0000 (23:34 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 19 Jan 2021 21:57:51 +0000 (22:57 +0100)
Add optional lttng-libust support and enable tracing support
in case.

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libcamera/libcamera.mk

index aed5c6e83c942e15a820220a68c75d9a06794917..ae074c2893c40bb95063187d80de26253c661f0e 100644 (file)
@@ -18,7 +18,6 @@ LIBCAMERA_CONF_OPTS = \
        -Dandroid=disabled \
        -Ddocumentation=disabled \
        -Dtest=false \
-       -Dtracing=disabled \
        -Dwerror=false
 LIBCAMERA_INSTALL_STAGING = YES
 LIBCAMERA_LICENSE = \
@@ -86,4 +85,11 @@ ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
 LIBCAMERA_DEPENDENCIES += udev
 endif
 
+ifeq ($(BR2_PACKAGE_LTTNG_LIBUST),y)
+LIBCAMERA_CONF_OPTS += -Dtracing=enabled
+LIBCAMERA_DEPENDENCIES += lttng-libust
+else
+LIBCAMERA_CONF_OPTS += -Dtracing=disabled
+endif
+
 $(eval $(meson-package))