[gnome-chess] Define log domain for gnome-chess
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Define log domain for gnome-chess
- Date: Fri, 4 Dec 2020 20:56:48 +0000 (UTC)
commit 9d76722bfb0e3afab63ffad67b096e5099d5935e
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Fri Dec 4 12:12:58 2020 -0600
Define log domain for gnome-chess
This allows displaying gnome-chess debug messages, but not other debug
messages, by setting the environment variable
G_MESSAGES_DEBUG=gnome-chess.
meson.build | 1 +
src/config.vapi | 1 +
2 files changed, 2 insertions(+)
---
diff --git a/meson.build b/meson.build
index 18df3e2..3c6642a 100644
--- a/meson.build
+++ b/meson.build
@@ -47,6 +47,7 @@ conf.set_quoted('PACKAGE_VERSION', meson.project_version())
conf.set_quoted('PKGDATADIR', pkgdatadir)
conf.set_quoted('SYSCONFDIR', sysconfdir)
conf.set_quoted('VERSION', meson.project_version())
+conf.set_quoted('G_LOG_DOMAIN', meson.project_name())
configure_file(output: 'config.h', configuration: conf)
# Post-install scripts
diff --git a/src/config.vapi b/src/config.vapi
index ee6dfda..6493493 100644
--- a/src/config.vapi
+++ b/src/config.vapi
@@ -3,3 +3,4 @@ public const string SYSCONFDIR;
public const string LOCALEDIR;
public const string GETTEXT_PACKAGE;
public const string VERSION;
+public const string G_LOG_DOMAIN;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]