[pango/pango2-windows: 59/65] build: Only build tests using FontConfig if it is found
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2-windows: 59/65] build: Only build tests using FontConfig if it is found
- Date: Tue, 14 Jun 2022 04:51:42 +0000 (UTC)
commit be24c1a56441a98ee4d881eb7a1d9c0557b61bd4
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Jun 9 15:41:13 2022 +0800
build: Only build tests using FontConfig if it is found
Otherwise, these test programs won't build. Also put test-break into this list
since it uses FontConfig rather directly.
tests/meson.build | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/tests/meson.build b/tests/meson.build
index c63113b7e..4a236041b 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -36,21 +36,22 @@ if cairo_dep.found()
[ 'testattributes', [ 'testattributes.c', 'test-common.c' ] ],
[ 'cxx-test', [ 'cxx-test.cpp' ] ],
[ 'test-harfbuzz', [ 'test-harfbuzz.c' ] ],
- [ 'test-break', [ 'test-break.c', 'test-common.c', 'validate-log-attrs.c' ] ],
[ 'testmisc', [ 'testmisc.c' ] ],
]
- tests += [
- [ 'testserialize', [ 'testserialize.c' ] ],
- [ 'testhbfont', [ 'testhbfont.c' ] ],
- ]
-
+ if fontconfig_dep.found()
+ tests += [
+ [ 'testserialize', [ 'testserialize.c' ] ],
+ [ 'testhbfont', [ 'testhbfont.c' ] ],
+ [ 'test-break', [ 'test-break.c', 'test-common.c', 'validate-log-attrs.c' ] ],
+ ]
if host_system != 'darwin'
tests += [
[ 'test-layout', [ 'test-layout.c', 'test-common.c' ] ],
[ 'test-fonts', [ 'test-fonts.c', 'test-common.c' ] ],
]
endif
+ endif
if host_system != 'darwin'
tests += [
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]