Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1897D89A34 for ; Wed, 30 Sep 2020 11:50:44 +0000 (UTC) From: Petri Latvala Date: Wed, 30 Sep 2020 14:50:38 +0300 Message-Id: <20200930115038.1292-1-petri.latvala@intel.com> MIME-Version: 1.0 Subject: [igt-dev] [PATCH i-g-t v2] meson: Add option to not build the assembler List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org Cc: Kalyan Kondapally , Petri Latvala List-ID: New option -Dassembler=disabled will omit assembler/ from the build. v2: Use "not .disabled()" instead of ".enabled" so the default value of auto builds the assembler. (Arek) Signed-off-by: Petri Latvala Cc: Kalyan Kondapally Cc: Arkadiusz Hiler Cc: Lukasz Fiedorowicz --- meson.build | 4 +++- meson_options.txt | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index f4ee14f1..cb9ebca1 100644 --- a/meson.build +++ b/meson.build @@ -82,6 +82,7 @@ endforeach build_chamelium = get_option('chamelium') build_docs = get_option('docs') build_tests = not get_option('tests').disabled() +build_assembler = not get_option('assembler').disabled() with_libdrm = get_option('libdrm_drivers') build_info = ['Build type: ' + get_option('buildtype')] @@ -306,9 +307,10 @@ build_info += 'Build tests: @0@'.format(build_tests) subdir('benchmarks') subdir('tools') subdir('runner') -if libdrm_intel.found() +if libdrm_intel.found() and build_assembler subdir('assembler') endif +build_info += 'Build shader assembler: @0@'.format(build_assembler) subdir('overlay') subdir('man') diff --git a/meson_options.txt b/meson_options.txt index ff3abf08..6f0b9252 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -42,6 +42,10 @@ option('runner', type : 'feature', description : 'Build test runner') +option('assembler', + type : 'feature', + description : 'Build shader assembler') + option('oping', type : 'feature', description : 'Build test runner with liboping for pinging support') -- 2.20.1 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev