From 0ca5eeaeae305c97eb3bcbc4d1d7c8ce09518879 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 12 Jan 2009 11:21:06 +0000 Subject: [PATCH] Declare G_LOG_DOMAIN for COGL In order to get properly namespaced debug and warning messages inside COGL code we need to define the G_LOG_DOMAIN macro. --- common/Makefile.am | 1 + gl/Makefile.am | 1 + gles/Makefile.am | 1 + 3 files changed, 3 insertions(+) diff --git a/common/Makefile.am b/common/Makefile.am index db0f0b42d..fb2adf28f 100644 --- a/common/Makefile.am +++ b/common/Makefile.am @@ -5,6 +5,7 @@ INCLUDES = \ -I$(top_srcdir)/clutter/cogl/$(CLUTTER_COGL) \ -I$(top_builddir)/clutter \ -I$(top_builddir)/clutter/cogl \ + -DG_LOG_DOMAIN=\"Cogl-Common\" \ -DCLUTTER_COMPILATION \ $(CLUTTER_CFLAGS) \ $(CLUTTER_DEBUG_CFLAGS) \ diff --git a/gl/Makefile.am b/gl/Makefile.am index 2d90ba9c0..7635b1b90 100644 --- a/gl/Makefile.am +++ b/gl/Makefile.am @@ -20,6 +20,7 @@ INCLUDES = \ -I$(top_srcdir)/clutter/cogl/$(CLUTTER_COGL) \ -I$(top_builddir)/clutter \ -I$(top_builddir)/clutter/cogl \ + -DG_LOG_DOMAIN=\"Cogl-GL\" \ -DCLUTTER_COMPILATION \ $(CLUTTER_CFLAGS) \ $(CLUTTER_DEBUG_CFLAGS) \ diff --git a/gles/Makefile.am b/gles/Makefile.am index 19cf0a0d7..1731d2cb5 100644 --- a/gles/Makefile.am +++ b/gles/Makefile.am @@ -20,6 +20,7 @@ INCLUDES = \ -I$(top_srcdir)/clutter/cogl/$(CLUTTER_COGL) \ -I$(top_builddir)/clutter \ -I$(top_builddir)/clutter/cogl \ + -DG_LOG_DOMAIN=\"Cogl-GLES\" \ -DCLUTTER_COMPILATION \ $(CLUTTER_CFLAGS) \ $(CLUTTER_DEBUG_CFLAGS) \