mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
glib-compile-resources: add page (#2923)
This commit is contained in:
parent
65b79daa35
commit
0ec75ee9a2
1 changed files with 20 additions and 0 deletions
20
pages/common/glib-compile-resources.md
Normal file
20
pages/common/glib-compile-resources.md
Normal file
|
@ -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}}`
|
Loading…
Add table
Reference in a new issue