[Cogl] [PATCH][1.16]MSVC Builds: Update predefined cogl-defines.h

Fan Chun-wei fanc999 at yahoo.com.tw
Wed Aug 28 02:24:28 PDT 2013


Hi,

As Cogl-Path was split from the main Cogl library, the Cogl-Path headers 
are not included by default during build time unless 
COGL_HAS_COGL_PATH_SUPPORT is defined in cogl-defines.h.  This is 
necessary, at least for Cogl-1.16.x, as many libraries/apps using Cogl 
expects that Cogl-Path is available, such as Clutter.  This patch 
updates the predefined cogl-defines.h so that this macro may be defined 
so that the builds of items like Clutter will not break.

With blessings, thank you!
-------------- next part --------------
From c75abe2603ea1895c76007bb3ea3739f611f4745 Mon Sep 17 00:00:00 2001
From: Chun-wei Fan <fanchunwei at src.gnome.org>
Date: Wed, 28 Aug 2013 09:20:09 +0800
Subject: [PATCH] MSVC Builds: Update Predefined cogl-defines.h

Cogl-Path was split out from the main Cogl library to become a standalone
library, but many libraries/appplications using Cogl (such as Clutter)
expects that Cogl-Path is still in Cogl.  Define
COGL_HAS_COGL_PATH_SUPPORT here, as it will always be needed, at least for
the 1.16 release series, so that builds of items using Cogl would not
break, such as Clutter.
---
 cogl/cogl-defines.h.win32.in     |    1 +
 cogl/cogl-defines.h.win32_SDL.in |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/cogl/cogl-defines.h.win32.in b/cogl/cogl-defines.h.win32.in
index dd96600..f864826 100644
--- a/cogl/cogl-defines.h.win32.in
+++ b/cogl/cogl-defines.h.win32.in
@@ -36,6 +36,7 @@ G_BEGIN_DECLS
 #define COGL_HAS_GTYPE_SUPPORT 1
 #define COGL_HAS_WGL_SUPPORT 1
 #define COGL_HAS_WIN32_SUPPORT 1
+#define COGL_HAS_COGL_PATH_SUPPORT 1
 #define COGL_HAS_GL 1
 #define CLUTTER_COGL_HAS_GL 1
 
diff --git a/cogl/cogl-defines.h.win32_SDL.in b/cogl/cogl-defines.h.win32_SDL.in
index ef16d50..d80b30f 100644
--- a/cogl/cogl-defines.h.win32_SDL.in
+++ b/cogl/cogl-defines.h.win32_SDL.in
@@ -37,6 +37,7 @@ G_BEGIN_DECLS
 #define COGL_HAS_WGL_SUPPORT 1
 #define COGL_HAS_WIN32_SUPPORT 1
 #define COGL_HAS_SDL_SUPPORT 1
+#define COGL_HAS_COGL_PATH_SUPPORT 1
 #define COGL_HAS_GL 1
 #define CLUTTER_COGL_HAS_GL 1
 
-- 
1.7.7.1.msysgit.0


More information about the Cogl mailing list