[API] Add version macros and functions
[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)
7 LDADD = $(top_builddir)/src/libharfbuzz.la $(GLIB_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-buffer \
16         test-common \
17         test-object \
18         test-unicode \
19         $(NULL)
20
21
22 # Tests for header compilation
23 TEST_PROGS += \
24         test-c \
25         test-cplusplus \
26         $(NULL)
27 test_cplusplus_SOURCES = test-cplusplus.cc
28 test_c_CPPFLAGS = $(AM_CPPFLAGS)
29 test_cplusplus_CPPFLAGS = $(AM_CPPFLAGS)
30 if HAVE_ICU
31 test_c_CPPFLAGS += $(ICU_CFLAGS)
32 test_cplusplus_CPPFLAGS += $(ICU_CFLAGS)
33 endif
34 if HAVE_FREETYPE
35 test_c_CPPFLAGS += $(FREETYPE_CFLAGS)
36 test_cplusplus_CPPFLAGS += $(FREETYPE_CFLAGS)
37 # TODO replace freetype with other stuff in the following test
38 test_object_CPPFLAGS = $(AM_CPPFLAGS) $(FREETYPE_CFLAGS)
39 test_object_LIBS = $(LDADD) $(FREETYPE_LIBS)
40 endif
41
42
43 else
44 check-am:
45         @echo "You need to have glib support enabled to run the tests"
46         @exit 77
47 endif
48
49 -include $(top_srcdir)/git.mk