From patchwork Thu Jun 23 12:41:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 16333 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 0DB83BD808 for ; Thu, 23 Jun 2022 12:41:53 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 75F0165632; Thu, 23 Jun 2022 14:41:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1655988112; bh=Om5f50DzL1yhUL7KQHBwH/bwf0tcyBN6v/y4WeNOKcU=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=wptC7LuW+YO7sY44uqo8de7Jvw/CZu2zma+CMjfnqh3MNlS+uTbgvVABKAnnRSLoP CXv+dNhG8o/gBD+nGPjbciZR1mfgK8S1zaOuwSrgr+Zr9mdZoUtxwp311bpZboIi59 SzlRW4jZ2CHJ1TmWJlqrmmokn2nHExLArl5IcGppn0AcpDo9Ik02Pv1YBdCU9IvzNR 7a5QPrIF6wrSWc3huYGRaky0OWCgLs0BRwea10Oq0FRwB+usv2p4Wv4UBodo7ugj8a IqGMl5v0Ie/OTYm0vkRjExiAWU47mD50XKqvLV21qejDInPpxGRrfmbRwnUm4VSp1y fgntLWhAZZX3A== Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 409D56048F for ; Thu, 23 Jun 2022 14:41:50 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="NDxkaU5q"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655988109; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4BwhNfyyaMHwKCsNF1g8+7HI10ar8InJ+ydPD9GS64c=; b=NDxkaU5q58vvwZ3ttJhf+MIL/Q3ftK1nw6PDy3BWmrrgKThLFmP2YgwxEZ9IS1ujn4vXIM TYoiHi8C/5KNqsOMNc/mOdWJFUmIsvqI/cjOOU1AHiF5eJli1BZl12CNzrDDG7IWaPjgVo hTnAp/7HHmsL7XHGEVamvbl++AZs+mo= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-635-DqbVtH33OBeb8sLbzEVbXg-1; Thu, 23 Jun 2022 08:41:48 -0400 X-MC-Unique: DqbVtH33OBeb8sLbzEVbXg-1 Received: by mail-wm1-f69.google.com with SMTP id k15-20020a7bc40f000000b0039c4b7f7d09so1367348wmi.8 for ; Thu, 23 Jun 2022 05:41:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4BwhNfyyaMHwKCsNF1g8+7HI10ar8InJ+ydPD9GS64c=; b=LZA0oH7Jw+0XLwNzFjyHQ8Ky2dhCbsp+qtbcMV5fycBKy/dihNXItL1ulXqJ+oKP8z IEna1wHuVTSIFji3GmABG+uj3RSa3YAVQvbtb6sN3LCeB1kXDPzr08IEStKOMEd/RS+O TMz39/0T2riW95CrG888l16ZlvfCi/fPBUKzaJNBMy0zYTkTPuVVR2FUh53KhtSendAg +aPaD8mGpxNxcCRegV+ypIo9W1RnsOxvq2spGQDJfuV+ddxN+7JpVgFZ5i2yQPGJ3xhB 1yJdIrL3p4Otg0lf1oHub4mtLTR6kLy46rc0x7iMnNGPnKm9/Zy2poyKb28S7NyZW5H7 p30A== X-Gm-Message-State: AJIora8+grmpn607xhjW8arq4/wXc2ETtkla2EUqcjGUA/Jrgmjo7m9f rH4t0eo2j8deMgdhVkF5nDwSiyHqQq/AtrBAp2BJmJK9Tijqr3bIF3++DSd+sKZwoDU/7XhB3fk IEsAIX/FIsc1ws34in3o2mS0MfcUIwDNbGi9+Kzf8n/rEFUtftwBdS5HriH7cepTbHZQZmpOSJw co+vBMCi/j X-Received: by 2002:a05:6000:12c3:b0:21a:3795:70ac with SMTP id l3-20020a05600012c300b0021a379570acmr7915564wrx.175.1655988105802; Thu, 23 Jun 2022 05:41:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sovN57LPUCS3pYfgM1r+1mhTbGD7S589JFRajGGppV4sJv8GiyFbQ74hs2C8bZ/WSBrq6rHw== X-Received: by 2002:a05:6000:12c3:b0:21a:3795:70ac with SMTP id l3-20020a05600012c300b0021a379570acmr7915550wrx.175.1655988105565; Thu, 23 Jun 2022 05:41:45 -0700 (PDT) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id z14-20020a056000110e00b0021b93a483dbsm10002412wrw.32.2022.06.23.05.41.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jun 2022 05:41:45 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Thu, 23 Jun 2022 14:41:40 +0200 Message-Id: <20220623124140.610241-1-javierm@redhat.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=javierm@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [libcamera-devel] [PATCH] py: Honour the pycamera meson option 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-Patchwork-Original-From: Javier Martinez Canillas via libcamera-devel From: Javier Martinez Canillas Reply-To: Javier Martinez Canillas Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" 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 Reviewed-by: Kieran Bingham --- 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