[libgdata] Bug 592124 — G_LOG_DOMAIN not set for subdirectories



commit d9cc2f8b1c5a517190c758baa7b6c5aca64f045e
Author: Philip Withnall <philip tecnocode co uk>
Date:   Tue Aug 18 16:29:54 2009 +0100

    Bug 592124 â?? G_LOG_DOMAIN not set for subdirectories
    
    Patch based on one from Thibault Saunier <saunierthibault gmail com> to
    add G_LOG_DOMAIN to the Makefiles of build subdirectories, to ensure the
    "libgdata" log domain is set for all messages emitted by the library.
    Closes: bgo#592124

 gdata/atom/Makefile.am               |    1 +
 gdata/exif/Makefile.am               |    1 +
 gdata/gd/Makefile.am                 |    9 +++++----
 gdata/georss/Makefile.am             |    9 +++++----
 gdata/media/Makefile.am              |    9 +++++----
 gdata/services/calendar/Makefile.am  |    1 +
 gdata/services/contacts/Makefile.am  |    1 +
 gdata/services/documents/Makefile.am |   13 +++++++------
 gdata/services/picasaweb/Makefile.am |    1 +
 gdata/services/youtube/Makefile.am   |    1 +
 10 files changed, 28 insertions(+), 18 deletions(-)
---
diff --git a/gdata/atom/Makefile.am b/gdata/atom/Makefile.am
index d73f3a9..4a6fcf5 100644
--- a/gdata/atom/Makefile.am
+++ b/gdata/atom/Makefile.am
@@ -17,6 +17,7 @@ libgdataatom_la_CPPFLAGS = \
 	-I$(top_srcdir)			\
 	-I$(top_srcdir)/gdata		\
 	-I$(top_srcdir)/gdata/atom	\
+	-DG_LOG_DOMAIN=\"libgdata-Atom\"\
 	$(DISABLE_DEPRECATED)		\
 	$(AM_CPPFLAGS)
 
diff --git a/gdata/exif/Makefile.am b/gdata/exif/Makefile.am
index d11535e..84b8924 100644
--- a/gdata/exif/Makefile.am
+++ b/gdata/exif/Makefile.am
@@ -10,6 +10,7 @@ libgdataexif_la_CPPFLAGS = \
 	-I$(top_srcdir)			\
 	-I$(top_srcdir)/gdata		\
 	-I$(top_srcdir)/gdata/exif	\
+	-DG_LOG_DOMAIN=\"libgdata-EXIF\"\
 	$(DISABLE_DEPRECATED)		\
 	$(AM_CPPFLAGS)
 
diff --git a/gdata/gd/Makefile.am b/gdata/gd/Makefile.am
index 7ece991..eef3d74 100644
--- a/gdata/gd/Makefile.am
+++ b/gdata/gd/Makefile.am
@@ -26,10 +26,11 @@ libgdatagd_la_SOURCES = \
 	gdata-gd-name.c
 
 libgdatagd_la_CPPFLAGS = \
-	-I$(top_srcdir)			\
-	-I$(top_srcdir)/gdata		\
-	-I$(top_srcdir)/gdata/gd	\
-	$(DISABLE_DEPRECATED)		\
+	-I$(top_srcdir)				\
+	-I$(top_srcdir)/gdata			\
+	-I$(top_srcdir)/gdata/gd		\
+	-DG_LOG_DOMAIN=\"libgdata-GData\"	\
+	$(DISABLE_DEPRECATED)			\
 	$(AM_CPPFLAGS)
 
 libgdatagd_la_CFLAGS = \
diff --git a/gdata/georss/Makefile.am b/gdata/georss/Makefile.am
index 2062955..6a0a60f 100644
--- a/gdata/georss/Makefile.am
+++ b/gdata/georss/Makefile.am
@@ -7,10 +7,11 @@ noinst_LTLIBRARIES = libgdatageorss.la
 libgdatageorss_la_SOURCES = gdata-georss-where.c
 
 libgdatageorss_la_CPPFLAGS = \
-	-I$(top_srcdir)			\
-	-I$(top_srcdir)/gdata		\
-	-I$(top_srcdir)/gdata/georss	\
-	$(DISABLE_DEPRECATED)		\
+	-I$(top_srcdir)				\
+	-I$(top_srcdir)/gdata			\
+	-I$(top_srcdir)/gdata/georss		\
+	-DG_LOG_DOMAIN=\"libgdata-GeoRSS\"	\
+	$(DISABLE_DEPRECATED)			\
 	$(AM_CPPFLAGS)
 
 libgdatageorss_la_CFLAGS = \
diff --git a/gdata/media/Makefile.am b/gdata/media/Makefile.am
index 31e99b2..3828d08 100644
--- a/gdata/media/Makefile.am
+++ b/gdata/media/Makefile.am
@@ -49,10 +49,11 @@ libgdatamedia_la_SOURCES = \
 	gdata-media-group.h
 
 libgdatamedia_la_CPPFLAGS = \
-	-I$(top_srcdir)			\
-	-I$(top_srcdir)/gdata		\
-	-I$(top_srcdir)/gdata/media	\
-	$(DISABLE_DEPRECATED)		\
+	-I$(top_srcdir)				\
+	-I$(top_srcdir)/gdata			\
+	-I$(top_srcdir)/gdata/media		\
+	-DG_LOG_DOMAIN=\"libgdata-MediaRSS\"	\
+	$(DISABLE_DEPRECATED)			\
 	$(AM_CPPFLAGS)
 
 libgdatamedia_la_CFLAGS = \
diff --git a/gdata/services/calendar/Makefile.am b/gdata/services/calendar/Makefile.am
index 09c8df1..f116ec2 100644
--- a/gdata/services/calendar/Makefile.am
+++ b/gdata/services/calendar/Makefile.am
@@ -26,6 +26,7 @@ libgdatacalendar_la_CPPFLAGS = \
 	-I$(top_srcdir)				\
 	-I$(top_srcdir)/gdata			\
 	-I$(top_srcdir)/gdata/services/calendar	\
+	-DG_LOG_DOMAIN=\"libgdata-Calendar\"	\
 	$(DISABLE_DEPRECATED)			\
 	$(AM_CPPFLAGS)
 
diff --git a/gdata/services/contacts/Makefile.am b/gdata/services/contacts/Makefile.am
index 12d19fa..337f5e2 100644
--- a/gdata/services/contacts/Makefile.am
+++ b/gdata/services/contacts/Makefile.am
@@ -20,6 +20,7 @@ libgdatacontacts_la_CPPFLAGS = \
 	-I$(top_srcdir)				\
 	-I$(top_srcdir)/gdata			\
 	-I$(top_srcdir)/gdata/services/contacts	\
+	-DG_LOG_DOMAIN=\"libgdata-Contacts\"	\
 	$(DISABLE_DEPRECATED)			\
 	$(AM_CPPFLAGS)
 
diff --git a/gdata/services/documents/Makefile.am b/gdata/services/documents/Makefile.am
index 5cde8f2..0b69549 100644
--- a/gdata/services/documents/Makefile.am
+++ b/gdata/services/documents/Makefile.am
@@ -45,19 +45,20 @@ noinst_LTLIBRARIES = libgdatadocuments.la
 libgdatadocuments_la_SOURCES = \
 	$(GDATA_DOCUMENTS_ENUM_FILES)	\
 	gdata-documents-service.c	\
-	gdata-documents-feed.c	\
-	gdata-documents-entry.c	\
-	gdata-documents-text.c	\
+	gdata-documents-feed.c		\
+	gdata-documents-entry.c		\
+	gdata-documents-text.c		\
 	gdata-documents-presentation.c	\
 	gdata-documents-spreadsheet.c	\
 	gdata-documents-folder.c	\
 	gdata-documents-query.c
 
 libgdatadocuments_la_CPPFLAGS = \
-	-I$(top_srcdir)				\
-	-I$(top_srcdir)/gdata			\
+	-I$(top_srcdir)					\
+	-I$(top_srcdir)/gdata				\
 	-I$(top_srcdir)/gdata/services/documents	\
-	$(DISABLE_DEPRECATED)			\
+	-DG_LOG_DOMAIN=\"libgdata-Documents\"		\
+	$(DISABLE_DEPRECATED)				\
 	$(AM_CPPFLAGS)
 
 libgdatadocuments_la_CFLAGS = \
diff --git a/gdata/services/picasaweb/Makefile.am b/gdata/services/picasaweb/Makefile.am
index d249e0a..15d1bde 100644
--- a/gdata/services/picasaweb/Makefile.am
+++ b/gdata/services/picasaweb/Makefile.am
@@ -51,6 +51,7 @@ libgdatapicasaweb_la_CPPFLAGS = \
 	-I$(top_srcdir)					\
 	-I$(top_srcdir)/gdata				\
 	-I$(top_srcdir)/gdata/services/picasaweb	\
+	-DG_LOG_DOMAIN=\"libgdata-PicasaWeb\"		\
 	$(DISABLE_DEPRECATED)				\
 	$(AM_CPPFLAGS)
 
diff --git a/gdata/services/youtube/Makefile.am b/gdata/services/youtube/Makefile.am
index 09351a6..5bc36a6 100644
--- a/gdata/services/youtube/Makefile.am
+++ b/gdata/services/youtube/Makefile.am
@@ -59,6 +59,7 @@ libgdatayoutube_la_CPPFLAGS = \
 	-I$(top_srcdir)				\
 	-I$(top_srcdir)/gdata			\
 	-I$(top_srcdir)/gdata/services/youtube	\
+	-DG_LOG_DOMAIN=\"libgdata-YouTube\"	\
 	$(DISABLE_DEPRECATED)			\
 	$(AM_CPPFLAGS)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]