mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-20 05:34:35 -04:00
build: add option to disable tests
When building for a product, tests are not needed. Besides, one test requires a C++ compiler, which is not always available. So, add an option to configure to disable building tests altogether. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
This commit is contained in:
parent
4c21053123
commit
88f1605a82
2 changed files with 7 additions and 1 deletions
|
|
@ -84,7 +84,9 @@ subdir('src')
|
||||||
if get_option('libraries')
|
if get_option('libraries')
|
||||||
subdir('cursor')
|
subdir('cursor')
|
||||||
subdir('egl')
|
subdir('egl')
|
||||||
subdir('tests')
|
if get_option('tests')
|
||||||
|
subdir('tests')
|
||||||
|
endif
|
||||||
if get_option('documentation')
|
if get_option('documentation')
|
||||||
subdir('doc')
|
subdir('doc')
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,10 @@ option('scanner',
|
||||||
description: 'Compile wayland-scanner binary',
|
description: 'Compile wayland-scanner binary',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
value: 'true')
|
value: 'true')
|
||||||
|
option('tests',
|
||||||
|
description: 'Compile Wayland tests',
|
||||||
|
type: 'boolean',
|
||||||
|
value: 'true')
|
||||||
option('documentation',
|
option('documentation',
|
||||||
description: 'Build the documentation (requires Doxygen, dot, xmlto, xsltproc)',
|
description: 'Build the documentation (requires Doxygen, dot, xmlto, xsltproc)',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue