build: don't inc egl headers for non EGL builds
For example when building on windows we don't want to require EGL headers when compiling cogl-renderer.c or cogl-texture-2d.c so we make sure not to include cogl-winsys-egl-private.h if we aren't supporting EGL. Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
parent
40b14c6084
commit
c2729e4ea8
@ -43,7 +43,9 @@
|
||||
#include "cogl-display-private.h"
|
||||
#include "cogl-winsys-private.h"
|
||||
#include "cogl-winsys-stub-private.h"
|
||||
#ifdef COGL_HAS_EGL_SUPPORT
|
||||
#include "cogl-winsys-egl-private.h"
|
||||
#endif
|
||||
#include "cogl-config-private.h"
|
||||
|
||||
#if COGL_HAS_XLIB_SUPPORT
|
||||
|
@ -39,7 +39,9 @@
|
||||
#include "cogl-journal-private.h"
|
||||
#include "cogl-pipeline-opengl-private.h"
|
||||
#include "cogl-framebuffer-private.h"
|
||||
#ifdef COGL_HAS_EGL_SUPPORT
|
||||
#include "cogl-winsys-egl-private.h"
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
Loading…
Reference in New Issue
Block a user