[test/shape] Add simplest test for hb_shape()
[apps/home/video-player.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-shape \
21         test-unicode \
22         $(NULL)
23
24
25 # Tests for header compilation
26 TEST_PROGS += \
27         test-c \
28         test-cplusplus \
29         $(NULL)
30 test_cplusplus_SOURCES = test-cplusplus.cc
31 test_c_CPPFLAGS = $(AM_CPPFLAGS)
32 test_cplusplus_CPPFLAGS = $(AM_CPPFLAGS)
33 if HAVE_ICU
34 test_c_CPPFLAGS += $(ICU_CFLAGS)
35 test_cplusplus_CPPFLAGS += $(ICU_CFLAGS)
36 endif
37 if HAVE_FREETYPE
38 test_c_CPPFLAGS += $(FREETYPE_CFLAGS)
39 test_cplusplus_CPPFLAGS += $(FREETYPE_CFLAGS)
40 # TODO replace freetype with other stuff in the following test
41 test_object_CPPFLAGS = $(AM_CPPFLAGS) $(FREETYPE_CFLAGS)
42 test_object_LIBS = $(LDADD) $(FREETYPE_LIBS)
43 endif
44
45
46 else
47 check-am:
48         @echo "You need to have glib support enabled to run the tests"
49         @exit 77
50 endif
51
52 -include $(top_srcdir)/git.mk