From patchwork Tue Jun 16 15:27:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 4060 X-Patchwork-Delegate: niklas.soderlund@ragnatech.se Return-Path: Received: from bin-mail-out-05.binero.net (bin-mail-out-05.binero.net [195.74.38.228]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E9FEA603C4 for ; Tue, 16 Jun 2020 17:27:35 +0200 (CEST) X-Halon-ID: e53ac722-afe5-11ea-8fb8-005056917f90 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (p4fca2eca.dip0.t-ipconnect.de [79.202.46.202]) by bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA id e53ac722-afe5-11ea-8fb8-005056917f90; Tue, 16 Jun 2020 17:27:34 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Tue, 16 Jun 2020 17:27:24 +0200 Message-Id: <20200616152724.1292857-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] meson: options: Add a option to control compilation of qcam 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: Tue, 16 Jun 2020 15:27:36 -0000 Add a option to control compilation of the qcam test application. The default behavior is to compile qcam, no change in behavior without user intervention. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart --- meson_options.txt | 5 +++++ src/meson.build | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/meson_options.txt b/meson_options.txt index badace151bb62bc9..9a4edf2a5fde8bcb 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -27,3 +27,8 @@ option('v4l2', type : 'boolean', value : false, description : 'Compile the V4L2 compatibility layer') + +option('qcam', + type : 'boolean', + value : true, + description : 'Compile the qcam test application') diff --git a/src/meson.build b/src/meson.build index d69b4c1ea9788f83..3a816fb610a68905 100644 --- a/src/meson.build +++ b/src/meson.build @@ -19,7 +19,10 @@ endif subdir('libcamera') subdir('ipa') subdir('cam') -subdir('qcam') + +if get_option('qcam') + subdir('qcam') +endif if get_option('v4l2') subdir('v4l2')