[glib: 1/2] docs: glib-compile-resources: json-stripblanks
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] docs: glib-compile-resources: json-stripblanks
- Date: Thu, 13 Aug 2020 08:07:52 +0000 (UTC)
commit 2ec4e057331540b56e29859c6f2600e9f8014ebd
Author: James Westman <flyingpimonster gmail com>
Date: Thu Aug 13 08:07:51 2020 +0000
docs: glib-compile-resources: json-stripblanks
Document the `json-stripblanks` preprocessing option for .gresource.xml files.
gio/gresource.c | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/gio/gresource.c b/gio/gresource.c
index cdcb1ac3f..b7222b8eb 100644
--- a/gio/gresource.c
+++ b/gio/gresource.c
@@ -83,6 +83,13 @@ G_DEFINE_BOXED_TYPE (GResource, g_resource, g_resource_ref, g_resource_unref)
* set to the full path to the gdk-pixbuf-pixdata executable; otherwise the resource compiler will
* abort.
*
+ * `json-stripblanks` which will use the `json-glib-format` command to strip
+ * ignorable whitespace from the JSON file. For this to work, the
+ * `JSON_GLIB_FORMAT` environment variable must be set to the full path to the
+ * `json-glib-format` executable, or it must be in the `PATH`;
+ * otherwise the preprocessing step is skipped. In addition, at least version
+ * 1.6 of `json-glib-format` is required.
+ *
* Resource files will be exported in the GResource namespace using the
* combination of the given `prefix` and the filename from the `file` element.
* The `alias` attribute can be used to alter the filename to expose them at a
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]