[Cogl] Update the pre-defined cogl-defines.h for Visual Studio builds

Fan Chun-wei fanc999 at yahoo.com.tw
Wed Jul 24 02:50:49 PDT 2013


Hi,

As in the quest to keep the Cogl builds on Visual Studio up-to-date, I 
have updated the pre-defined cogl-defines.h for both the SDL+WGL and 
regular WGL builds to define COGL_HAS_GTYPE_SUPPORT as the Visual Studio 
builds assume that GLib was built and installed beforehand

With blessings, thank you!
-------------- next part --------------
From 8638242f33744cbe58dde40ba43f5af222b78ccc Mon Sep 17 00:00:00 2001
From: Chun-wei Fan <fanchunwei at src.gnome.org>
Date: Wed, 24 Jul 2013 17:32:57 +0800
Subject: [PATCH 2/2] MSVC builds: Update pre-defined cogl-define.h

...For both the regular WGL winsys and SDL winsys builds, that
COGL_HAS_GTYPE_SUPPORT is defined, so that the builds won't break as
Visual Studio builds do assume an existing installation of GLib.
---
 cogl/cogl-defines.h.win32.in     | 1 +
 cogl/cogl-defines.h.win32_SDL.in | 1 +
 2 files changed, 2 insertions(+)

diff --git a/cogl/cogl-defines.h.win32.in b/cogl/cogl-defines.h.win32.in
index da9cc5f..dd96600 100644
--- a/cogl/cogl-defines.h.win32.in
+++ b/cogl/cogl-defines.h.win32.in
@@ -33,6 +33,7 @@
 G_BEGIN_DECLS
 
 #define COGL_HAS_GLIB_SUPPORT 1
+#define COGL_HAS_GTYPE_SUPPORT 1
 #define COGL_HAS_WGL_SUPPORT 1
 #define COGL_HAS_WIN32_SUPPORT 1
 #define COGL_HAS_GL 1
diff --git a/cogl/cogl-defines.h.win32_SDL.in b/cogl/cogl-defines.h.win32_SDL.in
index dc9ea5d..ef16d50 100644
--- a/cogl/cogl-defines.h.win32_SDL.in
+++ b/cogl/cogl-defines.h.win32_SDL.in
@@ -33,6 +33,7 @@
 G_BEGIN_DECLS
 
 #define COGL_HAS_GLIB_SUPPORT 1
+#define COGL_HAS_GTYPE_SUPPORT 1
 #define COGL_HAS_WGL_SUPPORT 1
 #define COGL_HAS_WIN32_SUPPORT 1
 #define COGL_HAS_SDL_SUPPORT 1
-- 
1.8.3.msysgit.0


More information about the Cogl mailing list