The tests require json-c library which is not explicit in build
dependencies:
../sources/fontconfig-2.17.1/test/test-conf.c:27:10: fatal error:
json.h: No such file or directory
27 | #include <json.h>
The tests are not used so just disable them.
Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
# /usr/share/fonts is already included by default (you can change it with --with-default-fonts)
FONTCONFIG_FONT_DIRS ?= "no"
-EXTRA_OEMESON = " -Ddoc=disabled -Ddefault-fonts-dirs=${datadir}/fonts -Dcache-dir=${FONTCONFIG_CACHE_DIR} -Dadditional-fonts-dirs=${FONTCONFIG_FONT_DIRS}"
+EXTRA_OEMESON = "\
+ -Dadditional-fonts-dirs=${FONTCONFIG_FONT_DIRS} \
+ -Dcache-dir=${FONTCONFIG_CACHE_DIR} \
+ -Ddefault-fonts-dirs=${datadir}/fonts \
+ -Ddoc=disabled \
+ -Dtests=disabled \
+"
BBCLASSEXTEND = "native nativesdk"