From 6147df337ee5a0b8135453443c696f85624dbfa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 14 Nov 2018 10:12:40 +0000 Subject: [PATCH] meson: add option to disable tests --- meson.build | 5 ++++- meson_options.txt | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index cf09477f7..50e684fbc 100644 --- a/meson.build +++ b/meson.build @@ -238,6 +238,9 @@ endif subdir('src') subdir('util') -subdir('test') + +if not get_option('tests').disabled() + subdir('test') +endif configure_file(output: 'config.h', configuration: conf) diff --git a/meson_options.txt b/meson_options.txt index 4c46b8e0f..32dbd3d12 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -23,7 +23,7 @@ option('coretext', type: 'feature', value: 'disabled', description: 'Enable CoreText shaper backend on macOS') # Common feature options -#option('tests', type : 'feature', value : 'auto', yield : true, -# description: 'Enable or disable unit tests') +option('tests', type : 'feature', value : 'auto', yield : true, + description: 'Enable or disable unit tests') #option('introspection', type : 'feature', value : 'disabled', yield : true, # description : 'Generate gobject-introspection bindings (.gir/.typelib files)')