From fe9d6e90cdc4b79852bae0f260b05d4732879c00 Mon Sep 17 00:00:00 2001 From: odrling Date: Mon, 27 Dec 2021 19:35:12 +0100 Subject: [PATCH] add option to disable tests --- meson.build | 3 +++ meson_options.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 6ed11ef90..1439c8292 100644 --- a/meson.build +++ b/meson.build @@ -420,9 +420,12 @@ subdir('po') subdir('src') if not meson.is_cross_build() + if get_option('tests') subdir('tests') + endif endif + aegisub_cpp_pch = ['src/include/agi_pre.h'] aegisub_c_pch = ['src/include/agi_pre_c.h'] diff --git a/meson_options.txt b/meson_options.txt index ec182fe08..e771d2821 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -29,3 +29,4 @@ option('update_url', type: 'string', value: '/trunk', description: 'Base path to option('build_osx_bundle', type: 'boolean', value: 'false', description: 'Package Aegisub.app on OSX') option('build_appimage', type: 'boolean', value: 'false', description: 'Prepare for AppImage packaging') +option('tests', type: 'boolean', value: 'true', description: 'Tests')