summaryrefslogtreecommitdiff
path: root/tests/cursor-example/Makefile.am
blob: e0b003a90d714c1d013183bdb04a9eb1bf927bfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
BUILT_SOURCES = \
	cursor-example-resources.h \
	cursor-example-resources.c \
	$(NULL)

noinst_PROGRAMS = cursor-example
cursor_example_SOURCES = \
	$(BUILT_SOURCES) \
	cursor-data.c \
	cursor-data.h \
	cursor-example.c \
	cursor-example.h \
	cursor-navigator.c \
	cursor-navigator.h \
	cursor-search.c \
	cursor-search.h \
	cursor-slot.c \
	cursor-slot.h \
	main.c \
	$(NULL)

# Here we intentionally leave out $(AM_CPPFLAGS) from
# $(cursor_example_CPPFLAGS), this is because we're
# compiling the example with a newer GTK+ than the soft
# dependency EDS has on GTK+, and we dont want the
# -DGDK_VERSION_MAX_ALLOWED and -DGLIB_VERSION_MAX_ALLOWED
# flags passed in.
cursor_example_CPPFLAGS = \
	-DG_LOG_DOMAIN=\"cursor-example\" \
	-I$(top_srcdir) \
	-I$(top_builddir) \
	-I$(top_srcdir)/addressbook \
	-I$(top_builddir)/addressbook \
	-I$(top_srcdir)/calendar \
	-I$(top_builddir)/calendar \
	-DSRCDIR=\""$(abs_srcdir)"\" \
	$(EVOLUTION_ADDRESSBOOK_CFLAGS) \
	$(EXAMPLES_CFLAGS) $(CAMEL_CFLAGS) \
	$(CODE_COVERAGE_CFLAGS) \
	$(WARNING_FLAGS) \
	$(NULL)
cursor_example_CFLAGS =
cursor_example_LDFLAGS = \
	$(top_builddir)/addressbook/libebook/libebook-1.2.la \
	$(top_builddir)/tests/test-server-utils/libetestserverutils.la \
	$(top_builddir)/private/libedbus-private.la \
	$(EVOLUTION_ADDRESSBOOK_LIBS) \
	$(EXAMPLES_LIBS) $(CAMEL_LIBS) \
	$(NULL)
cursor_example_LDADD =

UI_FILES = \
	cursor-example.ui \
	cursor-search.ui \
	cursor-slot.ui \
	$(NULL)

# Generate resources
cursor-example-resources.h: cursor-example.gresources.xml $(UI_FILES)
	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/cursor-example.gresources.xml \
		--target=$@ --sourcedir=$(srcdir) --c-name _cursor_example --generate-header
cursor-example-resources.c: cursor-example.gresources.xml $(UI_FILES)
	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/cursor-example.gresources.xml \
		--target=$@ --sourcedir=$(srcdir) --c-name _cursor_example --generate-source

EXTRA_DIST = $(UI_FILES) cursor-example.gresources.xml
CLEANFILES = $(BUILT_SOURCES)

@GNOME_CODE_COVERAGE_RULES@

-include $(top_srcdir)/git.mk