From patchwork Wed Sep 23 15:15:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 9760 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id CB3E9C3B5C for ; Wed, 23 Sep 2020 15:21:20 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 974AD62FF9; Wed, 23 Sep 2020 17:21:20 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Jyurp1mf"; dkim-atps=neutral Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 5424C63000 for ; Wed, 23 Sep 2020 17:15:38 +0200 (CEST) Received: by mail-wm1-x331.google.com with SMTP id k18so430653wmj.5 for ; Wed, 23 Sep 2020 08:15:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Y62r48GaLepdcdkhRQb+U7c78C9AVB/KZiXEbnnHc6g=; b=Jyurp1mf3ETMdbXeYDDQqHFKd3Tgpd978uaFUPLjAFz24C9NsUy9ycDJg4rDvuu9hT 4gbsgPXhwXaoa8LQ3qzrReepKd1CaNQF2syrwcc2LFT6CGjsV+5hUHBJek0NSj09ZTN+ HFHzoe0GuCx9Bb0ijiuFJeX1ad8hO4pc43wd1ZH+BqfGy6o0/0uAikWylxmCyzO4Z3F9 Qi/Uo1mZye4HdH0h+NbAQnCJlSgodg9xfBiFwqorzjIaHqGPV29eoyDyCvFDkRLnaiaS aQ8xj6VUJfieFScOMg9PKWAl1+0GIItkXOa+G2XJDxrcLh10/vPEXBn5kCTIiEQW4W0M dKmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Y62r48GaLepdcdkhRQb+U7c78C9AVB/KZiXEbnnHc6g=; b=phhKIqHQKn+sFFRctAOEdX6Im1mlESQGekM2hQ4Xhth664D6D6lyPicCsg5GA6x3i4 +MsB7Ct0/xdcHFOXj+Jrre5/NL+oop/G03dUAc2+aHtvcWwcrcw2Yvl+ugvOIKtY4Kyn /J3WjHP0hW03N4vP4QYCG1Z3C2cuWTsk70gjRs4eDdWX8C3gAag5mcdzp7Ji069PhhHg TCVt4zAG4TyBGgM+05UiwEDkc4XOCjvrCTORk+MKZxO2owQavjHhLIXViDn51kXPFo/c FW6caYe/pj+i0JwGpIWQobcN2zPd1DCX4jpZL3WVY1zYUmZQSo+laCqJZBXRzjNnoNMr ppSQ== X-Gm-Message-State: AOAM532UzGYxUE/l3gljSnVT10QEV7tAODIgJiVvVUWrG7Ek4TQ6+NYM 0HAmKcvnvkP+5UhsiMBJiImvYSdbbIQnIg== X-Google-Smtp-Source: ABdhPJzUVOhqTqZz+u2YV/k6JAfHl2+vdiXWrR9Ij6BZYSXd7bXhsnd6RqVAD+iO/bPEXiNYGhCsvw== X-Received: by 2002:a7b:cd89:: with SMTP id y9mr84383wmj.72.1600874137732; Wed, 23 Sep 2020 08:15:37 -0700 (PDT) Received: from piling.lan ([80.71.134.83]) by smtp.gmail.com with ESMTPSA id h76sm146268wme.10.2020.09.23.08.15.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Sep 2020 08:15:36 -0700 (PDT) From: Ricardo Ribalda To: libcamera-devel@lists.libcamera.org Date: Wed, 23 Sep 2020 17:15:22 +0200 Message-Id: <20200923151522.56778-10-ricardo@ribalda.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200923151522.56778-1-ricardo@ribalda.com> References: <20200923151522.56778-1-ricardo@ribalda.com> MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 23 Sep 2020 17:21:14 +0200 Subject: [libcamera-devel] [PATCH 9/9] libcamera: Add a check for the yaml module 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Yaml is not installed by default, so it needs to be checked during configuration for its presence. At this point we are aiming for meson_version >= 0.47, and the python module detection has been introduced in 0.51, so the fix is added in a comment under FIXME. Signed-off-by: Ricardo Ribalda Reviewed-by: Kieran Bingham --- src/libcamera/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build index 0e6ecf5..43a5fde 100644 --- a/src/libcamera/meson.build +++ b/src/libcamera/meson.build @@ -77,6 +77,9 @@ if libudev.found() ]) endif +#FIXME to be added if we force meson version >= 0.51.0 +#py = import('python').find_installation('python3', modules : ['yaml']) + gen_controls = files('gen-controls.py') control_sources = []