mingw-fontconfig/fontconfig_tests.patch
2019-08-28 17:26:31 +02:00

41 lines
1.1 KiB
Diff

diff -rupN fontconfig-2.13.1/configure.ac fontconfig-2.13.1-new/configure.ac
--- fontconfig-2.13.1/configure.ac 2018-08-30 10:20:15.000000000 +0200
+++ fontconfig-2.13.1-new/configure.ac 2019-08-28 16:58:14.084705381 +0200
@@ -732,6 +732,21 @@ fi
AM_CONDITIONAL(HAVE_PTHREAD, $have_pthread)
+#
+# Allow not building tests
+#
+
+default_tests="yes"
+
+AC_ARG_ENABLE(tests,
+ [AC_HELP_STRING([--disable-tests],
+ [Don't build tests])],
+ ,
+ enable_tests=$default_tests)
+
+AM_CONDITIONAL(ENABLE_TESTS, test "x$enable_tests" = xyes)
+
+
dnl ===========================================================================
#
diff -rupN fontconfig-2.13.1/Makefile.am fontconfig-2.13.1-new/Makefile.am
--- fontconfig-2.13.1/Makefile.am 2018-06-05 12:36:38.000000000 +0200
+++ fontconfig-2.13.1-new/Makefile.am 2019-08-28 16:58:30.463695933 +0200
@@ -24,7 +24,10 @@
SUBDIRS=fontconfig fc-case fc-lang src \
fc-cache fc-cat fc-conflist fc-list fc-match \
fc-pattern fc-query fc-scan fc-validate conf.d \
- its po po-conf test
+ its po po-conf
+if ENABLE_TESTS
+SUBDIRS += test
+endif
if ENABLE_DOCS
SUBDIRS += doc
endif