2014-05-02 15:55:51 -07:00
|
|
|
|
|
|
|
if HAVE_CXX11
|
|
|
|
|
|
|
|
### Generated headers
|
2015-04-13 11:31:59 -07:00
|
|
|
generated_edje_cxx_bindings = $(edje_eolian_files:%.eo=%.eo.hh)
|
|
|
|
generated_edje_cxx_impl_bindings = $(edje_eolian_files:%.eo=%.eo.impl.hh)
|
2014-05-02 15:55:51 -07:00
|
|
|
|
2014-06-26 12:14:42 -07:00
|
|
|
lib/edje/Edje.hh: $(generated_edje_cxx_bindings)
|
2014-08-27 13:30:08 -07:00
|
|
|
@echo @ECHO_E@ "#ifndef EFL_CXX_EDJE_HH\n#define EFL_CXX_EDJE_HH\n" > $(top_builddir)/src/lib/edje/Edje.hh
|
|
|
|
@echo @ECHO_E@ "#ifdef EFL_BETA_API_SUPPORT" >> $(top_builddir)/src/lib/edje/Edje.hh
|
2014-05-02 15:55:51 -07:00
|
|
|
@for i in $(generated_edje_cxx_bindings); do echo "#include <$$(basename $$i)>" >> $(top_builddir)/src/lib/edje/Edje.hh; done
|
2014-08-27 13:30:08 -07:00
|
|
|
@echo @ECHO_E@ "#endif\n\n#endif\n" >> $(top_builddir)/src/lib/edje/Edje.hh
|
2014-05-02 15:55:51 -07:00
|
|
|
|
2014-07-02 07:57:53 -07:00
|
|
|
generated_edje_cxx_all = \
|
|
|
|
$(generated_edje_cxx_bindings) \
|
2015-04-13 11:31:59 -07:00
|
|
|
$(generated_edje_cxx_impl_bindings) \
|
2014-07-02 07:57:53 -07:00
|
|
|
lib/edje/Edje.hh
|
|
|
|
|
|
|
|
CLEANFILES += $(generated_edje_cxx_all)
|
2014-07-01 09:38:49 -07:00
|
|
|
|
|
|
|
installed_edjecxxmainheadersdir = $(includedir)/edje-cxx-@VMAJ@/
|
2014-07-02 07:57:53 -07:00
|
|
|
nodist_installed_edjecxxmainheaders_DATA = $(generated_edje_cxx_all)
|
2014-07-01 09:38:49 -07:00
|
|
|
|
2014-05-02 15:55:51 -07:00
|
|
|
### Unit tests
|
|
|
|
|
|
|
|
if EFL_ENABLE_TESTS
|
|
|
|
|
|
|
|
check_PROGRAMS += tests/edje_cxx/cxx_compile_test
|
|
|
|
TESTS += tests/edje_cxx/cxx_compile_test
|
|
|
|
|
|
|
|
tests_edje_cxx_cxx_compile_test_SOURCES = tests/edje_cxx/cxx_compile_test.cc
|
2014-05-04 03:19:39 -07:00
|
|
|
tests_edje_cxx_cxx_compile_test_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
|
2014-06-30 11:32:52 -07:00
|
|
|
-I$(top_builddir)/src/lib/evas/canvas/ \
|
2014-07-18 07:57:26 -07:00
|
|
|
-I$(top_builddir)/src/lib/efl/interfaces/ \
|
2014-05-02 15:55:51 -07:00
|
|
|
-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/edje_cxx\" \
|
|
|
|
-DTESTS_BUILD_DIR=\"$(top_builddir)/src/tests/edje_cxx\" \
|
2015-06-24 07:23:01 -07:00
|
|
|
@CHECK_CFLAGS@ @ECORE_CXX_CFLAGS@ @EINA_CXX_CFLAGS@ @EVAS_CXX_CFLAGS@ @EDJE_CXX_CFLAGS@ @EO_CXX_CFLAGS@ \
|
2014-05-04 03:19:39 -07:00
|
|
|
@ECORE_CFLAGS@ @EINA_CFLAGS@ @EVAS_CFLAGS@ @EDJE_CFLAGS@ @EO_CFLAGS@
|
|
|
|
tests_edje_cxx_cxx_compile_test_LDADD = @CHECK_LIBS@ @USE_EDJE_LIBS@
|
|
|
|
tests_edje_cxx_cxx_compile_test_DEPENDENCIES = @USE_EDJE_INTERNAL_LIBS@
|
2014-05-02 15:55:51 -07:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|