summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cogl-gles2/Makefile.am7
-rw-r--r--cogl/Makefile.am5
-rw-r--r--examples/Makefile.am12
-rw-r--r--tests/conform/Makefile.am7
4 files changed, 23 insertions, 8 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)
diff --git a/cogl/Makefile.am b/cogl/Makefile.am
index 1fc35380..604f7aa5 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 e667afb2..7cadaa11 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 cf302e8d..4c9d17e3 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 \