2014-02-26 13:37:21 -08:00
|
|
|
|
|
|
|
### Library
|
|
|
|
|
2014-06-02 06:54:06 -07:00
|
|
|
if HAVE_CXX11
|
|
|
|
|
2014-05-02 15:55:51 -07:00
|
|
|
installed_ecorecxxmainheadersdir = $(includedir)/ecore-cxx-@VMAJ@
|
|
|
|
dist_installed_ecorecxxmainheaders_DATA = bindings/ecore_cxx/Ecore.hh
|
|
|
|
|
|
|
|
generated_ecore_cxx_bindings = \
|
2014-08-01 05:59:46 -07:00
|
|
|
lib/ecore/ecore_poller.eo.hh \
|
2014-05-02 15:55:51 -07:00
|
|
|
lib/ecore/ecore_job.eo.hh \
|
|
|
|
lib/ecore/ecore_idler.eo.hh \
|
|
|
|
lib/ecore/ecore_idle_exiter.eo.hh \
|
|
|
|
lib/ecore/ecore_animator.eo.hh \
|
|
|
|
lib/ecore/ecore_parent.eo.hh
|
|
|
|
|
2014-07-01 13:08:47 -07:00
|
|
|
lib/ecore/Ecore.eo.hh: $(generated_ecore_cxx_bindings)
|
2014-08-27 13:30:08 -07:00
|
|
|
@echo @ECHO_E@ "#ifndef EFL_CXX_ECORE_HH\n#define EFL_CXX_ECORE_HH\n" > $(top_builddir)/src/lib/ecore/Ecore.eo.hh
|
|
|
|
@echo @ECHO_E@ "#ifdef EFL_BETA_API_SUPPORT" >> $(top_builddir)/src/lib/ecore/Ecore.eo.hh
|
2014-05-02 15:55:51 -07:00
|
|
|
@for i in $(generated_ecore_cxx_bindings); do echo "#include <$$(basename $$i)>" >> $(top_builddir)/src/lib/ecore/Ecore.eo.hh; done
|
2014-08-27 13:30:08 -07:00
|
|
|
@echo @ECHO_E@ "#endif\n\n#endif\n" >> $(top_builddir)/src/lib/ecore/Ecore.eo.hh
|
2014-05-02 15:55:51 -07:00
|
|
|
|
2014-07-02 07:57:53 -07:00
|
|
|
generated_ecore_cxx_all = \
|
|
|
|
$(generated_ecore_cxx_bindings) \
|
|
|
|
lib/ecore/Ecore.eo.hh
|
|
|
|
|
|
|
|
CLEANFILES += $(generated_ecore_cxx_all)
|
2014-07-01 09:38:49 -07:00
|
|
|
|
|
|
|
installed_ecorecxxheadersdir = $(includedir)/ecore-cxx-@VMAJ@
|
2014-07-02 07:57:53 -07:00
|
|
|
nodist_installed_ecorecxxheaders_DATA = $(generated_ecore_cxx_all)
|
2014-02-26 13:37:21 -08:00
|
|
|
|
|
|
|
### Unit tests
|
|
|
|
|
|
|
|
if EFL_ENABLE_TESTS
|
|
|
|
|
2014-05-02 15:55:51 -07:00
|
|
|
check_PROGRAMS += tests/ecore_cxx/ecore_cxx_suite tests/ecore_cxx/cxx_compile_test
|
|
|
|
TESTS += tests/ecore_cxx/ecore_cxx_suite tests/ecore_cxx/cxx_compile_test
|
2014-02-26 13:37:21 -08:00
|
|
|
|
|
|
|
tests_ecore_cxx_ecore_cxx_suite_SOURCES = \
|
|
|
|
tests/ecore_cxx/ecore_cxx_suite.cc \
|
|
|
|
tests/ecore_cxx/ecore_cxx_test_safe_call.cc
|
|
|
|
|
|
|
|
tests_ecore_cxx_ecore_cxx_suite_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
|
|
|
|
-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/ecore_cxx\" \
|
|
|
|
-DTESTS_BUILD_DIR=\"$(top_builddir)/src/tests/ecore_cxx\" \
|
2014-05-04 03:19:39 -07:00
|
|
|
@CHECK_CFLAGS@ @ECORE_CXX_CFLAGS@ @EINA_CXX_CFLAGS@ @EINA_CFLAGS@ \
|
|
|
|
@ECORE_CFLAGS@ @EO_CFLAGS@ @EO_CXX_CFLAGS@
|
2014-02-26 13:37:21 -08:00
|
|
|
|
2014-05-04 03:19:39 -07:00
|
|
|
tests_ecore_cxx_ecore_cxx_suite_LDADD = @CHECK_LIBS@ @USE_ECORE_LIBS@
|
|
|
|
tests_ecore_cxx_ecore_cxx_suite_DEPENDENCIES = @USE_ECORE_INTERNAL_LIBS@
|
2014-02-26 13:37:21 -08:00
|
|
|
|
2014-05-02 15:55:51 -07:00
|
|
|
tests_ecore_cxx_cxx_compile_test_SOURCES = tests/ecore_cxx/cxx_compile_test.cc
|
2014-05-04 03:19:39 -07:00
|
|
|
tests_ecore_cxx_cxx_compile_test_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
|
2014-07-19 10:31:16 -07:00
|
|
|
-I$(top_builddir)/src/lib/efl/interfaces/ \
|
2014-05-02 15:55:51 -07:00
|
|
|
-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/ecore_cxx\" \
|
|
|
|
-DTESTS_BUILD_DIR=\"$(top_builddir)/src/tests/ecore_cxx\" \
|
2014-05-04 03:19:39 -07:00
|
|
|
@CHECK_CFLAGS@ @ECORE_CXX_CFLAGS@ @EINA_CXX_CFLAGS@ @EINA_CFLAGS@ \
|
|
|
|
@ECORE_CFLAGS@ @EO_CFLAGS@ @EO_CXX_CFLAGS@
|
|
|
|
|
2014-05-02 15:55:51 -07:00
|
|
|
tests_ecore_cxx_cxx_compile_test_LDADD = @CHECK_LIBS@ @USE_ECORE_LIBS@
|
|
|
|
tests_ecore_cxx_cxx_compile_test_DEPENDENCIES = @USE_ECORE_INTERNAL_LIBS@
|
|
|
|
|
2014-02-26 13:37:21 -08:00
|
|
|
endif
|
|
|
|
endif
|