[libchamplain] build: Set G_LOG_DOMAIN to libchamplain



commit e641833c36620a712781b1ebce31311daa888535
Author: Hashem Nasarat <hashem riseup net>
Date:   Sun Jan 31 12:19:33 2016 -0500

    build: Set G_LOG_DOMAIN to libchamplain
    
    "Libraries should define this so that any messages which they log can be
    differentiated from messages from other libraries and application code"
    
    https://developer.gnome.org/glib/stable/glib-Message-Logging.html#G-LOG-DOMAIN:CAPS
    
    This enables us to filter debug messages to only see libchamplain
    output — quite useful!
    
    E.g.  G_MESSAGES_DEBUG=libchamplain CHAMPLAIN_DEBUG=view gnome-maps
    
    https://bugzilla.gnome.org/show_bug.cgi?id=761368

 champlain/Makefile.am |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/champlain/Makefile.am b/champlain/Makefile.am
index 1411f6a..58bd485 100644
--- a/champlain/Makefile.am
+++ b/champlain/Makefile.am
@@ -139,12 +139,13 @@ libchamplain_ CHAMPLAIN_API_VERSION@_la_LDFLAGS = \
        -no-undefined                   \
        -export-symbols-regex ^champlain_.*
 
-AM_CPPFLAGS =                          \
-       $(DEPS_CFLAGS)                  \
-       $(MEMPHIS_CFLAGS)               \
-       -DDATADIR=\""$(datadir)"\"      \
-       -I$(top_srcdir)                 \
-       -DCHAMPLAIN_COMPILATION         \
+AM_CPPFLAGS =                                  \
+       $(DEPS_CFLAGS)                          \
+       $(MEMPHIS_CFLAGS)                       \
+       -DDATADIR=\""$(datadir)"\"              \
+       -I$(top_srcdir)                         \
+       -DCHAMPLAIN_COMPILATION                 \
+       -DG_LOG_DOMAIN=\"$(PACKAGE_NAME)\"      \
        $(WARN_CFLAGS)
 
 


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