diff options
author | Emmanuele Bassi <ebassi@gmail.com> | 2020-01-13 12:20:55 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gmail.com> | 2020-01-13 12:20:55 +0000 |
commit | 0ce64cc440d4e3e34235097f868c81a21c3fe4c3 (patch) | |
tree | 62da2031a7e257ddcae8378ce3bdf727bdc0da96 | |
parent | 477417f996aeb6a64db6735959f0cae0ee701a7f (diff) | |
parent | 8e835f8ed2299ad68032432eaf6491b2da8d532b (diff) | |
download | json-glib-0ce64cc440d4e3e34235097f868c81a21c3fe4c3.tar.gz |
Merge branch 'dab_add_conditional_tests' into 'master'
meson: add tests option
See merge request GNOME/json-glib!19
-rw-r--r-- | json-glib/meson.build | 4 | ||||
-rw-r--r-- | meson_options.txt | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/json-glib/meson.build b/json-glib/meson.build index 035e954..e77f818 100644 --- a/json-glib/meson.build +++ b/json-glib/meson.build @@ -140,4 +140,6 @@ foreach t: tools install: true) endforeach -subdir('tests') +if get_option('tests') + subdir('tests') +endif diff --git a/meson_options.txt b/meson_options.txt index a6b2a51..068a03f 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -7,3 +7,6 @@ option('gtk_doc', option('man', type: 'boolean', value: false, description: 'Build the man pages (requires xsltproc)') +option('tests', + type: 'boolean', value: true, + description: 'Build the tests') |