[Cogl] [PATCH ] Fix the pre-defined cogl-defines.h

Neil Roberts neil at linux.intel.com
Thu Mar 14 08:55:06 PDT 2013


Thanks for the patch. However, I can't get it to apply. It looks like
the files you are diffing against are slightly different from those in
git because some of the context lines have an extra space in front. Are
you basing the patch on top of some other changes that are not in git?

Presumably we would only want to apply the parts that change the version
number to the cogl-1.14 branch. Is that correct? However it looks like
the rest of the patch should also be applied to master branch. If that
is the case, could you please split up the patch into two parts so that
we can apply one of the parts to both branches and the other part to
only the cogl-1.14 branch.

For any subsequent patches send to the mailing list, could you please
send a new email rather than pressing reply on an unrelated message in
the list. These patches are now intertwined with the thread for the
CoglGST patches which makes it a bit harder to follow. Thanks.

Regards,
- Neil

Fan Chun-wei <fanc999 at yahoo.com.tw> writes:

> ...for the Visual Studio builds, so that:
> -They can reflect the ones given in the autotools builds more accurately
> -The will "#define COGL_HAS_GTYPE_SUPPORT 1", as currently all Visual
>   Studio builds are linked to an existing installation of GLib
> -They will have the correct versioning info
> ---
>   cogl/cogl-defines.h.win32.in     |   15 +++++----------
>   cogl/cogl-defines.h.win32_SDL.in |   15 +++++----------
>   2 files changed, 10 insertions(+), 20 deletions(-)
>
> diff --git a/cogl/cogl-defines.h.win32.in b/cogl/cogl-defines.h.win32.in
> index da9cc5f..2ee5d89 100644
> --- a/cogl/cogl-defines.h.win32.in
> +++ b/cogl/cogl-defines.h.win32.in
> @@ -28,11 +28,8 @@
>   #ifndef __COGL_DEFINES_H__
>   #define __COGL_DEFINES_H__
>
> -#include <glib.h>
> -
> -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
> @@ -60,11 +57,9 @@ G_BEGIN_DECLS
>   #define COGL_SYSDEF_POLLHUP 16
>   #define COGL_SYSDEF_POLLNVAL 32
>
> -#define COGL_VERSION_MAJOR_INTERNAL @COGL_MAJOR_VERSION@
> -#define COGL_VERSION_MINOR_INTERNAL @COGL_MINOR_VERSION@
> -#define COGL_VERSION_MICRO_INTERNAL @COGL_MICRO_VERSION@
> -#define COGL_VERSION_STRING_INTERNAL "@COGL_VERSION@"
> -
> -G_END_DECLS
> +#define COGL_VERSION_MAJOR_INTERNAL 1
> +#define COGL_VERSION_MINOR_INTERNAL @COGL_1_MINOR_VERSION@
> +#define COGL_VERSION_MICRO_INTERNAL @COGL_1_MICRO_VERSION@
> +#define COGL_VERSION_STRING_INTERNAL "@COGL_1_VERSION@"
>
>   #endif
> diff --git a/cogl/cogl-defines.h.win32_SDL.in 
> b/cogl/cogl-defines.h.win32_SDL.in
> index dc9ea5d..7e8e2a2 100644
> --- a/cogl/cogl-defines.h.win32_SDL.in
> +++ b/cogl/cogl-defines.h.win32_SDL.in
> @@ -28,11 +28,8 @@
>   #ifndef __COGL_DEFINES_H__
>   #define __COGL_DEFINES_H__
>
> -#include <glib.h>
> -
> -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
> @@ -61,11 +58,9 @@ G_BEGIN_DECLS
>   #define COGL_SYSDEF_POLLHUP 16
>   #define COGL_SYSDEF_POLLNVAL 32
>
> -#define COGL_VERSION_MAJOR_INTERNAL @COGL_MAJOR_VERSION@
> -#define COGL_VERSION_MINOR_INTERNAL @COGL_MINOR_VERSION@
> -#define COGL_VERSION_MICRO_INTERNAL @COGL_MICRO_VERSION@
> -#define COGL_VERSION_STRING_INTERNAL "@COGL_VERSION@"
> -
> -G_END_DECLS
> +#define COGL_VERSION_MAJOR_INTERNAL 1
> +#define COGL_VERSION_MINOR_INTERNAL @COGL_1_MINOR_VERSION@
> +#define COGL_VERSION_MICRO_INTERNAL @COGL_1_MICRO_VERSION@
> +#define COGL_VERSION_STRING_INTERNAL "@COGL_1_VERSION@"
>
>   #endif
> -- 
> 1.7.7.1.msysgit.0
>
>
> _______________________________________________
> Cogl mailing list
> Cogl at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/cogl
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.



More information about the Cogl mailing list