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