[cogl/wip/cogl-1.14: 23/177] build: don't include deps/glib headers if glib enabled
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/cogl-1.14: 23/177] build: don't include deps/glib headers if glib enabled
- Date: Mon, 21 Jan 2013 15:46:52 +0000 (UTC)
commit 6a0f4bb7875526731e9e10aac35962a29bb93da7
Author: Robert Bragg <robert linux intel com>
Date: Mon Sep 24 16:42:44 2012 +0100
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)
cogl-gles2/Makefile.am | 7 +++++--
cogl/Makefile.am | 5 ++++-
examples/Makefile.am | 12 +++++++++---
tests/conform/Makefile.am | 7 +++++--
4 files changed, 23 insertions(+), 8 deletions(-)
---
diff --git a/cogl-gles2/Makefile.am b/cogl-gles2/Makefile.am
index a0e13fe..bbfcdde 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)
diff --git a/cogl/Makefile.am b/cogl/Makefile.am
index 1fc3538..604f7aa 100644
--- a/cogl/Makefile.am
+++ b/cogl/Makefile.am
@@ -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 \
diff --git a/examples/Makefile.am b/examples/Makefile.am
index e667afb..7cadaa1 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -1,8 +1,11 @@
include $(top_srcdir)/build/autotools/Makefile.am.silent
INCLUDES = \
- -I$(top_srcdir) \
- -I$(top_builddir)/deps/glib
+ -I$(top_srcdir)
+
+if !USE_GLIB
+INCLUDES += -I$(top_builddir)/deps/glib
+endif
AM_CFLAGS = \
$(COGL_DEP_CFLAGS) \
@@ -17,9 +20,12 @@ endif
common_ldadd = \
$(COGL_DEP_LIBS) \
- $(top_builddir)/deps/glib/libglib.la \
$(top_builddir)/cogl/libcogl.la
+if !USE_GLIB
+common_ldadd += $(top_builddir)/deps/glib/libglib.la
+endif
+
programs = cogl-info
cogl_info_SOURCES = cogl-info.c
diff --git a/tests/conform/Makefile.am b/tests/conform/Makefile.am
index cf302e8..4c9d17e 100644
--- a/tests/conform/Makefile.am
+++ b/tests/conform/Makefile.am
@@ -110,8 +110,11 @@ BUILT_SOURCES = wrappers
# testing (such as test-bitmask) will still compile
INCLUDES = \
-I$(top_srcdir) \
- -I$(top_builddir)/cogl \
- -I$(top_builddir)/deps/glib
+ -I$(top_builddir)/cogl
+
+if !USE_GLIB
+INCLUDES += -I$(top_builddir)/deps/glib
+endif
test_conformance_CPPFLAGS = \
-DCOGL_ENABLE_EXPERIMENTAL_API \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]