aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile_EsoapModel_Cxx.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile_EsoapModel_Cxx.am')
-rw-r--r--src/Makefile_EsoapModel_Cxx.am22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Makefile_EsoapModel_Cxx.am b/src/Makefile_EsoapModel_Cxx.am
new file mode 100644
index 0000000000..16c6749ced
--- /dev/null
+++ b/src/Makefile_EsoapModel_Cxx.am
@@ -0,0 +1,22 @@
+if HAVE_CXX11
+
+### Generated headers
+
+generated_esoap_model_cxx_bindings = $(esoap_model_eolian_files:%.eo=%.eo.hh)
+
+lib/esoap_model/Esoap_Model.hh: $(generated_esoap_model_cxx_bindings)
+ @echo @ECHO_E@ "#ifndef EFL_CXX_ESOAP_MODEL_HH\n#define EFL_CXX_ESOAP_MODEL_HH\n" > $(top_builddir)/src/lib/esoap_model/Esoap_Model.hh
+ @echo @ECHO_E@ "#ifdef EFL_BETA_API_SUPPORT" >> $(top_builddir)/src/lib/esoap_model/Esoap_Model.hh
+ @for i in $(generated_esoap_model_cxx_bindings); do echo "#include <$$(basename $$i)>" >> $(top_builddir)/src/lib/esoap_model/Esoap_Model.hh; done
+ @echo @ECHO_E@ "#endif\n\n#endif\n" >> $(top_builddir)/src/lib/esoap_model/Esoap_Model.hh
+
+generated_esoap_model_cxx_all = \
+ $(generated_esoap_model_cxx_bindings) \
+ lib/esoap_model/Esoap_Model.hh
+
+CLEANFILES += $(generated_esoap_model_cxx_all)
+
+installed_esoap_modelcxxmainheadersdir = $(includedir)/esoap_model-cxx-@VMAJ@/
+nodist_installed_esoap_modelcxxmainheaders_DATA = $(generated_esoap_model_cxx_all)
+
+endif