aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/edje/src/examples/Makefile.am
blob: 579f1488800c9ce84b0aa95d289a5c12b23a0f2f (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
MAINTAINERCLEANFILES = Makefile.in

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

if ENABLE_MULTISENSE
MULTISENSE_EDC_FILE = multisense.edc
SND_DIR = -sd $(srcdir)
endif

#put here all EDCs one needs to the examples
EDCS = \
        basic.edc \
	swallow.edc \
	text.edc \
	table.edc \
	box.edc \
	drag.edc \
	signals-messages.edc \
	color-class.edc \
	perspective.edc \
	animations.edc \
	lua_script.edc \
	sigtest.edc \
	$(MULTISENSE_EDC_FILE)

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

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

filesdir = $(datadir)/$(PACKAGE)/examples
files_DATA = \
        $(EDCS) \
        bubble.png \
	red.png \
	test.png \
	Vera.ttf \
	edje-basic.c \
	edje-swallow.c \
	edje-text.c \
	edje-table.c \
	edje-box.c \
	edje-box2.c \
	edje-drag.c \
	edje-signals-messages.c \
	edje-color-class.c \
	edje-perspective.c \
	edje-animations.c \
	sigtest.c

EXTRA_DIST = $(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\" \
        @EDJE_CFLAGS@

files_DATA += $(EDJS)

examples_PROGRAMS = \
	edje-basic \
	edje-swallow \
	edje-text \
	edje-table \
	edje-box \
	edje-box2 \
	edje-drag\
	edje-signals-messages \
	edje-color-class \
	edje-perspective \
	edje-animations \
	sigtest

LDADD = $(top_builddir)/src/lib/libedje.la @EDJE_LIBS@

endif