2019-04-21 02:56:59 +01:00
|
|
|
# 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.
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Compile resources referenced in `file.gresource.xml` to a .gresource binary:
|
2019-04-21 02:56:59 +01:00
|
|
|
|
|
|
|
`glib-compile-resources {{file.gresource.xml}}`
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Compile resources referenced in `file.gresource.xml` to a C source file:
|
2019-04-21 02:56:59 +01:00
|
|
|
|
|
|
|
`glib-compile-resources --generate-source {{file.gresource.xml}}`
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Compile resources in `file.gresource.xml` to a chosen target file, with `.c`, `.h` or `.gresource` extension:
|
2019-04-21 02:56:59 +01:00
|
|
|
|
|
|
|
`glib-compile-resources --generate --target={{file.ext}} {{file.gresource.xml}}`
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Print a list of resource files referenced in `file.gresource.xml`:
|
2019-04-21 02:56:59 +01:00
|
|
|
|
|
|
|
`glib-compile-resources --generate-dependencies {{file.gresource.xml}}`
|