[autotools] Fix make distcheck

The test-draw.c can now optionally uses hb-ft, but automake file was not
passing FreeType cflags or libs to it.
This commit is contained in:
Khaled Hosny 2022-02-16 11:42:36 +02:00
parent 9909e33268
commit cfa8cd7fb0
1 changed files with 6 additions and 0 deletions

View File

@ -81,6 +81,9 @@ TEST_PROGS = \
test-version \
$(NULL)
test_draw_CPPFLAGS = $(AM_CPPFLAGS)
test_draw_LDADD = $(LDADD)
test_subset_LDADD = $(LDADD) $(top_builddir)/src/libharfbuzz-subset.la
test_subset_cmap_LDADD = $(LDADD) $(top_builddir)/src/libharfbuzz-subset.la
test_subset_drop_tables_LDADD = $(LDADD) $(top_builddir)/src/libharfbuzz-subset.la
@ -123,6 +126,9 @@ endif
endif
if HAVE_FREETYPE
test_draw_CPPFLAGS += $(FREETYPE_CFLAGS)
test_draw_LDADD += $(FREETYPE_LIBS)
TEST_PROGS += \
test-ot-math \
$(NULL)