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