aboutsummaryrefslogblamecommitdiffstats
path: root/src/Makefile_Eio_Cxx.am
blob: b6aeaa0ebf6f9e8bc35e387f1c2d1b3d25b1e44b (plain) (tree)
1
2
3
4
5


                     

                                                              








                                                                                                                                  
                                            







                                                                  
if HAVE_CXX11

### Generated headers
generated_eio_cxx_bindings = $(EIO_EOS:%.eo=%.eo.hh)
generated_eio_cxx_impl_bindings = $(EIO_EOS:%.eo=%.eo.impl.hh)

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

generated_eio_cxx_all = \
	$(generated_eio_cxx_bindings) \
	$(generated_eio_cxx_impl_bindings) \
	lib/eio/Eio.hh

CLEANFILES += $(generated_eio_cxx_all)

installed_eiocxxmainheadersdir = $(includedir)/eio-cxx-@VMAJ@/
nodist_installed_eiocxxmainheaders_DATA = $(generated_eio_cxx_all)

endif