From 2ec4e057331540b56e29859c6f2600e9f8014ebd Mon Sep 17 00:00:00 2001 From: James Westman Date: Thu, 13 Aug 2020 08:07:51 +0000 Subject: [PATCH] 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