summaryrefslogtreecommitdiff
path: root/src/examples/eolian_cxx
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-07-18 17:55:09 -0400
committerStefan Schmidt <s.schmidt@samsung.com>2018-08-03 13:09:22 +0200
commit310d6d972dbe9f323dd3783158608687b52b6bca (patch)
treeac5b27d299e562071697bae3f77b6363c6fd66db /src/examples/eolian_cxx
parentab1fd96363b630df1f5b3cb145eade3466b74b75 (diff)
build: move src/examples/ to a single makefile
this greatly improves build times by improving parallelizing, though it does introduce more BUILT_SOURCES usage which causes builds with cxx bindings to take significantly longer fix T7157 ref T7154 Differential Revision: https://phab.enlightenment.org/D6633
Diffstat (limited to 'src/examples/eolian_cxx')
-rw-r--r--src/examples/eolian_cxx/Makefile.am151
1 files changed, 0 insertions, 151 deletions
diff --git a/src/examples/eolian_cxx/Makefile.am b/src/examples/eolian_cxx/Makefile.am
deleted file mode 100644
index f9b0ab8..0000000
--- a/src/examples/eolian_cxx/Makefile.am
+++ /dev/null
@@ -1,151 +0,0 @@
1MAINTAINERCLEANFILES = Makefile.in
2CLEANFILES =
3
4EOLIAN_FLAGS = \
5 -I$(srcdir) \
6 -I$(top_srcdir)/src/lib/eo \
7 -I$(top_srcdir)/src/lib/evas/canvas \
8 -I$(top_srcdir)/src/lib/edje \
9 -I$(top_srcdir)/src/lib/efl \
10 -I$(top_srcdir)/src/lib/ecore_audio
11
12include $(top_srcdir)/src/Makefile_Eolian_Helper.am
13include $(top_srcdir)/src/Makefile_Eolian_Cxx_Helper.am
14
15# Eolian_*_Helper.am has this variable as a relative path to src
16# Thus we need to override it here in order to make its pattern
17# rules work properly.
18_EOLIAN_GEN_DEP = ../../bin/eolian/eolian_gen${EXEEXT}
19_EOLIAN_CXX_DEP = ../../bin/eolian_cxx/eolian_cxx${EXEEXT}
20
21AM_CXXFLAGS = \
22 -I$(srcdir) \
23 -I$(builddir) \
24 -I$(top_srcdir)/src/lib/efl \
25 -I$(top_builddir)/src/lib/efl \
26 -I$(top_srcdir)/src/lib/efl/interfaces \
27 -I$(top_builddir)/src/lib/efl/interfaces \
28 -I$(top_srcdir)/src/lib/eina \
29 -I$(top_builddir)/src/lib/eina \
30 -I$(top_srcdir)/src/lib/emile \
31 -I$(top_builddir)/src/lib/emile \
32 -I$(top_srcdir)/src/lib/eo \
33 -I$(top_builddir)/src/lib/eo \
34 -I$(top_srcdir)/src/bindings/cxx/eo_cxx \
35 -I$(top_builddir)/src/bindings/cxx/eo_cxx \
36 -I$(top_srcdir)/src/bindings/cxx/eina_cxx \
37 -I$(top_builddir)/src/bindings/cxx/eina_cxx \
38 -I$(top_srcdir)/src/bindings/cxx/ecore_cxx \
39 -I$(top_builddir)/src/bindings/cxx/ecore_cxx \
40 -I$(top_srcdir)/src/lib/evas/ \
41 -I$(top_builddir)/src/lib/evas/ \
42 -I$(top_srcdir)/src/lib/evas/common \
43 -I$(top_builddir)/src/lib/evas/common \
44 -I$(top_srcdir)/src/lib/evas/canvas \
45 -I$(top_builddir)/src/lib/evas/canvas \
46 -I$(top_srcdir)/src/lib/ecore \
47 -I$(top_builddir)/src/lib/ecore \
48 -I$(top_srcdir)/src/lib/ecore_evas \
49 -I$(top_builddir)/src/lib/ecore_evas
50
51if HAVE_WINDOWS
52AM_CXXFLAGS += \
53@EFL_WINDOWS_VERSION_CFLAGS@ \
54-I$(top_srcdir)/src/lib/evil \
55-I$(top_builddir)/src/lib/evil
56endif
57
58AM_CFLAGS = $(AM_CXXFLAGS)
59
60AM_LDFLAGS = \
61 -L$(top_builddir)/src/lib/efl \
62 -L$(top_builddir)/src/lib/eina \
63 -L$(top_builddir)/src/lib/emile \
64 -L$(top_builddir)/src/lib/eo \
65 -L$(top_builddir)/src/lib/evas \
66 -L$(top_builddir)/src/lib/ecore \
67 -L$(top_builddir)/src/lib/ecore_evas \
68 -lefl -leina -levas -leo -lecore -lecore_evas -pthread
69
70LDADD = \
71 $(top_builddir)/src/lib/efl/libefl.la \
72 $(top_builddir)/src/lib/eo/libeo.la \
73 $(top_builddir)/src/lib/eina/libeina.la \
74 $(top_builddir)/src/lib/emile/libemile.la \
75 $(top_builddir)/src/lib/evas/libevas.la \
76 $(top_builddir)/src/lib/ecore_evas/libecore_evas.la
77
78IMPL = \
79 colourable.c \
80 colourable_cxx.cc \
81 colourablesquare.c \
82 colourablesquare_cxx.cc
83
84SRCS = \
85 eolian_cxx_simple_01.cc \
86 eolian_cxx_callbacks_01.cc \
87 ns_colourable.eo \
88 ns_colourablesquare.eo \
89 $(IMPL)
90
91if HAVE_CXX
92GENERATED = \
93 ns_colourable.eo.c \
94 ns_colourable.eo.h \
95 ns_colourable.eo.hh \
96 ns_colourable.eo.impl.hh \
97 ns_colourablesquare.eo.c \
98 ns_colourablesquare.eo.h \
99 ns_colourablesquare.eo.hh \
100 ns_colourablesquare.eo.impl.hh
101
102BUILT_SOURCES = $(GENERATED)
103CLEANFILES += $(BUILT_SOURCES)
104
105EXTRA_PROGRAMS = \
106 eolian_cxx_simple_01 \
107 eolian_cxx_simple_01_cxx_impl \
108 eolian_cxx_callbacks_01
109
110eolian_cxx_simple_01_SOURCES = \
111 eolian_cxx_simple_01.cc \
112 colourable.c \
113 colourablesquare.c
114eolian_cxx_simple_01.$(OBJEXT): $(GENERATED)
115
116eolian_cxx_simple_01_cxx_impl_SOURCES = \
117 eolian_cxx_simple_01.cc \
118 colourable.c \
119 colourablesquare.c \
120 colourable_cxx.cc \
121 colourablesquare_stub.h \
122 colourable_stub.h \
123 colourablesquare_cxx.cc
124eolian_cxx_simple_01_cxx_impl.$(OBJEXT): $(GENERATED)
125
126eolian_cxx_callbacks_01_SOURCES = eolian_cxx_callbacks_01.cc
127endif
128
129DATA_FILES = Makefile.examples $(ECXX_EXAMPLE_EOS)
130EXTRA_DIST = $(DATA_FILES) \
131ns_colourable.eo \
132ns_colourablesquare.eo
133
134examples: $(ECXX_EXAMPLE_EOS) $(GENERATED) $(EXTRA_PROGRAMS)
135
136clean-local:
137 rm -f $(EXTRA_PROGRAMS) $(GENERATED)
138
139install-examples:
140 $(MKDIR_P) $(DESTDIR)$(datadir)/eolian_cxx/examples
141 cd $(abs_srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(DESTDIR)$(datadir)/eolian_cxx/examples
142
143uninstall-local:
144 for f in $(SRCS) $(DATA_FILES); do \
145 rm -f $(DESTDIR)$(datadir)/eolian_cxx/examples/$$f ; \
146 done
147
148if ALWAYS_BUILD_EXAMPLES
149noinst_PROGRAMS = $(EXTRA_PROGRAMS)
150endif
151