summaryrefslogtreecommitdiff
path: root/src/cam/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'src/cam/meson.build')
-rw-r--r--src/cam/meson.build13
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)