libcamera/0002-py-Honour-the-pycamera-meson-option.patch
Javier Martinez Canillas f38159e3da
Update to snapshot bb84fc6
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
2022-06-23 14:49:55 +02:00

31 lines
1013 B
Diff

From f1982fdbcab7ae76c643d295ed3f3a06e208fd4a Mon Sep 17 00:00:00 2001
From: Javier Martinez Canillas <javierm@redhat.com>
Date: Thu, 23 Jun 2022 14:21:11 +0200
Subject: [PATCH 2/2] py: Honour the pycamera meson option
The libcamera Python bindings are attempted to be built unconditionally,
even when there is a meson feature option to disable it. Make the meson
build file in the sub-dir to exit earlier if pycamera has been disabled.
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
---
src/py/libcamera/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/py/libcamera/meson.build b/src/py/libcamera/meson.build
index eb8845388692..5efae1baec8c 100644
--- a/src/py/libcamera/meson.build
+++ b/src/py/libcamera/meson.build
@@ -2,7 +2,7 @@
py3_dep = dependency('python3', required : get_option('pycamera'))
-if not py3_dep.found()
+if get_option('pycamera').disabled() or not py3_dep.found()
pycamera_enabled = false
subdir_done()
endif
--
2.36.1