[pango/pango2-windows: 123/130] build: Only build tests using FontConfig on *nix




commit 996a6abc94203aa9e1d3decfb14f10f3771ae1e6
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Thu Jun 9 15:41:13 2022 +0800

    build: Only build tests using FontConfig on *nix
    
    Otherwise, these test programs won't build.  Also put test-break into this list
    since it uses FontConfig rather directly.

 tests/meson.build | 21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)
---
diff --git a/tests/meson.build b/tests/meson.build
index c63113b7e..2d5098893 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -36,21 +36,18 @@ 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 host_system != 'darwin'
-      tests += [
-        [ 'test-layout', [ 'test-layout.c', 'test-common.c' ] ],
-        [ 'test-fonts', [ 'test-fonts.c', 'test-common.c' ] ],
-      ]
-    endif
+  if host_system == 'linux'
+    tests += [
+      [ 'testserialize', [ 'testserialize.c' ] ],
+      [ 'testhbfont', [ 'testhbfont.c' ] ],
+      [ 'test-break', [ 'test-break.c', 'test-common.c', 'validate-log-attrs.c' ] ],
+      [ 'test-layout', [ 'test-layout.c', 'test-common.c' ] ],
+      [ 'test-fonts', [ 'test-fonts.c', 'test-common.c' ] ],
+    ]
+  endif
 
   if host_system != 'darwin'
     tests += [


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