diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-05-17 23:56:26 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-08-05 16:23:11 +0300 |
commit | 910b5253cb2bc81d0aee3efb98af5334f96e2c9c (patch) | |
tree | ac0ef8655b70f2bb87b970e9b72c9666a27e80c0 /src/cam/meson.build | |
parent | ab623b4738130048ff12d632cec6778e1187d9dd (diff) |
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 <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/cam/meson.build')
-rw-r--r-- | src/cam/meson.build | 13 |
1 files changed, 13 insertions, 0 deletions
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) |