Add missing cmake config for efl libs.
[platform/upstream/efl.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2 AM_MAKEFLAGS = --no-print-directory
3 AM_DISTCHECK_CONFIGURE_FLAGS = \
4 --with-tests=regular
5
6 SUBDIRS = src data doc
7
8 if HAVE_PO
9
10 SUBDIRS += po
11
12 endif
13
14 MAINTAINERCLEANFILES = \
15 Makefile.in \
16 aclocal.m4 \
17 compile \
18 config.cache-env \
19 config.guess \
20 config.h.in \
21 config.h.in~ \
22 config.sub \
23 configure \
24 depcomp \
25 install-sh \
26 ltmain.sh \
27 missing \
28 m4/libtool.m4 \
29 m4/lt~obsolete.m4 \
30 m4/ltoptions.m4 \
31 m4/ltsugar.m4 \
32 m4/ltversion.m4
33
34 EXTRA_DIST =  \
35 m4/pkg_var.m4 \
36 m4/ac_path_generic.m4 \
37 m4/ecore_check_c_extension.m4 \
38 m4/ecore_check_module.m4 \
39 m4/efl_attribute.m4 \
40 m4/efl_check_funcs.m4 \
41 m4/efl_compiler.m4 \
42 m4/efl_doxygen.m4 \
43 m4/efl_path_max.m4 \
44 m4/efl_threads.m4 \
45 m4/eina_check.m4 \
46 m4/eina_config.m4 \
47 m4/eio_check_options.m4 \
48 m4/evas_check_engine.m4 \
49 m4/evas_check_loader.m4 \
50 m4/evil_windows.m4 \
51 m4/libgcrypt.m4 \
52 m4/gcc_check_builtin.m4
53
54 EXTRA_DIST += \
55 README \
56 AUTHORS \
57 COPYING \
58 COMPLIANCE \
59 licenses/COPYING.LGPL \
60 licenses/COPYING.GPL \
61 licenses/COPYING.BSD \
62 licenses/COPYING.SMALL \
63 old/ChangeLog.ecore \
64 old/ChangeLog.edje \
65 old/ChangeLog.eet \
66 old/ChangeLog.eeze \
67 old/ChangeLog.efreet \
68 old/ChangeLog.eina \
69 old/ChangeLog.eio \
70 old/ChangeLog.embryo \
71 old/ChangeLog.emotion \
72 old/ChangeLog.escape \
73 old/ChangeLog.ethumb \
74 old/ChangeLog.evas \
75 old/ChangeLog.evil \
76 old/ChangeLog.evil.0 \
77 old/NEWS.ecore \
78 old/NEWS.edje \
79 old/NEWS.eet \
80 old/NEWS.eeze \
81 old/NEWS.efreet \
82 old/NEWS.eina \
83 old/NEWS.eio \
84 old/NEWS.embryo \
85 old/NEWS.emotion \
86 old/NEWS.escape \
87 old/NEWS.ethumb \
88 old/NEWS.evas \
89 old/NEWS.evil \
90 old/README.ecore \
91 old/README.eldbus \
92 old/README.edje \
93 old/README.eet \
94 old/README.eeze \
95 old/README.efreet \
96 old/README.eina \
97 old/README.eio \
98 old/README.embryo \
99 old/README.emotion \
100 old/README.ephysics \
101 old/README.escape \
102 old/README.ethumb \
103 old/README.evas \
104 old/README.evil \
105 spec/efl.spec \
106 pkgbuild/PKGBUILD \
107 pkgbuild/efl.install \
108 po/xgettext_wrapper.sh \
109 po/Makevars.in
110
111 if HAVE_FREEBSD
112 pkgconfigdir = $(libdir)data/pkgconfig
113 else
114 pkgconfigdir = $(libdir)/pkgconfig
115 endif
116
117 pkgconfig_DATA =
118
119 if HAVE_WINDOWS
120 pkgconfig_DATA += pc/evil.pc
121 endif
122
123 if HAVE_PS3
124 pkgconfig_DATA += pc/escape.pc
125 endif
126
127 pkgconfig_DATA += \
128 pc/eina.pc \
129 pc/eo.pc \
130 pc/eolian.pc \
131 pc/efl.pc \
132 pc/efl-cxx.pc \
133 pc/eet.pc \
134 pc/evas.pc \
135 pc/ecore.pc \
136 pc/ecore-con.pc \
137 pc/ecore-ipc.pc \
138 pc/ecore-file.pc \
139 pc/ecore-input.pc \
140 pc/ecore-input-evas.pc \
141 pc/ecore-imf.pc \
142 pc/ecore-imf-evas.pc \
143 pc/ecore-evas.pc \
144 pc/ecore-avahi.pc \
145 pc/embryo.pc \
146 pc/eio.pc \
147 pc/eldbus.pc \
148 pc/efreet.pc \
149 pc/efreet-mime.pc \
150 pc/efreet-trash.pc \
151 pc/edje.pc \
152 pc/emotion.pc \
153 pc/ethumb.pc \
154 pc/ethumb_client.pc
155
156 if HAVE_CXX11
157 pkgconfig_DATA += \
158 pc/eina-cxx.pc \
159 pc/evas-cxx.pc \
160 pc/ecore-cxx.pc \
161 pc/eolian-cxx.pc \
162 pc/edje-cxx.pc \
163 pc/eet-cxx.pc \
164 pc/eo-cxx.pc
165 endif
166
167 if BUILD_ENGINE_SOFTWARE_X11
168 pkgconfig_DATA += pc/evas-software-x11.pc
169 endif
170
171 if BUILD_ENGINE_FB
172 pkgconfig_DATA += pc/evas-fb.pc
173 endif
174
175 if BUILD_ENGINE_BUFFER
176 pkgconfig_DATA += pc/evas-software-buffer.pc
177 endif
178
179 if BUILD_ENGINE_GL_X11
180 pkgconfig_DATA += pc/evas-opengl-x11.pc
181 endif
182
183 if BUILD_ENGINE_GL_SDL
184 pkgconfig_DATA += pc/evas-opengl-sdl.pc
185 endif
186
187 if BUILD_ENGINE_GL_COCOA
188 pkgconfig_DATA += pc/evas-opengl-cocoa.pc
189 endif
190
191 if BUILD_ENGINE_SOFTWARE_GDI
192 pkgconfig_DATA += pc/evas-software-gdi.pc
193 endif
194
195 if BUILD_ENGINE_SOFTWARE_DDRAW
196 pkgconfig_DATA += pc/evas-software-ddraw.pc
197 endif
198
199 if BUILD_ENGINE_PSL1GHT
200 pkgconfig_DATA += pc/evas-psl1ght.pc
201 endif
202
203 if BUILD_ENGINE_WAYLAND_SHM
204 pkgconfig_DATA += pc/evas-wayland-shm.pc
205 endif
206
207 if BUILD_ENGINE_WAYLAND_EGL
208 pkgconfig_DATA += pc/evas-wayland-egl.pc
209 endif
210
211 if BUILD_ENGINE_DRM
212 pkgconfig_DATA += pc/evas-drm.pc
213 endif
214
215 if HAVE_ECORE_COCOA
216 pkgconfig_DATA += pc/ecore-cocoa.pc
217 endif
218
219 if HAVE_ECORE_FB
220 pkgconfig_DATA += pc/ecore-fb.pc
221 endif
222
223 if HAVE_ECORE_DRM
224 pkgconfig_DATA += pc/ecore-drm.pc
225 endif
226
227 if HAVE_PS3
228 pkgconfig_DATA += pc/ecore-psl1ght.pc
229 endif
230
231 if HAVE_ECORE_SDL
232 pkgconfig_DATA += pc/ecore-sdl.pc
233 endif
234
235 if HAVE_ECORE_WAYLAND
236 pkgconfig_DATA += pc/ecore-wayland.pc
237 endif
238
239 if HAVE_WIN32
240 pkgconfig_DATA += pc/ecore-win32.pc
241 endif
242
243 if HAVE_ECORE_X
244 pkgconfig_DATA += pc/ecore-x.pc
245 endif
246
247 if HAVE_EEZE
248 pkgconfig_DATA += pc/eeze.pc
249 endif
250
251 if HAVE_EPHYSICS
252 pkgconfig_DATA += pc/ephysics.pc
253 endif
254
255 if HAVE_ECORE_AUDIO
256 pkgconfig_DATA += pc/ecore-audio.pc pc/ecore-audio-cxx.pc
257 endif
258
259 # Cmake configs:
260 efl_cmakeconfigdir = $(libdir)/cmake/Efl/
261 efl_cmakeconfig_DATA = \
262 cmakeconfig/EflConfig.cmake \
263 cmakeconfig/EflConfigVersion.cmake
264
265 eina_cmakeconfigdir = $(libdir)/cmake/Eina/
266 eina_cmakeconfig_DATA = \
267 cmakeconfig/EinaConfig.cmake \
268 cmakeconfig/EinaConfigVersion.cmake
269
270 eeze_cmakeconfigdir = $(libdir)/cmake/Eeze/
271 eeze_cmakeconfig_DATA = \
272 cmakeconfig/EezeConfig.cmake \
273 cmakeconfig/EezeConfigVersion.cmake
274
275 eo_cmakeconfigdir = $(libdir)/cmake/Eo/
276 eo_cmakeconfig_DATA = \
277 cmakeconfig/EoConfig.cmake \
278 cmakeconfig/EoConfigVersion.cmake
279
280 eolian_cmakeconfigdir = $(libdir)/cmake/Eolian/
281 eolian_cmakeconfig_DATA = \
282 cmakeconfig/EolianConfig.cmake \
283 cmakeconfig/EolianConfigVersion.cmake
284
285 eolian_cxx_cmakeconfigdir = $(libdir)/cmake/EolianCxx/
286 eolian_cxx_cmakeconfig_DATA = \
287 cmakeconfig/EolianCxxConfig.cmake \
288 cmakeconfig/EolianCxxConfigVersion.cmake
289
290 eina_cxx_cmakeconfigdir = $(libdir)/cmake/EinaCxx/
291 eina_cxx_cmakeconfig_DATA = \
292 cmakeconfig/EinaCxxConfig.cmake \
293 cmakeconfig/EinaCxxConfigVersion.cmake
294
295 eo_cxx_cmakeconfigdir = $(libdir)/cmake/EoCxx/
296 eo_cxx_cmakeconfig_DATA = \
297 cmakeconfig/EoCxxConfig.cmake \
298 cmakeconfig/EoCxxConfigVersion.cmake
299
300 ecore_cxx_cmakeconfigdir = $(libdir)/cmake/EcoreCxx/
301 ecore_cxx_cmakeconfig_DATA = \
302 cmakeconfig/EcoreCxxConfig.cmake \
303 cmakeconfig/EcoreCxxConfigVersion.cmake
304
305 evas_cxx_cmakeconfigdir = $(libdir)/cmake/EvasCxx/
306 evas_cxx_cmakeconfig_DATA = \
307 cmakeconfig/EvasCxxConfig.cmake \
308 cmakeconfig/EvasCxxConfigVersion.cmake
309
310 eet_cxx_cmakeconfigdir = $(libdir)/cmake/EetCxx/
311 eet_cxx_cmakeconfig_DATA = \
312 cmakeconfig/EetCxxConfig.cmake \
313 cmakeconfig/EetCxxConfigVersion.cmake
314
315 eet_cmakeconfigdir = $(libdir)/cmake/Eet/
316 eet_cmakeconfig_DATA = \
317 cmakeconfig/EetConfig.cmake \
318 cmakeconfig/EetConfigVersion.cmake
319
320 evas_cmakeconfigdir =  $(libdir)/cmake/Evas/
321 evas_cmakeconfig_DATA = \
322 cmakeconfig/EvasConfig.cmake \
323 cmakeconfig/EvasConfigVersion.cmake
324
325 ecore_cmakeconfigdir =  $(libdir)/cmake/Ecore/
326 ecore_cmakeconfig_DATA = \
327 cmakeconfig/EcoreConfig.cmake \
328 cmakeconfig/EcoreConfigVersion.cmake
329
330 edje_cmakeconfigdir =  $(libdir)/cmake/Edje/
331 edje_cmakeconfig_DATA = \
332 cmakeconfig/EdjeConfig.cmake \
333 cmakeconfig/EdjeConfigVersion.cmake
334
335 eldbus_cmakeconfigdir = $(libdir)/cmake/Eldbus/
336 eldbus_cmakeconfig_DATA = \
337 cmakeconfig/EldbusConfig.cmake \
338 cmakeconfig/EldbusConfigVersion.cmake
339
340 efreet_cmakeconfigdir =  $(libdir)/cmake/Efreet/
341 efreet_cmakeconfig_DATA = \
342 cmakeconfig/EfreetConfig.cmake \
343 cmakeconfig/EfreetConfigVersion.cmake
344
345 ethumb_cmakeconfigdir =  $(libdir)/cmake/Ethumb/
346 ethumb_cmakeconfig_DATA = \
347 cmakeconfig/EthumbConfig.cmake \
348 cmakeconfig/EthumbConfigVersion.cmake
349
350 ethumbclient_cmakeconfigdir =  $(libdir)/cmake/EthumbClient/
351 ethumbclient_cmakeconfig_DATA = \
352 cmakeconfig/EthumbClientConfig.cmake \
353 cmakeconfig/EthumbClientConfigVersion.cmake
354
355 emotion_cmakeconfigdir =  $(libdir)/cmake/Emotion/
356 emotion_cmakeconfig_DATA = \
357 cmakeconfig/EmotionConfig.cmake \
358 cmakeconfig/EmotionConfigVersion.cmake
359
360
361 # D-Bus services:
362
363 servicedir = @dbusservicedir@
364 service_DATA = \
365 dbus-services/org.enlightenment.Efreet.service \
366 dbus-services/org.enlightenment.Ethumb.service
367
368 if HAVE_SYSTEMD_USER_SESSION
369 systemdunitsdir = @USER_SESSION_DIR@
370 systemdunits_DATA = \
371 systemd-services/efreet.service \
372 systemd-services/ethumb.service
373 endif
374 EXTRA_DIST += $(systemdunits_DATA)
375
376
377 .PHONY: doc benchmark examples install-examples
378
379 # Documentation
380
381 doc:
382         @echo "entering doc/"
383         $(MAKE) $(AM_MAKEFLAGS) -C doc doc
384
385 # Unit tests
386
387 if EFL_ENABLE_COVERAGE
388
389 lcov-reset:
390         @rm -rf $(top_builddir)/coverage
391         @find $(top_builddir) -name "*.gcda" -delete
392         @lcov --zerocounters --directory $(top_builddir)
393
394 lcov-report:
395         @mkdir $(top_builddir)/coverage
396         lcov --capture --compat-libtool --no-external --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir) --base-directory $(top_srcdir)/src/
397         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
398         lcov --remove $(top_builddir)/coverage/coverage.cleaned.info '*/tests/*' --output-file $(top_builddir)/coverage/coverage.cleaned2.info
399         lcov --remove $(top_builddir)/coverage/coverage.cleaned2.info '*NONE*' --output-file $(top_builddir)/coverage/coverage.cleaned3.info
400         genhtml --branch-coverage -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned3.info
401         @echo "Coverage Report at $(top_builddir)/coverage/html"
402
403 endif
404
405 if EFL_ENABLE_TESTS
406
407 lcov-check:
408 if EFL_ENABLE_COVERAGE
409         @$(MAKE) $(AM_MAKEFLAGS) lcov-reset
410 endif
411         @$(MAKE) $(AM_MAKEFLAGS) check
412 if EFL_ENABLE_COVERAGE
413         @$(MAKE) $(AM_MAKEFLAGS) lcov-report
414 endif
415 endif
416
417 # benchmark
418
419 benchmark:
420         @$(MAKE) $(AM_MAKEFLAGS) -C src benchmark
421         @mkdir benchmark || true
422         @cd benchmark && ../src/benchmarks/eo/eo_bench$(EXEEXT) `date +%F_%s`
423
424 # examples
425
426 examples:
427         @$(MAKE) $(AM_MAKEFLAGS) -C src examples
428
429 install-examples:
430         @$(MAKE) $(AM_MAKEFLAGS) -C src install-examples
431
432 pkgbuild::
433         @echo "making arch packages"
434         makepkg -f -p $(top_builddir)/pkgbuild/PKGBUILD
435
436 # cleaning
437
438 clean-local:
439         rm -rf benchmark coverage
440
441 # Makevars is generated in top source directory, even for out-of-tree
442 distclean-local:
443         rm -f $(top_srcdir)/po/Makevars
444
445 # we need this to remove Makevars from dist
446 dist-hook:
447         rm -f $(distdir)/po/Makevars
448
449 # in dist tree po is read only, and we need to generate Makevars in there
450 distcheck-hook:
451         chmod +w $(distdir)/po