summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-03-01 17:37:42 +0000
committerRoss Burton <ross.burton@intel.com>2018-03-12 12:02:08 +0000
commita35192b07cabc373e56eec6de2b9bd4fdd7bdee8 (patch)
tree8a36823f5030c490e6b67558229ea0c3d49ada3a
parent6c6fcd3b12ab44f97e57ba8a8c35447570f633f8 (diff)
downloadlibepoxy-a35192b07cabc373e56eec6de2b9bd4fdd7bdee8.tar.gz
meson: add option to enable/disable the test suite
-rw-r--r--meson.build5
-rw-r--r--meson_options.txt4
2 files changed, 8 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index b2ebaef..9632c7a 100644
--- a/meson.build
+++ b/meson.build
@@ -242,7 +242,10 @@ libepoxy_inc = [
subdir('include/epoxy')
subdir('src')
-subdir('test')
+
+if get_option('tests')
+ subdir('test')
+endif
if get_option('docs')
doxygen = find_program('doxygen', required: false)
diff --git a/meson_options.txt b/meson_options.txt
index b5d7c98..dc30e68 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -15,3 +15,7 @@ option('x11',
type: 'boolean',
value: true,
description: 'Enable X11 support (GLX or EGL-X11)')
+option('tests',
+ type: 'boolean',
+ value: true,
+ description: 'Build the test suite')