summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/meson.build5
-rw-r--r--src/v4l2/meson.build4
2 files changed, 5 insertions, 4 deletions
diff --git a/src/meson.build b/src/meson.build
index 8e219943..4b75f058 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -21,8 +21,5 @@ subdir('ipa')
subdir('cam')
subdir('qcam')
-if get_option('v4l2')
- subdir('v4l2')
-endif
-
subdir('gstreamer')
+subdir('v4l2')
diff --git a/src/v4l2/meson.build b/src/v4l2/meson.build
index e3838f0b..dbe6a424 100644
--- a/src/v4l2/meson.build
+++ b/src/v4l2/meson.build
@@ -1,5 +1,9 @@
# SPDX-License-Identifier: CC0-1.0
+if not get_option('v4l2')
+ subdir_done()
+endif
+
v4l2_compat_sources = files([
'v4l2_camera.cpp',
'v4l2_camera_file.cpp',