diff --git a/meson.build b/meson.build index 668960e1c..c4fc23955 100644 --- a/meson.build +++ b/meson.build @@ -400,7 +400,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 f46373529..4c00f520f 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -26,3 +26,5 @@ option('update_server', type: 'string', value: 'https://aegisub-updates.redvice. option('update_url', type: 'string', value: '/trunk', description: 'Base path to use for the update checker') option('build_osx_bundle', type: 'boolean', value: false, description: 'Package Aegisub.app on OSX') + +option('tests', type: 'boolean', value: true, description: 'Build tests')