Support FreeType if available

This commit is contained in:
Amir Gonnen 2021-11-04 00:43:53 +02:00
parent bd0d81a947
commit 18dbcf64be
2 changed files with 7 additions and 1 deletions

@ -1 +1 @@
Subproject commit a951b7f2f73f500b198d1b383fe704ce69b2b561
Subproject commit d3451c5cdf6acd1f6c5d82b879a890e61a15ebf5

View File

@ -266,6 +266,12 @@ ifeq ($(RLOTTIE_AVAILABLE),0)
LDFLAGS_MOD += -lrlottie
endif
CFLAGS_MOD += -I/usr/local/include/freetype2
FREETYPE_AVAILABLE := $(shell echo 'void main(){}' | $(CC) -lfreetype -x c -o /dev/null - 2> /dev/null; echo $$?)
ifeq ($(FREETYPE_AVAILABLE),0)
LDFLAGS_MOD += -lfreetype
endif
SRC_CXX += \
$(SRC_MOD_CXX)