[pango/pango2-windows: 6/7] tests: Only build testserialize.c if FontConfig is there




commit 94b1ecd828ac82fd5697ee035bdd6b47f58c7351
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Jun 15 10:33:25 2022 +0800

    tests: Only build testserialize.c if FontConfig is there
    
    It will not build otherwise.

 tests/meson.build | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/tests/meson.build b/tests/meson.build
index c78ed9aa..1955c6fa 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -37,13 +37,17 @@ if cairo_dep.found()
     [ 'cxx-test', [ 'cxx-test.cpp' ] ],
     [ 'test-harfbuzz', [ 'test-harfbuzz.c' ] ],
     [ 'testmisc', [ 'testmisc.c' ] ],
-    [ 'testserialize', [ 'testserialize.c' ] ],
     [ 'testhbfont', [ 'testhbfont.c' ] ],
     [ 'test-layout', [ 'test-layout.c', 'test-common.c' ] ],
     [ 'test-fontsets', [ 'test-fontsets.c', 'test-common.c' ] ],
     [ 'testrandom', [ 'testrandom.c' ] ],
     [ 'test-pangocairo-threads', [ 'test-pangocairo-threads.c' ] ],
   ]
+  if fontconfig_dep.found()
+    tests += [
+      [ 'testserialize', [ 'testserialize.c' ] ],
+    ]
+  endif
 endif
 
 installed_test_data = [


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]