From 3f6aee6a13233e9ffcbb133ab9490aead7e2ced3 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Wed, 14 Dec 2022 23:17:31 +0000 Subject: main: Provide a libcamera source Allow callers to create a libcamera source when available. libcamera support is optional, so conditionally compile the new options depending on whether libcamera is available. Reviewed-by: Daniel Scally Signed-off-by: Kieran Bingham Reviewed-by: Kieran Bingham Signed-off-by: Daniel Scally --- meson.build | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index c928170..8101676 100644 --- a/meson.build +++ b/meson.build @@ -55,6 +55,15 @@ cc = meson.get_compiler('c') libcamera = dependency('libcamera', required : false) +conf = configuration_data() + +if libcamera.found() + conf.set('HAVE_LIBCAMERA', true) +endif + +configure_file(output : 'config.h', configuration : conf) +config_includes = include_directories('.') + subdir('include') subdir('lib') -- cgit v1.2.3