summaryrefslogtreecommitdiff
path: root/cogl/cogl-context.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2010-09-13 11:30:30 +0100
committerEmmanuele Bassi <ebassi@linux.intel.com>2010-09-29 14:40:15 +0100
commiteb179d4b679f0dc9d25e2a8e0f13a99f678b1bf9 (patch)
tree4f336cedf8cfa5ca0fdc930b123e220df0fc8bf3 /cogl/cogl-context.h
parent14dbe81deb8c9d583c8c56e4ede45a46880c2a76 (diff)
downloadcogl-eb179d4b679f0dc9d25e2a8e0f13a99f678b1bf9.tar.gz
build: Start moving to a non-recursive layout
*** WARNING: THIS COMMIT CHANGES THE BUILD *** Do not recurse into the backend directories to build private, internal libraries. We only recurse from clutter/ into the cogl sub-directory; from there, we don't recurse any further. All the backend-specific code in Cogl and Clutter is compiled conditionally depending on the macros defined by the configure script. We still recurse from the top-level directory into doc, clutter and tests, because gtk-doc and tests do not deal nicely with non-recursive layouts. This change makes Clutter compile slightly faster, and cleans up the build system, especially when dealing with introspection data. Ideally, we also want to make Cogl part of the top-level build, so that we can finally drop the sed trick to change the shared library from the GIR before compiling it. Currently disabled: ‣ OSX backend ‣ Fruity backend Currently enabled but untested: ‣ EGL backend ‣ Windows backend
Diffstat (limited to 'cogl/cogl-context.h')
-rw-r--r--cogl/cogl-context.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/cogl/cogl-context.h b/cogl/cogl-context.h
index 54815349..028b79fa 100644
--- a/cogl/cogl-context.h
+++ b/cogl/cogl-context.h
@@ -25,7 +25,15 @@
#define __COGL_CONTEXT_H
#include "cogl-internal.h"
-#include "cogl-context-driver.h"
+
+#if HAVE_COGL_GL
+#include "cogl-context-driver-gl.h"
+#endif
+
+#if HAVE_COGL_GLES || HAVE_COGL_GLES2
+#include "cogl-context-driver-gles.h"
+#endif
+
#include "cogl-context-winsys.h"
#include "cogl-primitives.h"
#include "cogl-clip-stack.h"