diff options
author | Robert Bragg <robert@linux.intel.com> | 2012-09-24 16:42:44 +0100 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2013-01-22 17:47:58 +0000 |
commit | ab72a2275fd3dcee2f93be83d3d8cf6aa8358f9c (patch) | |
tree | a6494886ae0e175829564511504ab1a60d80399e /cogl-gles2 | |
parent | 1c0c1a126a8a5b4156751ec17fdea4720e1fc0b4 (diff) | |
download | cogl-ab72a2275fd3dcee2f93be83d3d8cf6aa8358f9c.tar.gz |
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)
Diffstat (limited to 'cogl-gles2')
-rw-r--r-- | cogl-gles2/Makefile.am | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cogl-gles2/Makefile.am b/cogl-gles2/Makefile.am index a0e13fe3..bbfcdde6 100644 --- a/cogl-gles2/Makefile.am +++ b/cogl-gles2/Makefile.am @@ -8,8 +8,11 @@ lib_LTLIBRARIES = libcogl-gles2.la INCLUDES = \ -I$(top_srcdir) \ - -I$(top_builddir) \ - -I$(top_builddir)/deps/glib + -I$(top_builddir) + +if !USE_GLIB +INCLUDES += -I$(top_builddir)/deps/glib +endif AM_CFLAGS = $(COGL_DEP_CFLAGS) $(COGL_EXTRA_CFLAGS) $(MAINTAINER_CFLAGS) |