Makefile.am 784 字节
Newer Older
B
Behdad Esfahbod 已提交
1 2
include Makefile.decl

B
Behdad Esfahbod 已提交
3 4
NULL =

B
Behdad Esfahbod 已提交
5
if HAVE_GLIB
B
Behdad Esfahbod 已提交
6 7
AM_CPPFLAGS = -I$(top_srcdir)/src/ $(GLIB_CFLAGS)
LDADD = $(top_builddir)/src/libharfbuzz.la $(GLIB_LIBS)
B
Behdad Esfahbod 已提交
8 9 10

check_PROGRAMS = $(TEST_PROGS)

B
Behdad Esfahbod 已提交
11 12
TEST_PROGS += \
	test-buffer \
13
	test-common \
14
	test-unicode \
B
Behdad Esfahbod 已提交
15 16
	$(NULL)

B
Behdad Esfahbod 已提交
17

18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
# Tests for header compilation
TEST_PROGS += \
	test-c \
	test-cplusplus \
	$(NULL)
test_cplusplus_SOURCES = test-cplusplus.cc
test_c_CPPFLAGS = $(AM_CPPFLAGS)
test_cplusplus_CPPFLAGS = $(AM_CPPFLAGS)
if HAVE_ICU
test_c_CPPFLAGS += $(ICU_CFLAGS)
test_cplusplus_CPPFLAGS += $(ICU_CFLAGS)
endif
if HAVE_FREETYPE
test_c_CPPFLAGS += $(FREETYPE_CFLAGS)
test_cplusplus_CPPFLAGS += $(FREETYPE_CFLAGS)
endif

B
Behdad Esfahbod 已提交
35 36 37 38 39 40 41 42

else
check-am:
	@echo "You need to have glib support enabled to run the tests"
	@exit 77
endif

-include $(top_srcdir)/git.mk