Skip to content

Commit a35192b

Browse files
committed
meson: add option to enable/disable the test suite
1 parent 6c6fcd3 commit a35192b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

meson.build

+4-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,10 @@ libepoxy_inc = [
242242

243243
subdir('include/epoxy')
244244
subdir('src')
245-
subdir('test')
245+
246+
if get_option('tests')
247+
subdir('test')
248+
endif
246249

247250
if get_option('docs')
248251
doxygen = find_program('doxygen', required: false)

meson_options.txt

+4
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ option('x11',
1515
type: 'boolean',
1616
value: true,
1717
description: 'Enable X11 support (GLX or EGL-X11)')
18+
option('tests',
19+
type: 'boolean',
20+
value: true,
21+
description: 'Build the test suite')

0 commit comments

Comments
 (0)