[gdk-pixbuf: 1/2] meson: add build_tests option




commit 801eef111df624f4377baed9a90c94b6a2d4340c
Author: Jason Francis <jafrancis999 gmail com>
Date:   Tue May 10 11:53:15 2022 -0400

    meson: add build_tests option

 meson.build       | 5 ++++-
 meson_options.txt | 4 ++++
 2 files changed, 8 insertions(+), 1 deletion(-)
---
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',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]