[sapwood] add logging domains
- From: Sven Herzberg <herzi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sapwood] add logging domains
- Date: Fri, 13 Aug 2010 11:40:01 +0000 (UTC)
commit 5a0a1bc8e5c1f8e10e3a489015ea69f4e73e6ab8
Author: Sven Herzberg <herzi gnome-de org>
Date: Wed Aug 11 13:22:15 2010 +0200
add logging domains
Add logging domains so the messages' origin can be properly identified.
* engine/Makefile.am,
* protocol/Makefile.am: add logging domains
engine/Makefile.am | 9 ++++++---
protocol/Makefile.am | 2 +-
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/engine/Makefile.am b/engine/Makefile.am
index 0db260d..692a7bb 100644
--- a/engine/Makefile.am
+++ b/engine/Makefile.am
@@ -34,6 +34,12 @@ libsapwood_client_la_LIBADD=\
$(top_builddir)/protocol/libprotocol.la \
$(NULL)
+libsapwood_private_la_CPPFLAGS=\
+ -DG_LOG_DOMAIN=\""sapwood-private"\" \
+ $(AM_CPPFLAGS)
+libsapwood_private_la_LIBADD=\
+ libsapwood-client.la \
+ $(NULL)
libsapwood_private_la_SOURCES=\
sapwood-debug.h \
sapwood-pixmap.c \
@@ -42,9 +48,6 @@ libsapwood_private_la_SOURCES=\
theme-pixbuf.c \
theme-pixbuf.h \
$(NULL)
-libsapwood_private_la_LIBADD=\
- libsapwood-client.la \
- $(NULL)
sapwood-paths.h: Makefile
$(AM_V_GEN) echo "#define SAPWOOD_SERVER \"$(daemondir)/sapwood-server\"" > $@
diff --git a/protocol/Makefile.am b/protocol/Makefile.am
index 24cd2a5..623d337 100644
--- a/protocol/Makefile.am
+++ b/protocol/Makefile.am
@@ -1,7 +1,7 @@
include $(top_srcdir)/Makefile.decl
noinst_LTLIBRARIES=libprotocol.la
-libprotocol_la_CPPFLAGS=$(GTK_CFLAGS) $(WARN_CFLAGS)
+libprotocol_la_CPPFLAGS=$(GTK_CFLAGS) $(WARN_CFLAGS) -DG_LOG_DOMAIN=\""sapwood-protocol"\"
libprotocol_la_LIBADD=$(GTK_LIBS)
libprotocol_la_SOURCES=\
sapwood-proto.c \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]