From 0ec75ee9a21f53d0d366ec64ff653460accb5088 Mon Sep 17 00:00:00 2001 From: Ben Watts-Jones <32929018+benwattsjones@users.noreply.github.com> Date: Sun, 21 Apr 2019 02:56:59 +0100 Subject: [PATCH] glib-compile-resources: add page (#2923) --- pages/common/glib-compile-resources.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/glib-compile-resources.md diff --git a/pages/common/glib-compile-resources.md b/pages/common/glib-compile-resources.md new file mode 100644 index 0000000000..582417927e --- /dev/null +++ b/pages/common/glib-compile-resources.md @@ -0,0 +1,20 @@ +# glib-compile-resources + +> Compiles resource files (e.g. images) into a binary resource bundle. +> These may be linked into GTK applications using the GResource API. + +- Compile resources referenced in "file.gresource.xml" to a .gresource binary: + +`glib-compile-resources {{file.gresource.xml}}` + +- Compile resources referenced in "file.gresource.xml" to a C source file: + +`glib-compile-resources --generate-source {{file.gresource.xml}}` + +- Compile resources in "file.gresource.xml" to a chosen target file, with .c, .h or .gresource extension: + +`glib-compile-resources --generate --target={{file.ext}} {{file.gresource.xml}}` + +- Print a list of resource files referenced in "file.gresource.xml": + +`glib-compile-resources --generate-dependencies {{file.gresource.xml}}`