add option to disable tests

This commit is contained in:
odrling 2021-12-27 19:35:12 +01:00
parent 512433cf6a
commit fe9d6e90cd
No known key found for this signature in database
GPG Key ID: E24CA7508C27AF5B
2 changed files with 4 additions and 0 deletions

View File

@ -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']

View File

@ -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')