diff --git a/meson.build b/meson.build index b17093b3b..7110ec46e 100644 --- a/meson.build +++ b/meson.build @@ -418,7 +418,9 @@ subdir('libaegisub') subdir('packages') subdir('po') subdir('src') -subdir('tests') +if get_option('tests') + subdir('tests') +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')