[tracker/wip/mschraal/meson-log-domain] build: Set tracker as the log domain



commit 753ba2b92b28b700fb43e0b90df4ecaec28a981c
Author: Marinus Schraal <mschraal gnome org>
Date:   Thu Nov 15 01:05:24 2018 +0100

    build: Set tracker as the log domain
    
    An oversight of the meson port.

 meson.build                              | 7 ++++++-
 src/libtracker-sparql/tracker-resource.c | 3 ++-
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index e71807016..185ecb9d0 100644
--- a/meson.build
+++ b/meson.build
@@ -62,7 +62,12 @@ add_project_arguments('-Wformat', '-Wformat-security', language: 'c')
 # modules, it's not worth adding casts everywhere so we disable the warning.
 add_project_arguments('-Wno-pointer-sign', language: 'c')
 
-add_project_arguments('-DTRACKER_COMPILATION', language: 'c')
+add_project_arguments('-DTRACKER_COMPILATION',
+                      '-DG_LOG_DOMAIN="Tracker"',
+                      language: 'c')
+add_project_arguments(['-D', 'TRACKER_COMPILATION'],
+                      ['-D', 'G_LOG_DOMAIN="Tracker"'],
+                      language: 'vala')
 
 enable_fts = get_option('fts')
 
diff --git a/src/libtracker-sparql/tracker-resource.c b/src/libtracker-sparql/tracker-resource.c
index 6000e3862..33fc65416 100644
--- a/src/libtracker-sparql/tracker-resource.c
+++ b/src/libtracker-sparql/tracker-resource.c
@@ -17,12 +17,13 @@
  * Boston, MA  02110-1301, USA.
  */
 
+#include "config.h"
+
 #include <glib.h>
 #include <json-glib/json-glib.h>
 
 #include <string.h>
 
-#include "config.h"
 #include <tracker-uri.h>
 #include <tracker-resource.h>
 #include <tracker-ontologies.h>


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