summaryrefslogtreecommitdiff
path: root/legacy/evas/src/examples/Makefile.am
blob: f748c12762e6f16793488d8ea8011a9b1b29b22c (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
MAINTAINERCLEANFILES = Makefile.in

pkglibdir = $(datadir)/$(PACKAGE)/examples

#put here all EDCs one needs to the tests
EDCS = aspect.edc

filesdir = $(datadir)/$(PACKAGE)/examples
files_DATA =

if BUILD_EXAMPLES

AM_CPPFLAGS = \
-I. \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib/include \
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
-DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
-DPACKAGE_EXAMPLES_DIR=\"$(datadir)/$(PACKAGE)/examples\" \
@EINA_CFLAGS@ \
@FREETYPE_CFLAGS@ \
@PIXMAN_CFLAGS@ \
@FRIBIDI_CFLAGS@ \
@EET_CFLAGS@ \
@FONTCONFIG_CFLAGS@ \
@pthread_cflags@

AM_CFLAGS = @WIN32_CFLAGS@

pkglib_PROGRAMS =

if BUILD_ENGINE_BUFFER
AM_CPPFLAGS += -I$(top_srcdir)/src/modules/engines/buffer

pkglib_PROGRAMS += evas_buffer_simple
evas_buffer_simple_SOURCES = evas-buffer-simple.c
evas_buffer_simple_LDADD = $(top_builddir)/src/lib/libevas.la
endif

pkglib_PROGRAMS += evas_init_shutdown
evas_init_shutdown_SOURCES = evas-init-shutdown.c
evas_init_shutdown_LDADD = $(top_builddir)/src/lib/libevas.la

#the ones using ecore_evas follow
AM_CPPFLAGS += @ECORE_EVAS_CFLAGS@

pkglib_PROGRAMS += evas_images
evas_images_SOURCES = evas-images.c
evas_images_LDADD = $(top_builddir)/src/lib/libevas.la @ECORE_EVAS_LIBS@

pkglib_PROGRAMS += evas_events
evas_events_SOURCES = evas-events.c
evas_events_LDADD = $(top_builddir)/src/lib/libevas.la @ECORE_EVAS_LIBS@

pkglib_PROGRAMS += evas_object_manipulation
evas_object_manipulation_SOURCES = evas-object-manipulation.c
evas_object_manipulation_LDADD = $(top_builddir)/src/lib/libevas.la @ECORE_EVAS_LIBS@

pkglib_PROGRAMS += evas_hints
evas_hints_SOURCES = evas-hints.c
evas_hints_LDADD = $(top_builddir)/src/lib/libevas.la @ECORE_EVAS_LIBS@

pkglib_PROGRAMS += evas_stacking
evas_stacking_SOURCES = evas-stacking.c
evas_stacking_LDADD = $(top_builddir)/src/lib/libevas.la @ECORE_EVAS_LIBS@

pkglib_PROGRAMS += evas_images2
evas_images2_SOURCES = evas-images2.c
evas_images2_LDADD = $(top_builddir)/src/lib/libevas.la @ECORE_EVAS_LIBS@

pkglib_PROGRAMS += evas_text
evas_text_SOURCES = evas-text.c
evas_text_LDADD = $(top_builddir)/src/lib/libevas.la @ECORE_EVAS_LIBS@

pkglib_PROGRAMS += evas_smart_object
evas_smart_object_SOURCES = evas-smart-object.c
evas_smart_object_LDADD = $(top_builddir)/src/lib/libevas.la @ECORE_EVAS_LIBS@

pkglib_PROGRAMS += evas_box
evas_box_SOURCES = evas-box.c
evas_box_LDADD = $(top_builddir)/src/lib/libevas.la @ECORE_EVAS_LIBS@ @EINA_LIBS@

#the ones using ecore_evas and edje follow
AM_CPPFLAGS += @EDJE_CFLAGS@

pkglib_PROGRAMS += evas_aspect_hints
evas_aspect_hints_DEPS = $(srcdir)/aspect.edc
evas_aspect_hints_SOURCES = evas-aspect-hints.c
evas_aspect_hints_LDADD = $(top_builddir)/src/lib/libevas.la @ECORE_EVAS_LIBS@ @EDJE_LIBS@

pkglib_PROGRAMS += evas_map_utils
evas_map_utils_SOURCES = evas-map-utils.c
evas_map_utils_LDADD = $(top_builddir)/src/lib/libevas.la @ECORE_EVAS_LIBS@

aspect.edj: ${evas_aspect_hints_DEPS}

.edc.edj:
	$(edje_cc) -v -id $(srcdir) $< $(builddir)/$(@F)

EDJS = $(EDCS:%.edc=%.edj)

files_DATA += $(EDJS)

endif # if BUILD_EXAMPLES

if INSTALL_EXAMPLES

#put here additional data when installing examples
files_DATA += $(srcdir)/enlightenment.png \
	$(srcdir)/red.png \
	$(srcdir)/im1.png \
	$(srcdir)/cube1.png

files_DATA += \
	$(EDCS) \
	$(srcdir)/evas-buffer-simple.c \
	$(srcdir)/evas-init-shutdown.c \
	$(srcdir)/evas-images.c \
	$(srcdir)/evas-images2.c \
	$(srcdir)/evas-object-manipulation.c \
	$(srcdir)/evas-events.c \
	$(srcdir)/evas-aspect-hints.c \
	$(srcdir)/evas-hints.c \
	$(srcdir)/evas-stacking.c \
	$(srcdir)/evas-map-utils.c \
	$(srcdir)/evas-text.c \
	$(srcdir)/evas-smart-object.c \
	$(srcdir)/evas-box.c
endif

EXTRA_DIST = $(EDCS) \
	$(srcdir)/evas-buffer-simple.c \
	$(srcdir)/evas-init-shutdown.c \
	$(srcdir)/evas-images.c \
	$(srcdir)/evas-images2.c \
	$(srcdir)/evas-object-manipulation.c \
	$(srcdir)/evas-events.c \
	$(srcdir)/evas-aspect-hints.c \
	$(srcdir)/evas-hints.c \
	$(srcdir)/evas-stacking.c \
	$(srcdir)/evas-map-utils.c \
	$(srcdir)/evas-text.c \
	$(srcdir)/evas-smart-object.c \
	$(srcdir)/evas-box.c \
	$(srcdir)/enlightenment.png \
	$(srcdir)/red.png \
	$(srcdir)/im1.png \
	$(srcdir)/cube1.png