[pango/pango2-windows: 205/211] 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: 205/211] build: Only build tests using FontConfig if we have it
- Date: Sat, 11 Jun 2022 04:21:38 +0000 (UTC)
commit 6d6674b3e444e732ea5bea2e666cf2db871f331b
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]