add option to disable tests

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

View File

@ -332,7 +332,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']

View File

@ -25,3 +25,4 @@ option('update_server', type: 'string', value: 'updates.aegisub.org', descriptio
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: 'Tests')