[pango/pango2-windows: 120/126] 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: 120/126] build: Only build tests using FontConfig if we have it
- Date: Thu, 9 Jun 2022 16:57:06 +0000 (UTC)
commit ce9c953c4f0c81b1c08b138e4a151da901550f89
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]