[libcamera-devel] [PATCH v4 1/3] meson: Move libevent dependency lookup
Niklas Söderlund
niklas.soderlund at ragnatech.se
Mon Mar 29 19:02:48 CEST 2021
The libevent library will be needed by both cam and the soon to be added
lc-compliacne tool. Move the dependency lookup to a shared meson file to
avoid having to look it up twice.
Suggested-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
Signed-off-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
---
src/cam/meson.build | 2 --
src/meson.build | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/cam/meson.build b/src/cam/meson.build
index 5e1a7f387d60a98f..13e6201a08a214cf 100644
--- a/src/cam/meson.build
+++ b/src/cam/meson.build
@@ -1,7 +1,5 @@
# SPDX-License-Identifier: CC0-1.0
-libevent = dependency('libevent_pthreads', required : get_option('cam'))
-
if not libevent.found()
cam_enabled = false
subdir_done()
diff --git a/src/meson.build b/src/meson.build
index c908b0675773301d..14c49f6eeb1f5a01 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -11,6 +11,8 @@ else
ipa_sign_module = false
endif
+libevent = dependency('libevent_pthreads', required : false)
+
libcamera_objects = []
# The 'android' subdir must be processed first, and the build targets
--
2.31.1
More information about the libcamera-devel
mailing list