Summary:
Added HAVE_CXX11 guards to Makefile*.am files for C++ binding to avoid
compilation errors for examples when C++11 isn't supported. This also
disable installation of all EFL CXX pkgconfig files.
Reviewers: cedric, stefan, stefan_schmidt
CC: cedric, savio
Differential Revision: https://phab.enlightenment.org/D831
Signed-off-by: Cedric Bail <cedric.bail@free.fr>
pkgconfig_DATA += \
pc/eina.pc \
-pc/eina-cxx.pc \
pc/eo.pc \
-pc/eo-cxx.pc \
pc/eolian.pc \
-pc/eolian-cxx.pc \
pc/eet.pc \
-pc/eet-cxx.pc \
pc/evas.pc \
pc/ecore.pc \
-pc/ecore-cxx.pc \
pc/ecore-con.pc \
pc/ecore-ipc.pc \
pc/ecore-file.pc \
pc/efreet-mime.pc \
pc/efreet-trash.pc \
pc/edje.pc \
-pc/edje-cxx.pc \
pc/emotion.pc \
pc/ethumb.pc \
-pc/ethumb_client.pc \
-pc/evas-cxx.pc
+pc/ethumb_client.pc
+
+if HAVE_CXX11
+pkgconfig_DATA += \
+pc/eina-cxx.pc \
+pc/evas-cxx.pc \
+pc/ecore-cxx.pc \
+pc/eolian-cxx.pc \
+pc/edje-cxx.pc \
+pc/eet-cxx.pc \
+pc/eo-cxx.pc
+endif
if BUILD_ENGINE_SOFTWARE_X11
pkgconfig_DATA += pc/evas-software-x11.pc
EXAMPLES_SUBDIRS = \
examples/eina \
-examples/eina_cxx \
examples/eo \
examples/eet \
examples/evas \
examples/ephysics \
examples/edje \
examples/emotion \
-examples/ethumb_client \
+examples/ethumb_client
+
+if HAVE_CXX11
+EXAMPLES_SUBDIRS += \
+examples/eina_cxx \
examples/eolian_cxx
+endif
+
if ALWAYS_BUILD_EXAMPLES
SUBDIRS += . $(EXAMPLES_SUBDIRS)
endif
+
DIST_SUBDIRS += $(EXAMPLES_SUBDIRS)
examples: all-am
evas_aspect_hints_CPPFLAGS = $(EDJE_COMMON_CPPFLAGS)
evas_aspect_hints_LDADD = $(EDJE_COMMON_LDADD)
+if HAVE_CXX11
+
EXTRA_PROGRAMS += evas_cxx_rectangle
evas_cxx_rectangle_SOURCES = evas_cxx_rectangle.cc
evas_cxx_rectangle_LDADD = $(ECORE_EVAS_COMMON_LDADD)
-I$(top_builddir)/src/bindings/evas_cxx \
$(AM_CPPFLAGS) @EVAS_CFLAGS@
+endif
+
EDJS = $(EDCS:%.edc=%.edj)
SRCS = \