summaryrefslogtreecommitdiff
path: root/src/Makefile_Efl_Cxx.am
blob: 1ddd25dc4995b0f7d20058f2e9b6a7ea18f0ee04 (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
if HAVE_CXX11

### Generated headers

generated_efl_cxx_bindings = \
                 lib/efl/interfaces/efl_control.eo.hh \
                 lib/efl/interfaces/efl_file.eo.hh \
                 lib/efl/interfaces/efl_image.eo.hh \
                 lib/efl/interfaces/efl_player.eo.hh \
                 lib/efl/interfaces/efl_text.eo.hh \
                 lib/efl/interfaces/efl_text_properties.eo.hh

lib/efl/Efl.hh: $(generated_efl_cxx_bindings)
	@echo @ECHO_E@ "#ifndef EFL_CXX_EDJE_HH\n#define EFL_CXX_EDJE_HH\n" > $(top_builddir)/src/lib/efl/Efl.hh
	@echo @ECHO_E@ "#ifdef EFL_BETA_API_SUPPORT" >> $(top_builddir)/src/lib/efl/Efl.hh
	@for i in $(generated_efl_cxx_bindings); do echo "#include <$$(basename $$i)>" >> $(top_builddir)/src/lib/efl/Efl.hh; done
	@echo @ECHO_E@ "#endif\n\n#endif\n" >> $(top_builddir)/src/lib/efl/Efl.hh

generated_efl_cxx_all = \
	$(generated_efl_cxx_bindings) \
	lib/efl/Efl.hh

CLEANFILES += $(generated_efl_cxx_all)

installed_eflcxxmainheadersdir = $(includedir)/efl-cxx-@VMAJ@/
nodist_installed_eflcxxmainheaders_DATA = $(generated_efl_cxx_all)

endif