[pango/pango2-windows: 67/73] build: Only build tests using FontConfig if we have it
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2-windows: 67/73] build: Only build tests using FontConfig if we have it
- Date: Fri, 10 Jun 2022 11:24:25 +0000 (UTC)
commit 5677f536a05aeee409c6e21c87cc09b9a36c813f
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Jun 9 15:41:13 2022 +0800
build: Only build tests using FontConfig if we have it
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 c63113b7..4a236041 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]