From patchwork Fri Nov 15 15:23:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 2322 Return-Path: Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 86B9D6150A for ; Fri, 15 Nov 2019 16:23:57 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id D4E3329164E From: Ezequiel Garcia To: libcamera-devel@lists.libcamera.org Date: Fri, 15 Nov 2019 12:23:42 -0300 Message-Id: <20191115152342.27723-2-ezequiel@collabora.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20191115152342.27723-1-ezequiel@collabora.com> References: <20191115152342.27723-1-ezequiel@collabora.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 2/2] meson: Define python3 and python3-yaml required dependencies X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Nov 2019 15:23:57 -0000 With this change, meson will complain specifically about missing python3 and missing python3-yaml. As specified by meson documentation: https://mesonbuild.com/Python-module.html, this change requires meson v0.51. Signed-off-by: Ezequiel Garcia --- meson.build | 2 +- src/libcamera/meson.build | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 72ad7c8b493b..38c0f1d55b56 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('libcamera', 'c', 'cpp', - meson_version : '>= 0.40', + meson_version : '>= 0.51', version : '0.0.0', default_options : [ 'werror=true', diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build index afbca76968f9..509499359cdb 100644 --- a/src/libcamera/meson.build +++ b/src/libcamera/meson.build @@ -61,6 +61,9 @@ if libudev.found() ]) endif +py_mod = import('python') +py_inst = py_mod.find_installation('python3', modules: ['yaml']) + gen_controls = files('gen-controls.py') control_ids_cpp = custom_target('control_ids_cpp',