2021-05-13 18:33:20 +02:00
|
|
|
From 88f1605a826ca0c2ff02be6f4cf9ecabf68e8341 Mon Sep 17 00:00:00 2001
|
2020-05-04 10:13:41 +02:00
|
|
|
From: James Hilliard <james.hilliard1@gmail.com>
|
|
|
|
Date: Tue, 3 Mar 2020 15:27:51 -0700
|
|
|
|
Subject: [PATCH] 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>
|
|
|
|
[Upstream status:
|
|
|
|
https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/66]
|
2021-05-13 18:33:20 +02:00
|
|
|
Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
|
|
|
|
[yann.morin.1998@free.fr: backport from upstream]
|
|
|
|
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
|
2020-05-04 10:13:41 +02:00
|
|
|
---
|
|
|
|
meson.build | 4 +++-
|
|
|
|
meson_options.txt | 4 ++++
|
2021-05-13 18:33:20 +02:00
|
|
|
2 files changed, 7 insertions(+), 1 deletion(-)
|
2020-05-04 10:13:41 +02:00
|
|
|
|
|
|
|
diff --git a/meson.build b/meson.build
|
2021-05-13 18:33:20 +02:00
|
|
|
index cdb66bc..714a86d 100644
|
2020-05-04 10:13:41 +02:00
|
|
|
--- a/meson.build
|
|
|
|
+++ b/meson.build
|
2021-05-13 18:33:20 +02:00
|
|
|
@@ -84,7 +84,9 @@ subdir('src')
|
2020-05-04 10:13:41 +02:00
|
|
|
if get_option('libraries')
|
|
|
|
subdir('cursor')
|
|
|
|
subdir('egl')
|
|
|
|
- subdir('tests')
|
|
|
|
+ if get_option('tests')
|
|
|
|
+ subdir('tests')
|
|
|
|
+ endif
|
2021-05-13 18:33:20 +02:00
|
|
|
if get_option('documentation')
|
|
|
|
subdir('doc')
|
|
|
|
endif
|
2020-05-04 10:13:41 +02:00
|
|
|
diff --git a/meson_options.txt b/meson_options.txt
|
2021-05-13 18:33:20 +02:00
|
|
|
index de588d1..4433fa0 100644
|
2020-05-04 10:13:41 +02:00
|
|
|
--- a/meson_options.txt
|
|
|
|
+++ b/meson_options.txt
|
2021-05-13 18:33:20 +02:00
|
|
|
@@ -6,6 +6,10 @@ option('scanner',
|
|
|
|
description: 'Compile wayland-scanner binary',
|
2020-05-04 10:13:41 +02:00
|
|
|
type: 'boolean',
|
|
|
|
value: 'true')
|
|
|
|
+option('tests',
|
|
|
|
+ description: 'Compile Wayland tests',
|
|
|
|
+ type: 'boolean',
|
|
|
|
+ value: 'true')
|
|
|
|
option('documentation',
|
|
|
|
description: 'Build the documentation (requires Doxygen, dot, xmlto, xsltproc)',
|
|
|
|
type: 'boolean',
|
|
|
|
--
|
2021-05-13 18:33:20 +02:00
|
|
|
2.25.1
|
2020-05-04 10:13:41 +02:00
|
|
|
|