build: don't include deps/glib headers if glib enabled

If we're using the system glib library then we need to make sure not to
include headers under deps/glib otherwise we end up with with
incompatible typedefs that break the build.

Reviewed-by: Neil Roberts <neil@linux.intel.com>

(cherry picked from commit 5d5fc97b59951ec56a4193b7ee7909ebd3cfbb94)
This commit is contained in:
Robert Bragg
2012-09-24 16:42:44 +01:00
parent 1c0c1a126a
commit ab72a2275f
4 changed files with 23 additions and 8 deletions

View File

@ -18,7 +18,6 @@ lib_LTLIBRARIES =
INCLUDES = \
-I$(top_srcdir) \
-I$(top_builddir) \
-I$(top_builddir)/deps/glib \
-I$(srcdir)/tesselator \
-I$(srcdir)/winsys \
-I$(srcdir)/driver/gl \
@ -26,6 +25,10 @@ INCLUDES = \
-I$(srcdir)/driver/gl/gles \
$(NULL)
if !USE_GLIB
INCLUDES += -I$(top_builddir)/deps/glib
endif
AM_CPPFLAGS = \
-DG_LOG_DOMAIN=\"Cogl\" \
-DCOGL_COMPILATION \