diff options
-rw-r--r-- | meson.build | 5 | ||||
-rw-r--r-- | meson_options.txt | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/meson.build b/meson.build index aab4017ca..ed82464e4 100644 --- a/meson.build +++ b/meson.build @@ -414,7 +414,9 @@ subdir('gdk-pixbuf') subdir('po') if not meson.is_cross_build() - subdir('tests') + if get_option('tests') + subdir('tests') + endif subdir('thumbnailer') endif @@ -446,6 +448,7 @@ summary('Introspection', build_gir, section: 'Build') summary('Documentation', build_docs, section: 'Build') summary('Manual pages', get_option('man'), section: 'Build') summary('Relocatable', get_option('relocatable'), section: 'Build') +summary('Build tests', get_option('tests'), section: 'Build') summary('Installed tests', get_option('installed_tests'), section: 'Build') summary('prefix', gdk_pixbuf_prefix, section: 'Directories') diff --git a/meson_options.txt b/meson_options.txt index c12179c5e..0ea94eb47 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -41,6 +41,10 @@ option('native_windows_loaders', description: 'Use Windows system components to handle BMP, EMF, GIF, ICO, JPEG, TIFF and WMF images, overriding jpeg and tiff. To build this into gdk-pixbuf, pass in windows" with the other loaders to build in or use "all" with the builtin_loaders option', type: 'boolean', value: false) +option('tests', + description: 'Build the test suite', + type: 'boolean', + value: true) option('installed_tests', description: 'Install the test suite', type: 'boolean', |