From c884b19b46b43681aaa72201cb4428cf4c30f7d2 Mon Sep 17 00:00:00 2001 From: Mohammed Sadiq Date: Mon, 23 Sep 2019 16:20:37 +0530 Subject: [PATCH] build: Allow disabling tests --- meson.build | 6 +++++- meson_options.txt | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 7d2db5c94..77f3ec3cd 100644 --- a/meson.build +++ b/meson.build @@ -262,7 +262,10 @@ subdir('po') subdir('panels') subdir('shell') subdir('search-provider') -subdir('tests') + +if get_option('tests') + subdir('tests') +endif if get_option('documentation') subdir('man') @@ -278,6 +281,7 @@ output += '\n ' + meson.project_name() + ' - ' + meson.project_version() output += ' ===================================\n' output += ' Options \n' output += ' Documentation .............................. ' + get_option('documentation').to_string() + '\n' +output += ' Build Tests ................................ ' + get_option('tests').to_string() + '\n' output += ' Tracing .................................... ' + enable_tracing.to_string() + '\n' output += ' gnome-session libexecdir ................... ' + gnome_session_libexecdir + '\n' output += ' Optimized .................................. ' + control_center_optimized.to_string() + '\n' diff --git a/meson_options.txt b/meson_options.txt index a347168b7..a5cc9ec5a 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -2,5 +2,6 @@ option('cheese', type: 'boolean', value: true, description: 'build with cheese w option('documentation', type: 'boolean', value: false, description: 'build documentation') option('gnome_session_libexecdir', type: 'string', value: '', description: 'Directory for gnome-session\'s libexecdir') option('ibus', type: 'boolean', value: true, description: 'build with IBus support') +option('tests', type: 'boolean', value: true, description: 'build tests') option('tracing', type: 'boolean', value: false, description: 'add extra debugging information') -option('wayland', type: 'boolean', value: true, description: 'build with Wayland support') \ No newline at end of file +option('wayland', type: 'boolean', value: true, description: 'build with Wayland support')