Support whitespace stripping for JSON resources
commit7fd17c4337249acef9bc61eedaf956ee86ade02e
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 13 Mar 2018 11:49:59 +0000 (13 11:49 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 14 Mar 2018 11:46:17 +0000 (14 11:46 +0000)
tree820f4addcef206ea8f0ead2cfd7e50a74731ccbb
parentc672fcc0a8d677e93e27cede5270185c0886ea3b
Support whitespace stripping for JSON resources

Similarly to how glib-compile-resources can call xmllint to eliminate
whitespace in XML files to reduce their size inside a GResource, we can
use json-glib-format to achieve the same result.

The mechanism for using json-glib-format is the same, with a separate
environment variable if we want to direct glib-compile-resources to a
version of json-glib-format that is not the one in the PATH.

https://bugzilla.gnome.org/show_bug.cgi?id=794284
docs/reference/gio/glib-compile-resources.xml
gio/glib-compile-resources.c