[API] Pass face to get_table()
[framework/uifw/harfbuzz.git] / test / Makefile.am
1 include Makefile.decl
2
3 NULL =
4
5 if HAVE_GLIB
6 AM_CPPFLAGS = -I$(top_srcdir)/src/ $(GLIB_CFLAGS) $(GTHREAD_CFLAGS)
7 LDADD = $(top_builddir)/src/libharfbuzz.la $(GLIB_LIBS) $(GTHREAD_LIBS)
8
9 EXTRA_DIST += hb-test.h
10
11 check_PROGRAMS = $(TEST_PROGS)
12 noinst_PROGRAMS = $(TEST_PROGS)
13
14 TEST_PROGS += \
15         test-blob \
16         test-buffer \
17         test-common \
18         test-font \
19         test-object \
20         test-unicode \
21         $(NULL)
22
23
24 # Tests for header compilation
25 TEST_PROGS += \
26         test-c \
27         test-cplusplus \
28         $(NULL)
29 test_cplusplus_SOURCES = test-cplusplus.cc
30 test_c_CPPFLAGS = $(AM_CPPFLAGS)
31 test_cplusplus_CPPFLAGS = $(AM_CPPFLAGS)
32 if HAVE_ICU
33 test_c_CPPFLAGS += $(ICU_CFLAGS)
34 test_cplusplus_CPPFLAGS += $(ICU_CFLAGS)
35 endif
36 if HAVE_FREETYPE
37 test_c_CPPFLAGS += $(FREETYPE_CFLAGS)
38 test_cplusplus_CPPFLAGS += $(FREETYPE_CFLAGS)
39 # TODO replace freetype with other stuff in the following test
40 test_object_CPPFLAGS = $(AM_CPPFLAGS) $(FREETYPE_CFLAGS)
41 test_object_LIBS = $(LDADD) $(FREETYPE_LIBS)
42 endif
43
44
45 else
46 check-am:
47         @echo "You need to have glib support enabled to run the tests"
48         @exit 77
49 endif
50
51 -include $(top_srcdir)/git.mk