Skip to content

Commit 18175e4

Browse files
Biswa96arch1t3cht
authored andcommitted
meson: Add option to toggle test builds
1 parent 86e8c45 commit 18175e4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

meson.build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,9 @@ subdir('libaegisub')
400400
subdir('packages')
401401
subdir('po')
402402
subdir('src')
403-
subdir('tests')
403+
if get_option('tests')
404+
subdir('tests')
405+
endif
404406

405407
aegisub_cpp_pch = ['src/include/agi_pre.h']
406408
aegisub_c_pch = ['src/include/agi_pre_c.h']

meson_options.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ option('update_server', type: 'string', value: 'https://aegisub-updates.redvice.
2626
option('update_url', type: 'string', value: '/trunk', description: 'Base path to use for the update checker')
2727

2828
option('build_osx_bundle', type: 'boolean', value: false, description: 'Package Aegisub.app on OSX')
29+
30+
option('tests', type: 'boolean', value: true, description: 'Build tests')

0 commit comments

Comments
 (0)