forked from enlightenment/efl
45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
|
|
if HAVE_CXX11
|
|
|
|
### Generated headers
|
|
|
|
generated_edje_cxx_bindings = \
|
|
lib/edje/edje_object.eo.hh \
|
|
lib/edje/edje_edit.eo.hh
|
|
|
|
lib/edje/Edje.hh: $(generated_edje_cxx_bindings)
|
|
@echo -e "#ifndef EFL_CXX_EDJE_HH\n#define EFL_CXX_EDJE_HH\n" > $(top_builddir)/src/lib/edje/Edje.hh
|
|
@echo -e "#ifdef EFL_BETA_API_SUPPORT" >> $(top_builddir)/src/lib/edje/Edje.hh
|
|
@for i in $(generated_edje_cxx_bindings); do echo "#include <$$(basename $$i)>" >> $(top_builddir)/src/lib/edje/Edje.hh; done
|
|
@echo -e "#endif\n\n#endif\n" >> $(top_builddir)/src/lib/edje/Edje.hh
|
|
|
|
generated_edje_cxx_all = \
|
|
$(generated_edje_cxx_bindings) \
|
|
lib/edje/Edje.hh
|
|
|
|
CLEANFILES += $(generated_edje_cxx_all)
|
|
|
|
installed_edjecxxmainheadersdir = $(includedir)/edje-cxx-@VMAJ@/
|
|
nodist_installed_edjecxxmainheaders_DATA = $(generated_edje_cxx_all)
|
|
|
|
### 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
|
|
tests_edje_cxx_cxx_compile_test_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
|
|
-I$(top_builddir)/src/lib/evas/canvas/ \
|
|
-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/edje_cxx\" \
|
|
-DTESTS_BUILD_DIR=\"$(top_builddir)/src/tests/edje_cxx\" \
|
|
@CHECK_CFLAGS@ @ECORE_CXX_CFLAGS@ @EINA_CXX_CFLAGS@ @EDJE_CXX_CFLAGS@ @EO_CXX_CFLAGS@ \
|
|
@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@
|
|
|
|
endif
|
|
|
|
endif
|