summaryrefslogtreecommitdiff
path: root/src/Makefile_Evas_Cxx.am
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-05-23 12:01:30 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-05-23 15:05:50 -0300
commite3c8b280c639058c54f5576f189d0dc288105fc7 (patch)
treee313fa05bd9d2b2cb88623f6adea2c3b396b66e8 /src/Makefile_Evas_Cxx.am
parent930f39b91b12b311f40cd96b4cf2e85085b01832 (diff)
c++: Reorganized C++ binding generation
Moved all generation to a single Makefile_Cxx.am file instead of throughout the whole project. And fixed C++ generation on Elementary after elm merge.
Diffstat (limited to 'src/Makefile_Evas_Cxx.am')
-rw-r--r--src/Makefile_Evas_Cxx.am48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/Makefile_Evas_Cxx.am b/src/Makefile_Evas_Cxx.am
deleted file mode 100644
index 40cacee..0000000
--- a/src/Makefile_Evas_Cxx.am
+++ /dev/null
@@ -1,48 +0,0 @@
1
2if HAVE_CXX11
3
4### Generated headers
5
6generated_evas_canvas_cxx_bindings = $(evas_eolian_pub_files:%.eo=%.eo.hh)
7generated_evas_canvas_cxx_impl_bindings = $(evas_eolian_pub_files:%.eo=%.eo.impl.hh)
8
9lib/evas/Evas.hh: $(generated_evas_canvas_cxx_bindings)
10 @echo @ECHO_E@ "#ifndef EFL_CXX_EVAS_HH\n#define EFL_CXX_EVAS_HH\n" > $(top_builddir)/src/lib/evas/Evas.hh
11 @echo @ECHO_E@ "#ifdef EFL_BETA_API_SUPPORT" >> $(top_builddir)/src/lib/evas/Evas.hh
12 @for i in $(generated_evas_canvas_cxx_bindings); do echo "#include <canvas/$$(basename $$i)>" >> $(top_builddir)/src/lib/evas/Evas.hh; done
13 @echo @ECHO_E@ "#endif\n\n#endif\n" >> $(top_builddir)/src/lib/evas/Evas.hh
14
15generated_evas_canvas_cxx_all = \
16 $(generated_evas_canvas_cxx_bindings) \
17 $(generated_evas_canvas_cxx_impl_bindings) \
18 lib/evas/Evas.hh
19
20CLEANFILES += $(generated_evas_canvas_cxx_all)
21
22installed_evascxxmainheadersdir = $(includedir)/evas-cxx-@VMAJ@/
23nodist_installed_evascxxmainheaders_DATA = lib/evas/Evas.hh
24
25installed_evascxxcanvasheadersdir = $(includedir)/evas-cxx-@VMAJ@/canvas
26nodist_installed_evascxxcanvasheaders_DATA = $(generated_evas_canvas_cxx_all)
27
28### Unit tests
29
30if EFL_ENABLE_TESTS
31
32check_PROGRAMS += tests/evas_cxx/cxx_compile_test
33TESTS += tests/evas_cxx/cxx_compile_test
34
35tests_evas_cxx_cxx_compile_test_SOURCES = tests/evas_cxx/cxx_compile_test.cc
36tests_evas_cxx_cxx_compile_test_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
37 -I$(top_builddir)/src/lib/efl/interfaces/ \
38 -I$(top_builddir)/src/lib/evas/canvas/ \
39 -I$(top_builddir)/src/lib/evas/include/ \
40 -DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/evas_cxx\" \
41 -DTESTS_BUILD_DIR=\"$(top_builddir)/src/tests/evas_cxx\" \
42 @CHECK_CFLAGS@ @ECORE_CXX_CFLAGS@ @EINA_CXX_CFLAGS@ @EVAS_CXX_CFLAGS@ @EO_CXX_CFLAGS@ \
43 @ECORE_CFLAGS@ @EINA_CFLAGS@ @EVAS_CFLAGS@ @EO_CFLAGS@
44tests_evas_cxx_cxx_compile_test_LDADD = @CHECK_LIBS@ @USE_EVAS_LIBS@
45tests_evas_cxx_cxx_compile_test_DEPENDENCIES = @USE_EVAS_INTERNAL_LIBS@
46
47endif
48endif