eolian-cxx: Fix C++ compilation for lacking .eo files being generated
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Mon, 13 Jun 2016 04:17:18 +0000 (01:17 -0300)
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Mon, 13 Jun 2016 04:17:18 +0000 (01:17 -0300)
src/Makefile_Evas.am
src/bindings/cxx/eo_cxx/eo_cxx_interop.hh

index ff099f5..f7a8f30 100644 (file)
@@ -2374,8 +2374,8 @@ GENERATED_JS_BINDINGS += $(generated_evas_js_bindings)
 endif
 
 if HAVE_CXX11
-evas_eolian_cxx_hh = $(evas_eolian_pub_files:%.eo=%.eo.hh)
-evas_eolian_cxx_impl = $(evas_eolian_pub_files:%.eo=%.eo.impl.hh)
+evas_eolian_cxx_hh = $(evas_eolian_pub_files:%.eo=%.eo.hh) $(evas_eolian_legacy_files:%.eo=%.eo.hh)
+evas_eolian_cxx_impl = $(evas_eolian_pub_files:%.eo=%.eo.impl.hh) $(evas_eolian_legacy_files:%.eo=%.eo.impl.hh)
 endif
 
 EXTRA_DIST2 += \
index eb06ef1..f90e4f7 100644 (file)
@@ -442,7 +442,12 @@ eina::range_array<T> convert_to_return(Eina_Array const* value, tag<Eina_Array c
 template <typename T>
 eina::iterator<T> convert_to_return(Eina_Iterator* value, tag<Eina_Iterator*, eina::iterator<T>>)
 {
-  return eina::iterator<T>{value};
+  return eina::iterator<T>{ value };
+}
+template <typename T>
+eina::accessor<T> convert_to_return(Eina_Accessor* value, tag<Eina_Accessor*, eina::accessor<T>>)
+{
+  return eina::accessor<T>{ value };
 }
 template <typename T>
 struct is_future : std::false_type {};