Use EDS_INSTALLED_TESTS macros to install tests
[platform/upstream/evolution-data-server.git] / tests / cursor-example / Makefile.am
1 BUILT_SOURCES = \
2         cursor-example-resources.h \
3         cursor-example-resources.c \
4         $(NULL)
5
6 noinst_PROGRAMS = cursor-example
7 cursor_example_SOURCES = \
8         $(BUILT_SOURCES) \
9         cursor-data.c \
10         cursor-data.h \
11         cursor-example.c \
12         cursor-example.h \
13         cursor-navigator.c \
14         cursor-navigator.h \
15         cursor-search.c \
16         cursor-search.h \
17         cursor-slot.c \
18         cursor-slot.h \
19         main.c \
20         $(NULL)
21
22 # Here we intentionally leave out $(AM_CPPFLAGS) from
23 # $(cursor_example_CPPFLAGS), this is because we're
24 # compiling the example with a newer GTK+ than the soft
25 # dependency EDS has on GTK+, and we dont want the
26 # -DGDK_VERSION_MAX_ALLOWED and -DGLIB_VERSION_MAX_ALLOWED
27 # flags passed in.
28 cursor_example_CPPFLAGS = \
29         -DG_LOG_DOMAIN=\"cursor-example\" \
30         -I$(top_srcdir) \
31         -I$(top_builddir) \
32         -I$(top_srcdir)/addressbook \
33         -I$(top_builddir)/addressbook \
34         -I$(top_srcdir)/calendar \
35         -I$(top_builddir)/calendar \
36         -DSRCDIR=\""$(abs_srcdir)"\" \
37         $(EVOLUTION_ADDRESSBOOK_CFLAGS) \
38         $(EXAMPLES_CFLAGS) $(CAMEL_CFLAGS) \
39         $(CODE_COVERAGE_CFLAGS) \
40         $(WARNING_FLAGS) \
41         $(NULL)
42 cursor_example_CFLAGS =
43 cursor_example_LDFLAGS = \
44         $(top_builddir)/addressbook/libebook/libebook-1.2.la \
45         $(top_builddir)/addressbook/libebook-contacts/libebook-contacts-1.2.la \
46         $(top_builddir)/libedataserver/libedataserver-1.2.la \
47         $(top_builddir)/private/libedbus-private.la \
48         $(EVOLUTION_ADDRESSBOOK_LIBS) \
49         $(EXAMPLES_LIBS) $(CAMEL_LIBS) \
50         $(NULL)
51 cursor_example_LDADD =
52
53 UI_FILES = \
54         cursor-example.ui \
55         cursor-search.ui \
56         cursor-slot.ui \
57         $(NULL)
58
59 # Generate resources
60 cursor-example-resources.h: cursor-example.gresources.xml $(UI_FILES)
61         $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/cursor-example.gresources.xml \
62                 --target=$@ --sourcedir=$(srcdir) --c-name _cursor_example --generate-header
63 cursor-example-resources.c: cursor-example.gresources.xml $(UI_FILES)
64         $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/cursor-example.gresources.xml \
65                 --target=$@ --sourcedir=$(srcdir) --c-name _cursor_example --generate-source
66
67 EXTRA_DIST = $(UI_FILES) cursor-example.gresources.xml
68 CLEANFILES = $(BUILT_SOURCES)
69
70 @GNOME_CODE_COVERAGE_RULES@
71
72 -include $(top_srcdir)/git.mk