From 910b5253cb2bc81d0aee3efb98af5334f96e2c9c Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 17 May 2020 23:56:26 +0300 Subject: cam: Add DRM helper classes To prepare for viewfinder operation through the DRM/KMS API, add a set of helper classes that encapsulate the libdrm functions. Signed-off-by: Laurent Pinchart Reviewed-by: Paul Elder Reviewed-by: Kieran Bingham --- src/cam/meson.build | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/cam/meson.build') diff --git a/src/cam/meson.build b/src/cam/meson.build index e692ea35..b47add55 100644 --- a/src/cam/meson.build +++ b/src/cam/meson.build @@ -19,10 +19,23 @@ cam_sources = files([ 'stream_options.cpp', ]) +cam_cpp_args = [] + +libdrm = dependency('libdrm', required : false) + +if libdrm.found() +cam_cpp_args += [ '-DHAVE_KMS' ] +cam_sources += files([ + 'drm.cpp', +]) +endif + cam = executable('cam', cam_sources, dependencies : [ libatomic, libcamera_public, + libdrm, libevent, ], + cpp_args : cam_cpp_args, install : true) -- cgit v1.2.1