[rygel/wip/meson: 21/34] meson: Add log domains
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/wip/meson: 21/34] meson: Add log domains
- Date: Thu, 11 Oct 2018 21:04:02 +0000 (UTC)
commit d808168d930a53207f31da9bc62e84186bb9e84f
Author: Jens Georg <mail jensge org>
Date: Sun May 21 21:01:54 2017 +0200
meson: Add log domains
src/librygel-core/meson.build | 1 +
src/librygel-db/meson.build | 1 +
src/librygel-renderer-gst/meson.build | 1 +
src/librygel-renderer/meson.build | 1 +
src/librygel-ruih/meson.build | 1 +
src/librygel-server/meson.build | 1 +
src/media-engines/gstreamer/meson.build | 1 +
src/media-engines/simple/meson.build | 1 +
src/plugins/external/meson.build | 1 +
src/plugins/gst-launch/meson.build | 1 +
src/plugins/lms/meson.build | 1 +
src/plugins/media-export/meson.build | 2 ++
src/plugins/mpris/meson.build | 1 +
src/plugins/playbin/meson.build | 1 +
src/plugins/ruih/meson.build | 1 +
src/plugins/tracker/meson.build | 1 +
src/rygel/meson.build | 1 +
src/ui/meson.build | 1 +
18 files changed, 19 insertions(+)
---
diff --git a/src/librygel-core/meson.build b/src/librygel-core/meson.build
index 965d7346..76241a02 100644
--- a/src/librygel-core/meson.build
+++ b/src/librygel-core/meson.build
@@ -39,6 +39,7 @@ core_lib = library('rygel-core-2.6', core_sources,
dependencies : core_deps,
include_directories: [config_include, include_directories('.')],
version: '2.0.4',
+ c_args : ['-DG_LOG_DOMAIN="RygelCore"'],
vala_gir : 'Rygel-2.6.gir',
vala_header : 'rygel-core.h',
install: true,
diff --git a/src/librygel-db/meson.build b/src/librygel-db/meson.build
index 435ad17c..509ffb0f 100644
--- a/src/librygel-db/meson.build
+++ b/src/librygel-db/meson.build
@@ -10,6 +10,7 @@ db_lib = library('rygel-db-2.6', db_sources,
dependencies : db_deps + [rygel_core],
include_directories: [config_include, include_directories('.')],
version: '2.0.4',
+ c_args : ['-DG_LOG_DOMAIN="RygelDb"'],
vala_header : 'rygel-db.h',
install: true,
install_dir : [true, rygel_includedir, true])
diff --git a/src/librygel-renderer-gst/meson.build b/src/librygel-renderer-gst/meson.build
index 02e56df4..0f21a38b 100644
--- a/src/librygel-renderer-gst/meson.build
+++ b/src/librygel-renderer-gst/meson.build
@@ -6,6 +6,7 @@ renderer_gst_sources = [
renderer_gst_lib = library('rygel-renderer-gst-2.6', renderer_gst_sources,
dependencies : renderer_gst_deps + [build_config, rygel_core, rygel_renderer],
version: '2.0.4',
+ c_args : ['-DG_LOG_DOMAIN="RygelRendererGst"'],
vala_gir : 'Rygel-2.6.gir',
vala_header : 'rygel-renderer-gst.h',
install: true,
diff --git a/src/librygel-renderer/meson.build b/src/librygel-renderer/meson.build
index ab15147b..7cd2a016 100644
--- a/src/librygel-renderer/meson.build
+++ b/src/librygel-renderer/meson.build
@@ -14,6 +14,7 @@ renderer_sources = [
renderer_lib = library('rygel-renderer-2.6', renderer_sources,
dependencies : renderer_deps + [build_config, rygel_core],
version: '2.0.4',
+ c_args : ['-DG_LOG_DOMAIN="RygelRenderer"'],
vala_gir : 'Rygel-2.6.gir',
vala_header : 'rygel-renderer.h',
install: true,
diff --git a/src/librygel-ruih/meson.build b/src/librygel-ruih/meson.build
index d407ddfa..96fbcca5 100644
--- a/src/librygel-ruih/meson.build
+++ b/src/librygel-ruih/meson.build
@@ -15,6 +15,7 @@ ruih_sources = [
ruih_lib = library('rygel-ruih-2.6', ruih_sources,
dependencies : ruih_deps + [build_config, rygel_core],
version: '1.0.0',
+ c_args : ['-DG_LOG_DOMAIN="RygelRuih"'],
vala_header : 'rygel-ruih.h',
install: true,
install_dir : [true, rygel_includedir, true])
diff --git a/src/librygel-server/meson.build b/src/librygel-server/meson.build
index 15003a2e..525d91c4 100644
--- a/src/librygel-server/meson.build
+++ b/src/librygel-server/meson.build
@@ -92,6 +92,7 @@ server_sources = [
server_lib = library('rygel-server-2.6', server_sources,
dependencies : server_deps + [build_config, rygel_core],
version: '2.0.4',
+ c_args : ['-DG_LOG_DOMAIN="RygelServer"'],
vala_gir : 'Rygel-2.6.gir',
vala_header : 'rygel-server.h',
install: true,
diff --git a/src/media-engines/gstreamer/meson.build b/src/media-engines/gstreamer/meson.build
index a15addad..df260479 100644
--- a/src/media-engines/gstreamer/meson.build
+++ b/src/media-engines/gstreamer/meson.build
@@ -18,5 +18,6 @@ media_engine_gst_sources = [
shared_module('rygel-media-engine-gst',
media_engine_gst_sources,
dependencies: media_engine_gst_dep + [build_config, rygel_core, rygel_server],
+ c_args : ['-DG_LOG_DOMAIN="MediaEngine-GStreamer"'],
install: true,
install_dir : rygel_enginedir)
diff --git a/src/media-engines/simple/meson.build b/src/media-engines/simple/meson.build
index f1b83649..58f0133b 100644
--- a/src/media-engines/simple/meson.build
+++ b/src/media-engines/simple/meson.build
@@ -3,6 +3,7 @@ media_engine_simple_sources = ['rygel-simple-media-engine.vala',
shared_module('rygel-media-engine-simple',
media_engine_simple_sources,
+ c_args : ['-DG_LOG_DOMAIN="MediaEngine-Simple"'],
dependencies: [build_config, rygel_core, rygel_server, posix],
install: true,
install_dir : rygel_enginedir)
diff --git a/src/plugins/external/meson.build b/src/plugins/external/meson.build
index 236029c7..b163a2c7 100644
--- a/src/plugins/external/meson.build
+++ b/src/plugins/external/meson.build
@@ -14,5 +14,6 @@ rygel_external_sources = [
shared_module('rygel-external',
rygel_external_sources,
dependencies : external_plugin_deps + [build_config, rygel_core, rygel_server],
+ c_args : ['-DG_LOG_DOMAIN="External"'],
install: true,
install_dir: rygel_plugindir)
diff --git a/src/plugins/gst-launch/meson.build b/src/plugins/gst-launch/meson.build
index 707343c5..72262ce8 100644
--- a/src/plugins/gst-launch/meson.build
+++ b/src/plugins/gst-launch/meson.build
@@ -7,5 +7,6 @@ gst_launch_sources = [
shared_module('rygel-gst-launch',
gst_launch_sources,
dependencies: gst_launch_plugin_deps + [build_config, rygel_core, rygel_server],
+ c_args : ['-DG_LOG_DOMAIN="GstLaunch"'],
install : true,
install_dir : rygel_plugindir)
diff --git a/src/plugins/lms/meson.build b/src/plugins/lms/meson.build
index 89b8ff48..0e3f5650 100644
--- a/src/plugins/lms/meson.build
+++ b/src/plugins/lms/meson.build
@@ -20,5 +20,6 @@ lms_sources = [
shared_module('rygel-lms',
lms_sources,
dependencies : lms_deps + [build_config, rygel_core, rygel_server, rygel_db],
+ c_args : ['-DG_LOG_DOMAIN="LMS"'],
install : true,
install_dir : rygel_plugindir)
diff --git a/src/plugins/media-export/meson.build b/src/plugins/media-export/meson.build
index 878b7004..c5a7ae47 100644
--- a/src/plugins/media-export/meson.build
+++ b/src/plugins/media-export/meson.build
@@ -15,6 +15,7 @@ mx_extract_sources = [
mx_extract = executable('mx-extract',
mx_extract_sources,
dependencies : mx_export_deps,
+ c_args : ['-DG_LOG_DOMAIN="MxExtract"'],
link_with: constants,
install: true,
install_dir: rygel_libexecdir)
@@ -53,6 +54,7 @@ mx_sources = [
shared_module('rygel-media-export',
mx_sources,
dependencies : mx_plugin_deps + [rygel_core, rygel_server, rygel_db],
+ c_args : ['-DG_LOG_DOMAIN="MediaExport"'],
link_with : constants,
install: true,
install_dir : rygel_plugindir)
diff --git a/src/plugins/mpris/meson.build b/src/plugins/mpris/meson.build
index 3ec7c6a0..2c86578c 100644
--- a/src/plugins/mpris/meson.build
+++ b/src/plugins/mpris/meson.build
@@ -8,5 +8,6 @@ rygel_mpris_sources = [
shared_module('rygel-mpris',
rygel_mpris_sources,
dependencies : [build_config, rygel_core, rygel_renderer],
+ c_args : ['-DG_LOG_DOMAIN="MPRIS"'],
install: true,
install_dir: rygel_plugindir)
diff --git a/src/plugins/playbin/meson.build b/src/plugins/playbin/meson.build
index 117f493d..b5ad0b64 100644
--- a/src/plugins/playbin/meson.build
+++ b/src/plugins/playbin/meson.build
@@ -2,5 +2,6 @@
shared_module('rygel-playbin',
['rygel-playbin-module.vala', 'rygel-playbin-plugin.vala'],
dependencies: [build_config, rygel_core, rygel_renderer, rygel_renderer_gst],
+ c_args : ['-DG_LOG_DOMAIN="Playbin"'],
install : true,
install_dir : rygel_plugindir)
diff --git a/src/plugins/ruih/meson.build b/src/plugins/ruih/meson.build
index 8b0f7ca6..17fac7c7 100644
--- a/src/plugins/ruih/meson.build
+++ b/src/plugins/ruih/meson.build
@@ -3,5 +3,6 @@ shared_module('rygel-ruih',
dependencies: [build_config, rygel_core, rygel_ruih],
# Needed to avoid conflict with librarie's header
vala_header : 'rygel-ruih-plugin.h',
+ c_args : ['-DG_LOG_DOMAIN="RUIH"'],
install : true,
install_dir : rygel_plugindir)
diff --git a/src/plugins/tracker/meson.build b/src/plugins/tracker/meson.build
index 2bf37228..adada31a 100644
--- a/src/plugins/tracker/meson.build
+++ b/src/plugins/tracker/meson.build
@@ -35,5 +35,6 @@ rygel_tracker_sources = [
shared_module('rygel-tracker',
rygel_tracker_sources,
dependencies : tracker_plugin_deps + [build_config, rygel_core, rygel_server],
+ c_args : ['-DG_LOG_DOMAIN="RygelTracker"'],
install : true,
install_dir : rygel_plugindir)
diff --git a/src/rygel/meson.build b/src/rygel/meson.build
index f16a26dc..8559aab5 100644
--- a/src/rygel/meson.build
+++ b/src/rygel/meson.build
@@ -5,5 +5,6 @@ rygel_sources = [
]
executable('rygel',
rygel_sources,
+ c_args : ['-DG_LOG_DOMAIN="Rygel"'],
dependencies : rygel_deps + [build_config, rygel_core, rygel_server]
)
diff --git a/src/ui/meson.build b/src/ui/meson.build
index 73fc9c11..8f1004f9 100644
--- a/src/ui/meson.build
+++ b/src/ui/meson.build
@@ -7,5 +7,6 @@ rygel_preferences_sources = [
executable('rygel-preferences',
rygel_preferences_sources,
+ c_args : ['-DG_LOG_DOMAIN="RygelPreferences"'],
dependencies : ui_deps + [build_config, rygel_core],
install: true)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]