mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 08:00:39 +00:00
Update cheatsheets
This commit is contained in:
26
glib-compile-resources
Normal file
26
glib-compile-resources
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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.
|
||||
> More information: <https://manned.org/glib-compile-resources>.
|
||||
|
||||
- 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}}`
|
||||
Reference in New Issue
Block a user