summaryrefslogtreecommitdiff
path: root/src/Makefile_Efl_Cxx.am
blob: fbcc5632cab4392994e53e1860021c72060c820c (plain) (blame)
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
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/interfaces/efl_gfx_base.eo.hh \
		 lib/efl/interfaces/efl_gfx_stack.eo.hh \
		 lib/efl/interfaces/efl_gfx_fill.eo.hh \
		 lib/efl/interfaces/efl_gfx_view.eo.hh \
	         lib/efl/interfaces/efl_gfx_shape.eo.hh \
		 lib/efl/interfaces/efl_gfx_gradient_base.eo.hh \
		 lib/efl/interfaces/efl_gfx_gradient_linear.eo.hh \
		 lib/efl/interfaces/efl_gfx_gradient_radial.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