diff options
author | kcgen <1557255+kcgen@users.noreply.github.com> | 2021-02-23 18:27:00 +0300 |
---|---|---|
committer | Patryk Obara <patryk.obara@gmail.com> | 2021-02-27 17:58:01 +0300 |
commit | 53a75de9e1248128d93d605987e6b459099bdf41 (patch) | |
tree | 51786d5d28e3a9cf4de3bc85788e834da0a0e4d8 /meson_options.txt | |
parent | 39fd620ce391b9b56ae14ffb4fbfe68ab3bc6d6f (diff) |
Make building of unit tests automatic or configurable
A feature is added to Meson allowing the user to explicitly
enable or disable building of unit tests:
-Dunit_tests=enabled
-Dunit_tests=disabled
Otherwise unit tests are in auto-mode and will be built for
all build-types except for 'release' builds.
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt index 768305e3f..cb767b157 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -65,3 +65,8 @@ option('try_static_libs', choices : ['opusfile', 'png', 'sdl2', 'sdl2_net'], value : [], description : 'Attempt to statically link selected libraries.') + +option('unit_tests', + type : 'feature', + value : 'auto', + description : 'Build unit tests. Auto skips for release builds.') |