summaryrefslogtreecommitdiff
path: root/src/Makefile_Eolian_Cxx.am
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousasilva@gmail.com>2014-12-23 17:40:11 -0200
committerVitor Sousa <vitorsousasilva@gmail.com>2015-01-05 15:52:27 -0200
commit0685885c2a488c41f118118de8506f8d286e3eea (patch)
tree8bfdf66654d27e7481ab73b81b53ec857fb4ef95 /src/Makefile_Eolian_Cxx.am
parent6519ae6ed98789857722cd1d6e3c1c254ad229e7 (diff)
eolian_cxx: Add implicit conversion of the returned pointer of C++ wrappers
Overloaded address-of operator for C++ Eolian wrappers for implicit converting to any ancestor pointer type when getting the object memory address. Added new grammars to aid the creation of the pointer wrappers responsible of doing the implicit conversions. Added a unit test which checks the address-of overload for arbitrary classes. Added new .eo files to be used in it.
Diffstat (limited to '')
-rw-r--r--src/Makefile_Eolian_Cxx.am26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/Makefile_Eolian_Cxx.am b/src/Makefile_Eolian_Cxx.am
index ebedc3d..88f1186 100644
--- a/src/Makefile_Eolian_Cxx.am
+++ b/src/Makefile_Eolian_Cxx.am
@@ -55,6 +55,9 @@ bin_eolian_cxx_eolian_cxx_DEPENDENCIES = @USE_EOLIAN_INTERNAL_LIBS@
55 55
56if EFL_ENABLE_TESTS 56if EFL_ENABLE_TESTS
57 57
58EOLIAN_FLAGS += \
59 -I$(srcdir)
60
58check_PROGRAMS += tests/eolian_cxx/eolian_cxx_suite 61check_PROGRAMS += tests/eolian_cxx/eolian_cxx_suite
59TESTS += tests/eolian_cxx/eolian_cxx_suite 62TESTS += tests/eolian_cxx/eolian_cxx_suite
60 63
@@ -62,15 +65,29 @@ tests_eolian_cxx_eolian_cxx_suite_SOURCES = \
62tests/eolian_cxx/eolian_cxx_suite.cc \ 65tests/eolian_cxx/eolian_cxx_suite.cc \
63tests/eolian_cxx/eolian_cxx_test_parse.cc \ 66tests/eolian_cxx/eolian_cxx_test_parse.cc \
64tests/eolian_cxx/callback.c \ 67tests/eolian_cxx/callback.c \
68tests/eolian_cxx/a.c \
69tests/eolian_cxx/b.c \
70tests/eolian_cxx/c.c \
71tests/eolian_cxx/d.c \
65tests/eolian_cxx/eolian_cxx_test_callback.cc \ 72tests/eolian_cxx/eolian_cxx_test_callback.cc \
73tests/eolian_cxx/eolian_cxx_test_address_of.cc \
66tests/eolian_cxx/eolian_cxx_test_wrapper.cc \ 74tests/eolian_cxx/eolian_cxx_test_wrapper.cc \
67tests/eolian_cxx/eolian_cxx_test_generate.cc 75tests/eolian_cxx/eolian_cxx_test_generate.cc
68 76
69tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-eolian_cxx_test_callback.$(OBJEXT): tests/eolian_cxx/callback.eo.hh 77tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-eolian_cxx_test_callback.$(OBJEXT): tests/eolian_cxx/callback.eo.hh
78tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-eolian_cxx_test_address_of.$(OBJEXT): tests/eolian_cxx/a.eo.hh tests/eolian_cxx/b.eo.hh tests/eolian_cxx/c.eo.hh tests/eolian_cxx/d.eo.hh
70 79
71tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-callback.$(OBJEXT): tests/eolian_cxx/callback.eo.c tests/eolian_cxx/callback.eo.h 80tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-callback.$(OBJEXT): tests/eolian_cxx/callback.eo.c tests/eolian_cxx/callback.eo.h
81tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-a.$(OBJEXT): tests/eolian_cxx/a.eo.c tests/eolian_cxx/a.eo.h
82tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-b.$(OBJEXT): tests/eolian_cxx/b.eo.c tests/eolian_cxx/b.eo.h
83tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-c.$(OBJEXT): tests/eolian_cxx/c.eo.c tests/eolian_cxx/c.eo.h
84tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-d.$(OBJEXT): tests/eolian_cxx/d.eo.c tests/eolian_cxx/d.eo.h
72 85
73CLEANFILES += tests/eolian_cxx/callback.eo.hh tests/eolian_cxx/callback.eo.c tests/eolian_cxx/callback.eo.h 86CLEANFILES += tests/eolian_cxx/callback.eo.hh tests/eolian_cxx/callback.eo.c tests/eolian_cxx/callback.eo.h \
87tests/eolian_cxx/a.eo.hh tests/eolian_cxx/a.eo.c tests/eolian_cxx/a.eo.h \
88tests/eolian_cxx/b.eo.hh tests/eolian_cxx/b.eo.c tests/eolian_cxx/b.eo.h \
89tests/eolian_cxx/c.eo.hh tests/eolian_cxx/c.eo.c tests/eolian_cxx/c.eo.h \
90tests/eolian_cxx/d.eo.hh tests/eolian_cxx/d.eo.c tests/eolian_cxx/d.eo.h
74 91
75tests_eolian_cxx_eolian_cxx_suite_CXXFLAGS = \ 92tests_eolian_cxx_eolian_cxx_suite_CXXFLAGS = \
76-I$(top_builddir)/src/lib/efl \ 93-I$(top_builddir)/src/lib/efl \
@@ -93,7 +110,12 @@ tests_eolian_cxx_eolian_cxx_suite_DEPENDENCIES = @USE_EOLIAN_INTERNAL_LIBS@
93 110
94endif 111endif
95 112
96EXTRA_DIST += tests/eolian_cxx/callback.eo 113EXTRA_DIST += tests/eolian_cxx/callback.eo \
114tests/eolian_cxx/a.eo \
115tests/eolian_cxx/b.eo \
116tests/eolian_cxx/c.eo \
117tests/eolian_cxx/d.eo
118
97include Makefile_Eolian_Cxx_Helper.am 119include Makefile_Eolian_Cxx_Helper.am
98 120
99endif 121endif