From patchwork Thu Aug 22 09:09:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 1855 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id F100F60C05 for ; Thu, 22 Aug 2019 11:10:01 +0200 (CEST) Received: from pendragon.bb.dnainternet.fi (dfj612yhrgyx302h3jwwy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:ce28:277f:58d7:3ca4]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6E2A352B for ; Thu, 22 Aug 2019 11:10:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1566465001; bh=hGpn5as2kicoYnkYzuQ8gY3QOq1Ha10zPmKvjewjTtM=; h=From:To:Subject:Date:From; b=E4CqmgYsqqy7/lVfXbgTnxsWnYgBSd0GvCrZXOv77tMwleuelUjRBv8Gah4uclZpZ NdpHsjVYMOdxSXFrKT9Eo9/V14PI+DblG5RO2aggMbQAlEkCvxP6vZsnUjQ79nyOAU ek8qEi97bo91qOXhK0X/DpevgYm3Y/YIuZPh/miw= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Thu, 22 Aug 2019 12:09:50 +0300 Message-Id: <20190822090950.7632-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] meson: Rename 'tests' option to 'test' X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Aug 2019 09:10:02 -0000 The 'tests' option enables compilation of tests. On Gentoo and Chrome OS, the corresponding package USE flag is named 'test'. Rename the option to 'test' to bring it in line. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi --- We could also handle this in the libcamera ebuilds, but I think bringing the option name in line with common practices is a good idea. Any preference from anyone ? meson.build | 2 +- meson_options.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 5201a2f5d78b..72ad7c8b493b 100644 --- a/meson.build +++ b/meson.build @@ -73,7 +73,7 @@ if get_option('documentation') subdir('Documentation') endif -if get_option('tests') +if get_option('test') subdir('test') endif diff --git a/meson_options.txt b/meson_options.txt index 2d78b8d91f9c..1a328045306c 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -7,6 +7,6 @@ option('documentation', type : 'boolean', description : 'Generate the project documentation') -option('tests', +option('test', type : 'boolean', description: 'Compile and include the tests')