2019-04-03 13:29:02 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libcamera
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
LIBCAMERA_SITE = https://git.linuxtv.org/libcamera.git
|
2020-09-04 16:01:29 +02:00
|
|
|
LIBCAMERA_VERSION = e59713c68678f3eb6b6ebe97cabdc88c7042567f
|
2019-04-03 13:29:02 +02:00
|
|
|
LIBCAMERA_SITE_METHOD = git
|
2020-06-16 20:59:50 +02:00
|
|
|
LIBCAMERA_DEPENDENCIES = \
|
|
|
|
host-openssl \
|
|
|
|
host-pkgconf \
|
|
|
|
host-python3-pyyaml \
|
|
|
|
gnutls
|
|
|
|
LIBCAMERA_CONF_OPTS = \
|
|
|
|
-Dandroid=false \
|
|
|
|
-Ddocumentation=false \
|
2020-08-16 12:06:56 +02:00
|
|
|
-Dtest=false \
|
|
|
|
-Dwerror=false
|
2020-07-06 03:09:52 +02:00
|
|
|
LIBCAMERA_INSTALL_STAGING = YES
|
2020-06-16 20:59:50 +02:00
|
|
|
LIBCAMERA_LICENSE = \
|
|
|
|
LGPL-2.1+ (library), \
|
|
|
|
GPL-2.0+ (utils), \
|
|
|
|
MIT (qcam/assets/feathericons), \
|
|
|
|
BSD-2-Clause (raspberrypi), \
|
|
|
|
GPL-2.0 with Linux-syscall-note or BSD-3-Clause (linux kernel headers), \
|
|
|
|
CC0-1.0 (meson build system), \
|
|
|
|
CC-BY-SA-4.0 (doc)
|
2019-04-03 13:29:02 +02:00
|
|
|
LIBCAMERA_LICENSE_FILES = \
|
2020-06-16 20:59:50 +02:00
|
|
|
LICENSES/LGPL-2.1-or-later.txt \
|
|
|
|
LICENSES/GPL-2.0-or-later.txt \
|
|
|
|
LICENSES/MIT.txt \
|
|
|
|
LICENSES/BSD-2-Clause.txt \
|
|
|
|
LICENSES/GPL-2.0-only.txt \
|
|
|
|
LICENSES/Linux-syscall-note.txt \
|
|
|
|
LICENSES/BSD-3-Clause.txt \
|
|
|
|
LICENSES/CC0-1.0.txt \
|
|
|
|
LICENSES/CC-BY-SA-4.0.txt
|
|
|
|
|
2020-08-01 00:15:13 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_7),y)
|
|
|
|
LIBCAMERA_CXXFLAGS = -faligned-new
|
|
|
|
endif
|
|
|
|
|
2020-06-16 20:59:51 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAMERA_V4L2),y)
|
2020-06-20 08:56:20 +02:00
|
|
|
LIBCAMERA_CONF_OPTS += -Dv4l2=true
|
2020-06-16 20:59:51 +02:00
|
|
|
else
|
2020-06-20 08:56:20 +02:00
|
|
|
LIBCAMERA_CONF_OPTS += -Dv4l2=false
|
2020-06-16 20:59:51 +02:00
|
|
|
endif
|
|
|
|
|
2020-06-16 20:59:50 +02:00
|
|
|
LIBCAMERA_PIPELINES-$(BR2_PACKAGE_LIBCAMERA_PIPELINE_IPU3) += ipu3
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAMERA_PIPELINE_RASPBERRYPI),y)
|
|
|
|
LIBCAMERA_PIPELINES-y += raspberrypi
|
|
|
|
LIBCAMERA_DEPENDENCIES += boost
|
|
|
|
endif
|
|
|
|
LIBCAMERA_PIPELINES-$(BR2_PACKAGE_LIBCAMERA_PIPELINE_RKISP1) += rkisp1
|
|
|
|
LIBCAMERA_PIPELINES-$(BR2_PACKAGE_LIBCAMERA_PIPELINE_SIMPLE) += simple
|
|
|
|
LIBCAMERA_PIPELINES-$(BR2_PACKAGE_LIBCAMERA_PIPELINE_UVCVIDEO) += uvcvideo
|
|
|
|
LIBCAMERA_PIPELINES-$(BR2_PACKAGE_LIBCAMERA_PIPELINE_VIMC) += vimc
|
|
|
|
|
|
|
|
LIBCAMERA_CONF_OPTS += -Dpipelines=$(subst $(space),$(comma),$(LIBCAMERA_PIPELINES-y))
|
|
|
|
|
|
|
|
# gstreamer-video-1.0, gstreamer-allocators-1.0
|
|
|
|
ifeq ($(BR2_PACKAGE_GSTREAMER1)$(BR2_PACKAGE_GST1_PLUGINS_BASE),yy)
|
|
|
|
LIBCAMERA_CONF_OPTS += -Dgstreamer=enabled
|
|
|
|
LIBCAMERA_DEPENDENCIES += gstreamer1 gst1-plugins-base
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_QT5BASE_WIDGETS),y)
|
2020-08-01 00:15:14 +02:00
|
|
|
LIBCAMERA_CONF_OPTS += -Dqcam=enabled
|
2020-06-16 20:59:50 +02:00
|
|
|
LIBCAMERA_DEPENDENCIES += qt5base
|
|
|
|
ifeq ($(BR2_PACKAGE_QT5TOOLS_LINGUIST_TOOLS),y)
|
|
|
|
LIBCAMERA_DEPENDENCIES += qt5tools
|
|
|
|
endif
|
2020-08-01 00:15:14 +02:00
|
|
|
else
|
|
|
|
LIBCAMERA_CONF_OPTS += -Dqcam=disabled
|
2020-06-16 20:59:50 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TIFF),y)
|
|
|
|
LIBCAMERA_DEPENDENCIES += tiff
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
|
|
LIBCAMERA_DEPENDENCIES += udev
|
|
|
|
endif
|
2019-04-03 13:29:02 +02:00
|
|
|
|
|
|
|
$(eval $(meson-package))
|