diff --git a/meson.build b/meson.build index cf09477f7..50e684fbc 100644 --- a/meson.build +++ b/meson.build @@ -238,6 +238,9 @@ endif subdir('src') subdir('util') -subdir('test') + +if not get_option('tests').disabled() + subdir('test') +endif configure_file(output: 'config.h', configuration: conf) diff --git a/meson_options.txt b/meson_options.txt index 4c46b8e0f..32dbd3d12 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -23,7 +23,7 @@ option('coretext', type: 'feature', value: 'disabled', description: 'Enable CoreText shaper backend on macOS') # Common feature options -#option('tests', type : 'feature', value : 'auto', yield : true, -# description: 'Enable or disable unit tests') +option('tests', type : 'feature', value : 'auto', yield : true, + description: 'Enable or disable unit tests') #option('introspection', type : 'feature', value : 'disabled', yield : true, # description : 'Generate gobject-introspection bindings (.gir/.typelib files)')